If i change that and put in in my automations I get an error:
Configuration invalid CHECK CONFIG
Error loading /home/homeassistant/.homeassistant/configuration.yaml: while scanning a simple key
in “/home/homeassistant/.homeassistant/automations.yaml”, line 81, column 7
could not find expected ‘:’
in “/home/homeassistant/.homeassistant/automations.yaml”, line 82, column 1
I have a similar issue. The sensitivity of the ikea dimmer is too high in my opinion.
The dimmer reports its orientation from 0 to 250.
Instead of an absolute value too dimm the light I’d like to use the change of the value to dimm the lights. This way it would be easy to change the sensibility (devide the value).
With code similar to the one above this would be possible.
The issue here will be the minimum and maximum area.
So when the dimmer value is 0 and I want to dimm the light down, the from_state and the is_state will both be zero. So nothing happens. The same would happen with 255 (turning up).
Is there another way to achieve this?
Also I’d like to know if or how it is possible to use is_state and from_state in a binary_sensor. Or is is only possible to use this in an automation trigger.from_state.state
How cann I adress the from_state in a template sensor, where I don’t have a trigger.