current situation: The lights in the hallway are triggered by a sensor (just low brightness).
That works fine.
Now I want to add a switch that does the following:
if light is on and above a certain threshold: switch light off
if light is on and below a certain threshold: change to full brightness
if light is off: switch light on on full brightness
I already have a setup that works and is doing exactly what I described above. The only problem is: The functionality that covers the switch on/increase brightness is throwing an error every time it’s triggered (even though it works).
Logger: homeassistant.helpers.condition
Source: helpers/condition.py:234
First occurred: 10:26:26 (1 occurrences)
Last logged: 10:26:26
Value cannot be processed as a number: <state light.flur_unten=off; is_deconz_group=False, friendly_name=Flur unten, supported_features=41 @ 2020-12-21T10:18:29.779826+01:00> (Offending entity: )
The problem is that lights don’t have the agtribute brightness when they are turned off. So dour condition will give an error because the value is none.
But I still do get whenever the automation is triggered:
Logger: homeassistant.helpers.condition
Source: helpers/condition.py:234
First occurred: 10:59:20 (1 occurrences)
Last logged: 10:59:20
Value cannot be processed as a number: <state light.flur_unten=off; is_deconz_group=False, friendly_name=Flur unten, supported_features=41 @ 2020-12-21T10:59:16.585975+01:00> (Offending entity: )
I have reloaded the automation. I have even restarted the whole home assistant to make sure that the changes have been applied.
Yes, you are absolutely right! Damn, sometimes I really wonder whether I should try to get a home automation up and running or better play with my son’s Legos …