I’m using network binding to monitor online status of some network devices. I would like to receive an email if one of the device states switches from OFF to ON.
rules/nas.rules
rule “NAS Online”
when
Item ping_my_nas changed from OFF to ON
then
sendMail(“myEmail@email.com”, “NAS is online”, “NAS is online”)
logInfo(“notifications”, “Sending notification for my_nas via mail.”)
end
events.log 2019-12-24 00:07:13.003 [vent.ItemStateChangedEvent] - network_pingdevice_my_nas_online changed from OFF to ON
But I don’t receive any email. Addon Mail Action is working fine and rules used to work before but suddenly stopped working.
If ping_my_nas Item never changes in your events.log then of course your rule will never run. network_pingdevice_my_nas_online is some different Item.
Perhaps you’ve got Simple Mode configured, people often end up in a knot ith semi-duplicated Items.