Hi All,
I'm trying to pull "actual_state" from an HA sensor text device...how do I script 1st a python script method to know which states are accessible and then how would I reference this state in my device reference in the script. issues I'm running into is that this is displayed as a date text field in indigo device with some help from a beta release from FlyingDiver, but the state that is actually used by the device is the defualt value of just 0, and referencing the device states comes up with errors, and if I don't include a .state reference I get:
Script Error action group "Update days till Havdalah" script error in file days till havdalah.py:
Script Error strptime() argument 1 must be str, not SensorDevice
Script Error Exception Traceback (most recent call shown last):
days till havdalah.py, line 16, at top level
TypeError: strptime() argument 1 must be str, not SensorDevice
2nd is there a method to list all states available when I try this code I get no response in event log, even with logging enabled through script from this forum section:
dev = indigo.devices[1169704765]
# print(dev.states[actual_state])
print(dev.states)
Thank you,
Daniel