It works when it detect the first motion, the adaptive light component takes over and adjusts the lights brightness and color. However, on the second motion detection its calls Light.turn_on and all lights go to full brightness and the adaptive component takes over again.
Anyone come across this issue? What was your solution?
how do i use it with humidity instead of luminance? want to use it for a bathroom fan. also can someone tell me why did my sonoff zbmini thinks of itself that it is a light? when it is a fan.
I am getting the following error on a very simple setup I removed all variables except for motion sensor, target entity and turn off wait time.
Template warning: ‘int’ got invalid input ‘None’ when rendering template ‘{{ states[no_motion_wait].state | int }}’ but no default was specified. Currently ‘int’ will return ‘0’, however this template will fail to render in Home Assistant core 2022.1
I think changing "{{ states[no_motion_wait].state | int }}" to "{{ states[no_motion_wait].state | int(0) }}" should solve the issue (default will be 0 if state is None).
Hi @freakshock Nice automation and exactly for my use case.
I have one problem, maybe you have an idea. For Blocking entity, I use an automation for toggling a hue lamp with a hue wall switch module. So, motion detected → hue lamp switches on → hue wall switch toggles lamp off. When pressing the wall switch, lamp should shine further on, but with 100% brightness (I plan to add time slots with for example only 20% brightness at night) and your automation should break until the wall switch is pressed the second time.
I used ioBroker for some years and quite new to Home Assistant.
Thanks in advance for any input.
Hi!
I think what you want is possible. If I understand you correctly, I think you can create a new helper entity yourself (input_boolean or binary sensor for instance). You would set this helper entity to ‘on’ whenever you dont want my automation to trigger, and to ‘off’ whenever you do want it, by using a separate automation. This helper entity can then be set as the blocker entity for my automation.
Hi @freakshock
Thanks for your quick response. So I created an input_boolean helper and set as blocker entity in your automation. Then I created a seperate automation like below, but nothing happens. Could you give me a hint, which part is wrong? Thank you again.
Thanks for the hint with the trigger check. Now it behaves as expected and I like your blueprint better and better
Now I have a question about a scene as turn on entity:
I set a scene (just one light with color in blue and brightness 20%) as target turn on entity, but then tthe light won’t turn off after last motion and turn off wait time. When I switch target turn on entity back to light entity, light goes off as expected.