Purchased a zw6302 the other day and after a bit finally got it initialized. Now i am trying to setup a basic rule to proof the concept then work in more complex items depending on other variables. So here is where i am now…
rule "Motion Sensed"
when
Item MotionSensor_Alarm changed to Alarm
then
sendMail("me@gmail.com", "Motion Test", "Living Room Motion detected")
end
there are 3 channels in the sensor: battery, binary, and alarm. below is the info for the two relevant here.
So my question is how should my rule be worded? I have tried all variations i can think of. I have done the Alarm channel “changed to Alarm” and “changed to ON”, i have done the Binary channel “changed to Triggered” and “changed to ON”. Nothing triggers the test email. I have even tried them both as just changed without a specified state to see if i saw something. And yes my emails are working. It seems straight forward but it’s kicking my butt.
i can see the changes if i have Habmian open and look at the thing channels. The states change.
Little bit of a side note, what the heck is the difference between binary and alarm?
Thanks for any help.
{
"link": "http://192.168.5.5:9080/rest/items/MotionSensor_Alarm",
"state": "NULL",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "OFF",
"label": "Ok"
},
{
"value": "ON",
"label": "Alarm"
}
]
},
"type": "Contact",
"name": "MotionSensor_Alarm",
"label": "Motion_Alarm",
"category": "Motion",
"tags": [],
"groupNames": []
},
{
"link": "http://192.168.5.5:9080/rest/items/MotionSensor_BinaryOutput",
"state": "NULL",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "ON",
"label": "Triggered"
},
{
"value": "OFF",
"label": "Untriggered"
}
]
},
"type": "Contact",
"name": "MotionSensor_BinaryOutput",
"label": "Motion Sensor",
"category": "Motion",
"tags": [],
"groupNames": []
},