Omnilink Rule Security Mode

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

Try this:

3 Likes

Thanks for the like @vzorglub, picked it up reading all your solutions and quick responses to other rule issues.

I must have caught you napping on this one. :smiley:

1 Like

Thank you sir! This resolved my issue perfectly!

Guy

Glad to help.

If you would, please mark the reply above that contains the solution. Ex

image

Thanks.