I created rule to ONLY send a Pushsaver message when the alarm mode is not “0”. The value from Areas_Main_Mode can be from 0-9. Currently the rule is firing no matter what value the Area_Main_Mode value is. Using Visual Code. Do I convert my integer to a string then compare?
Thanks
Guy
Sitemap Entry:
Number Areas_Main_Mode “Mode: [%s]” (security) {channel=“omnilink:area:8325e841:1:mode”}
Rule:
rule “Laundry_Door”
when
Item FF_LaundryRoom_Door changed
then
if (Areas_Main_Mode.state!=0) {
pushsafer("xxxxxxxxx", "Laundry Door Changed", "OpenHAB Notification", "6407", "4", "", "")
}
else {
// do nothing
}
end
Openhabian 2.3.0-1 on a Raspberry Pi
HAI-OmniLink Binding