What I’m trying to do is basically turn my “Stay” button on my DSC Panel a lock down button.
When my Garage Door is open and I arm my DSC in Stay Mode it tells my MyQ to close it.
So this is what I have. For some reason the (GarageDoorSwitch==ON) never triggers.
0 to 2 is from Disarmed to Stay Arm.
OFF = Door closed
ON = Door open
From the MyQ Binding.
Hoping another set of eyes can see what I did wrong.
rule "Close Garage Door When Alarm is Armed in Stay Mode"
when
Item PARTITION1_ARM_MODE changed from 0 to 2
then
lock.lock()
try {
if (GarageDoorSwitch==ON){
sendCommand(GarageDoorSwitch,OFF)
logInfo("DSC", "Garage Door Closed by Alarm")
}
else { logInfo("DSC", "Garage Door Already Closed") }
}
finally{lock.unlock()}
end