- Posted on
Thu Jun 11, 2020 10:37 am
-
SMUSEBY
offline
-
- Posts: 511
- Joined: Sep 16, 2009
- Location: California
Thank you for your reply.
I'd like to try the disable/auto enable trigger solution, but need the python syntax.
More detailed explanation of what I'm trying to do:
I have a button that connects to the I/O device. I use this to change the status of my home between Occupied and Vacant. The I/O device also lights 2 LEDs - one red, the other green. When it is ON, the green LED is lit; when it is OFF, the red LED is lit. For someone coming to the unoccupied house, they will see a red LED, and pressing the button will change it to green, and Indigo will turn on the devices that are off when the house is vacant (hot water, heater, etc.).
The problem I'm having is changing the color of the LED which is determined by the I/O status - On or Off - because the initial trigger is 'any change in status'. To change the color of the LED, I need to change the status of the I/O device.
It worked with an apple script, but I seem to have lost the setup in the transition of python. Currently, with the various Occupied/Vacant triggers enabled, pressing the button results in chaos.