The following code -
- Code: Select all
season = indigo.variables[525524114].value
lrTemp = indigo.devices[883519697].state.getValue(int)
if season == "winter":
if lrTemp < 7:
indigo.actionGroup.execute(1011316617)
produces the error message, "hseHeaterON13.py, line 2, at top level
AttributeError: 'Device' object has no attribute 'state'.'
I get the same error substituting 'temperature' for 'state'. I've verified the device number.
What error am I making now?
Note: I'm attempting to use Python because Indigo's conditional logic is failing (giving true when it should be false). My guess is that Indigo is treating the integer temperature value as a string.