I have two questions.
1) whats the key to the dev.state for current temperature(s).
2) what would be the proper syntax if I wanted to set a dev.state in my script. hvacMode and setpoints for example.
All help greatly appreciated!
FlyingDiver wrote:https://wiki.indigodomo.com/doku.php?id ... vice_stateSearchCz wrote:How would I et a look at any f these device state values in a python script ?
Except, you can't use the label in the popup shown a couple posts up. You need the name from the list, or right click on the name in the list and get the python reference.Code: Select all
# get the device dev = indigo.devices[23989834] # Some custom device # access the state through the states property, use the key # that's displayed in the Custom States tile on the main window # when you have a custom device selected print dev.states["someDeviceStateKey"] # show all the device states (use unicode() to print special chars correctly): print unicode(dev.states)