I'm trying to use a virtual switch to turn the alarm on and off. I can successfully set the alarm however if it is triggered and I then turn the virtual switch off it doesnt cancel the alerts and un arm the alarm. I'm sure its a simple fix but i just cant work it out!
IF (Alarm(off) is on(F) [FALSE]) THEN
HSM Arm Night
Speak on Front Room Google Mini, Bedroom clock: 'Arming Alarm'
Delay 0:00:31
IF (HSM status is Armed Night(F) [FALSE]) THEN
Speak on Front Room Google Mini, Bedroom clock: 'Alarm Set'
ELSE-IF (Alarm(off) is off(T) [TRUE]) THEN
HSM Disarm All
HSM Cancel All Alerts
Off: Alarm
END-IF
END-IF
pretty sure @mavrrick58 is right but if that doesnt work if you could do a screen capture of the rule and the trigger and post it as a picture it will be easier to follow. But can't you do this all from w/in HSM by using buttons?
That made it work! knew it would be something simple haha.
Yes, we could have this done via a device but its easier to tell Alexa to turn it off than going to a switch somewhere. I know its not secure but its the trade off for ease of use. Thanks for your help
IF (Alarm(off) is on(F) [FALSE]) THEN
HSM Arm Night
Speak on Front Room Google Mini, Bedroom clock: 'Arming Alarm'
Delay 0:00:31
IF (HSM status is Armed Night(F) [FALSE]) THEN
Speak on Front Room Google Mini, Bedroom clock: 'Alarm Set'
END-IF
ELSE-IF (Alarm(off) is off(T) [TRUE]) THEN
HSM Disarm All
HSM Cancel All Alerts
Off: Alarm
END-IF