Hello.
I am having issues with a simple notificationrule that used to work fine.
The error logged is:
11:35:41.819 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'Alarm_Panel_Status' received command ON
11:35:41.833 [INFO ] [marthome.event.ItemStateChangedEvent] - Alarm_Panel_Status changed from OFF to ON
11:35:41.857 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'Alarm panel status analisys2': An error occured during the script execution: The name 'sendNotification(<XStringLiteralImpl>,<XStringLiteralImpl>)' cannot be resolved to an item or type.
and the rule is the following:
rule "Alarm panel status analisys2"
when
Item Alarm_Panel_Status received update
then
if(Alarm_Triggered.state == ON) postUpdate(Alarm_Triggered, OFF)
if(Alarm_Panel_Status.state == ON) sendNotification("mymail@hotmail.com", "Panel Activated")
else sendNotification("mymail@hotmail.com", "Panel Deactivated")
end
This rules used to work fine some snapshots behind. Now all of a sudden and without obvio evidence it stopped working.
Do anyone has an idea why could this be happening?
Best regards.
Hi
I’ve set my.openhab to debug with: log:set DEBUG org.openhab.io.myopenhab
But I’m not getting your “No connection” error or any additional error.
I’m still getting the “The name ‘sendNotification(,)’ cannot be resolved to an item or type.” error, but if I reload the .rules file (just edit it and save), notifications begin to work.
Regards