[SOLVED] Myopenhab sendNotification not working

Hello,

I’m trying to get the notifications work and I really don’t know where to look anymore.
Sending a notification from myopenhab.org to my phone works without any problem, meaning the phone shouldn’t be the problem.
Also on the myopenhab portal, I don’t see any notification.

hereby my rule (offcourse the original one is more complex, but even a simple notification using a switch isn’t working.
Rule:
rule “Alert”
when
Item Controller_Cpu_Load changed
then
if (sAlarm.state == ON)
{
var strMessage = “Test test test”
logInfo(“notifications”, strMessage)
sendNotification(“my.correct@email.com”, strMessage)
sendBroadcastNotification(strMessage)
sendLogNotification(strMessage)
}
end

Log result shows that the trigger works.
[INFO ] [smarthome.model.script.notifications] - Test test test

Any ideas where to look?

thanks

If you change the order such that the broadcast notification is first, then the log notification and the email notification last, do you get any notifications?

Thanks for the suggestion RolfV, unfortionally this didn’t change anything.
No notification, but received the log.
Hereby a small rule I used to test:
rule “Test”
when
Item sAlarm changed
then
var strMessage = "Alarm is turned "+ sAlarm.state
sendNotification(“my.correct@email.address”, strMessage)
logInfo(“notifications”, “”+sAlarm.state)
end

Any other suggestions?

It turned out that everything was correct, it restarted working after a reboot of the server. :nerd_face:

1 Like