- Code: Select all
alarmPanel = 1145882715
alarmPanelState = indigo.devices[alarmPanel].states['panelReady']
day = indigo.variables[1864332157]
if alarmPanelState == "0":
indigo.dimmer.setLedState(215921706, index = 4, value = False)
elif alarmPanelState == "1" and day.value == "true":
indigo.actionGroup.execute(327874994), indigo.actionGroup.execute(1040855971)
elif alarmPanelState == "1" and day.value == "false":
indigo.actionGroup.execute(327874994), indigo.actionGroup.execute(53352835)
So now I'm trying to amend it for something else, and tried this, but it doesn't work.
- Code: Select all
day = indigo.variables[507666416]
if day.value == "true"
indigo.actionGroup.execute(1909876887)
elif day.value == "false"
indigo.actionGroup.execute(1300897338)
I've been keeping copies of all the Python scripts that I've cobbled together, MAINLY with so much help from users here.... but don't see a version where I used the day variable like in the 2nd example, only used the day variable as in the 1st script. The error is on the first "if" line... but no doubt the "elif" line won't work either... (I am aware the "day" variables have different ID's, which isn't the problem...)
Any suggestions ?