I am using your motion_activated_entity.yaml blueprint and I really like the level of customisation it brings. There is one problem though. During the day it's set to watch the lux level and I am calling custom script to turn on the lights.
The problem starts when the lights are switched on manually by using a wall switch. That means they transition from "unavailable" to "on". The issue is that this condition
|
value_template: '{{ (states(target_entity) == ''on'') or (illuminance_currently |
almost never evaluates to true - during a normal day there is enough light in the room and script state returns "off" all the time.
Is there a solution you'd recommend?
I am using your
motion_activated_entity.yamlblueprint and I really like the level of customisation it brings. There is one problem though. During the day it's set to watch the lux level and I am calling custom script to turn on the lights.The problem starts when the lights are switched on manually by using a wall switch. That means they transition from "unavailable" to "on". The issue is that this condition
blueprints/motion_activated_entity.yaml
Line 125 in 7ea85a0
Is there a solution you'd recommend?