I’m trying to set a rule with the MyQ binding to turn on my garage lights when the garage door is opened, yet unsure where I am going wrong.
This is the contact Item
Contact GarageDoorContact "Garage [%s]" <contact> (Garage, gDashboard) {myq="0", imperihab="room:Garage,label:Garage Door Status,type:DevDoor"}
In my sitemap the GarageDoorContact will show the Open/Closed status. And my rule looks like this:
rule "Garage Door Open"
when
Item GarageDoorContact.state changed
then
if (GarageDoorContact.state==OPEN) {
sendCommand(GarageLights, ON)
}
end