I am trying to test the front hall light controller state as a condition with the following:
lamp = iindigo.devices[1867604195] # "Front Hall Light"
if hasattr(lamp, 'onState'):
and I get the following error:
Error script error: around characters 7 to 15
Error script error: A unknown token can’t go after this identifier. (-2740)
I am an AppleScript guy trying to convert to Python, so help is needed.
Thanks