Since a recent update to 5.1.2 I get this message whenever I try to use pushover:
Script execution of rule with UID ‘defaultNew-24’ failed: ‘sendMessage’ is not a member of ‘org.openhab.core.thing.binding.ThingActions’; line 447, column 4, length 49 in defaultNew
Running this code copied exactly from the documentation which has always worked in the past:
val actions = getActions("pushover", "pushover:pushover-account:account")
// send HTML message
actions.sendHtmlMessage("Hello <font color='green'>World</font>!", "openHAB")
pushover.things is still where it belongs in /etc/openhab/things and still looks correct.
I’m lost as I seem to be doing everything right. I did uninstall and then reinstall Pushover in case something had changed but that didn’t help.
rule "test pushover"
when
Item Test1_Switch changed to ON
then
val actions = getActions("pushover", "pushover:pushover-account:pushover")
// send HTML message
actions.sendHtmlMessage("Hello <font color='green'>World</font>!", "openHAB")
end
Make sure you have the correct syntax in your action:
It’s been working perfectly for 7 years and I’ve not changed anything in years, so I’m at somewhat of a loss. It doesn’t fail on the getActions() line so it assume it thinks Pushover is installed. I just installed 5.2 and the problem remains. Is there any way to test if Pushover is correctly installed?