2 years later, this embedded conditional script issue continues to be a challenge.
In a trigger, the conditional script, when tested, returns "Script did not return a valid Boolean value:
- Code: Select all
party = indigo.variables[1067262694].getValue(bool) #party
xmas = indigo.variables[1633517906].getValue(bool) #holiday season
now = indigo.server.getTime()
time_1500 = now.replace(hour=15, minute=00, second=0, microsecond=0)
if (time_1500 > now):
if (party or xmas):
return True
Whereas, in a TDA, compiling the embedded conditional script below returns no errors:
- Code: Select all
ltSensor = indigo.devices[269189693] #bYrd z-wav
ambLt = int(ltSensor.states["sensorValue"])
party = indigo.variables[1067262694].getValue(bool) #party
xmas = indigo.variables[1633517906].getValue(bool) #holiday season
if (party or xmas):
if ambLt < 21:
return True
I'm stumped - again.