I’ve configured my.openHAB right now. Wanted to send a notification to my Android device, but the Designer (v1.8) doesn’t provide me the three methods (sendNotification, sendBroadcastNotification, sendLogNotification). The new Telegram action is provided. Is this some bug or do I have to provide the binding somewhere in the Designer?
Hmmm, I guess this didn’t get fixed as I’m seeing this also in my 1.8 Designer. The sendNotification action was added in 1.7 (maybe 1.7.1, I forget which) but Designer’s code highlighting didn’t get updated to reflect it. It was noted in the forum at the time but I never kept up with whether an issue was created.
It was probably considered (rightly so) as a low priority and therefore didn’t make the cut for 1.8.
I set up my notifications so I only call sendNotification from one rule so I don’t usually notice that Designer doesn’t like it. I mainly did this so I could experiment with different notification mechanisms without needing to change my notification calls all over my rules. I just use a String Item and a rule that triggers on updates to that Item, sending its new text out as the notification.
And yes, it does work, I was just wondering if Designer accepted it yet, without me having to update. That’s just lazyness on my part, asking if it’s fixed instead of just upgrading to see myself. I’ll eventually upgrade Designer either way, just wanted some incentive.
One thing I’ve done is isolate my notifications to one place so that I can do additional logic around where alerts go based on things like time of day and such. This would at least limit your false positives in Designer to one file and just a couple of rules. See details in the Separation of Behaviors section on this thread.