- Code: Select all
alarmPanel = 1145882715
alarmPanelState = indigo.devices[alarmPanel].states['panelReady']
day = indigo.variables[1864332157]
if alarmPanelState == "0":
indigo.dimmer.setLedState(418713206, index = 2, 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)
Now, I'm trying to work on a script that evaluates the custom state Zone 1 of the alarm system, which is the front door, and is defined as a "device" in Indigo and have started with the script below. The "onOffState" part comes from the same place as "panelReady" does in the script above, and appears in the Custom States for the device in question. It compiles correctly, but when I execute it, nothing happens, and nothing shows up in the log to give me a hint.
In place of the "0", I've tried "1", "True", "true", "False", "false", "off", "Off", "Clear", "clear"(from the device menu), but nothing works.
- Code: Select all
door = 1273767074
doorstate = indigo.devices[door].states['onOffState']
if doorstate == "0":
indigo.actionGroup.execute(237143343)
I'll have the script do much more, but this is my stumbling block.... can't get this custom zone to evaluate correctly...
As usual, any assistance would be greatly appreciated.