Home assistant only reports attributes if light is on, which currently results in the following error and a 'offline' flag in DiyHue:
2024-02-07 12:26:55,386 - services.stateFetch - WARNING - lamp.trapkast Light is unreachable: 'NoneType' object is not subscriptable
This is mainly caused by: diyhue_state['xy'] = [value[0], value[1]], the other values are set to None currently.
I am not sure what the desired behaviour is:
Only update these attributes if light is on and a value is returend by Home assistant (this fix).
Home assistant only reports attributes if light is on, which currently results in the following error and a 'offline' flag in DiyHue:
2024-02-07 12:26:55,386 - services.stateFetch - WARNING - lamp.trapkast Light is unreachable: 'NoneType' object is not subscriptable
This is mainly caused by:
diyhue_state['xy'] = [value[0], value[1]]
, the other values are set to None currently.I am not sure what the desired behaviour is:
None
.