Closed danielvand closed 2 months ago
I could reproduce the problem on another system with Python 3.9.2
When I try to get a list of attributes it will only give me default attributes of a list object.
for i in lights.getmembers(lights):
# Ignores anything starting with underscore
# (that is, private and protected attributes)
if not i[0].startswith('_'):
# Ignores methods
if not inspect.ismethod(i[1]):
print(i)
I had to add ".attributes." to the code:
if lamp.attributes.light_level and lamp.attributes.is_on:
see last comment
Hi, I'm running in circles after I had to recover my system from a crash from the main drive. I was able to control the lights nicely via dirigera. But now I get the following error after running a simple script to check the state of my lamps
My script: getLights.py
Probably / hopefully something simple. I've tried to reinstall python3 and dirigera, but same result. I'm running Python 3.7.3, that's still supported as far as I understand?
Thanks for you help!