OK, so I did a bunch of work this afternoon, and I now have sensors on the garage door and relays in a relay module that can activate the opener. I wrote some code that closes the doors -- it checks the status of each door zone, and for any zone that is not ready, it activates the corresponding relay to close the door. Then I thought, "Aha, I can run this macro in a WHEN ARM NIGHT rule, and it will close the doors when I arm the system!"
Trouble is, without enabling auto bypass, if a door is open any attempt to arm to NIGHT mode fails immediately. The rule never gets a chance to run. I can make it work by enabling auto bypass; the rule runs and the doors are closed before the bypass time expires. But I don't want to run the system with auto bypass enabled.
Is there a way around this? Something that I haven't thought of?
Trouble is, without enabling auto bypass, if a door is open any attempt to arm to NIGHT mode fails immediately. The rule never gets a chance to run. I can make it work by enabling auto bypass; the rule runs and the doors are closed before the bypass time expires. But I don't want to run the system with auto bypass enabled.
Is there a way around this? Something that I haven't thought of?