As workaround, you can create a helper, “isDark or isLightOn” and use it as a blocker. When the light comes on and it gets brighter, the blocker is still free because the light is on. Then the switching off will also work.
Hi, thanks for this nice Blueprint.
It would be nice to be able to specify multiple scenes per time zone and a helper is controlling which one gets activated.
Use Case:
- if i am watching TV, a different scene should be activated.
- if i am playing video games, there should be a more colorfull scene activated
Sounds exactly what I am looking for. I have the helper if brightness is below 12 lux.
How do I create a helper with an OR condition to evaluate “isDark or isLightOn”?
Edit: As I understood, I need a group of binary sensors including might brightness threshold sensor helper and some other binary sensor representing my light. How do I create a binary sensor giving true/false if light is on/off?
I create a template binary_sensor
with or
operator.
The first binary_sensor.treppenhaus_dunkel
(Staircase dark) is the result of a threshold helper on the brightness. The second light.shelly_1_treppenhaus
is the state of the light (controlled by a shelly 1). In addition, I have delayed the binary_sensor because the brightness sensor does not react immediately.
template:
- binary_sensor:
- name: "Treppenhaus dunkel oder Licht an verzögert"
unique_id: treppenhaus_dunkel_oder_licht_an_verzoegert
state: "{{ states('binary_sensor.treppenhaus_dunkel')=='on' or states('light.shelly_1_treppenhaus')=='on' }}"
delay_off:
minutes: 1
I have been using this blueprint for quite a while now. Had to do a fresh install and could not figure out why my old automation did not work anymore as it did before.
I have motion turn on office-lights when entering. Had the automation blocker always setup that when the office-lights are already on, the automation gets blocked. worked perfectly.
on the fresh install not so much. The lights do turn on but do not go off anymore. Anyway, I see a lot of people with the problem. I restored V7 from an old backup and it works as intended.
No idea why the blueprint had to be updated, the version we had was working fine.
Hi there. I’ve some problems to make the No Motion Blocker work like i think it should work.
My case:
I’ve a motion sensor in my bathroom which triggers the light. Works like a charm. If i enter the room the light turns on, after 120 seconds without any motion detected the light turn off.
The only problem is when i’m under the shower. No motion is detected through the curtain and the light turns off. To avoid this i thought about using the no-motion blocker. I created a binary sensor like this:
binary_sensor:
- platform: trend
sensors:
badezimmer_duschen:
friendly_name: "Badezimmer duschen"
max_samples: 3
entity_id: sensor.klima_badezimmer_luftfeuchtigkeit
sample_duration: 600
min_gradient: 0.01666
device_class: occupancy
and use it as no-motion blocker.
But somehow this makes the whole automation stop working. The light doesn’t even turn on if motion is detected. What i’m missing or did i misunderstood the point of how the no-motion blocker work?
Kind regard.
Thorsten
Just installed this Blueprint to control a Shelly Dimmer2 (basically just toggle) with a light in my entrance area based on a Shelly Motion Sensor.
It works as expected that the Motion Sensor sends the Motion On status and the light get turned on.
However the light never turns off!?
Am I missing any setting here?
The Shelly Motion Sensor reports “No Motion” anymore and I set the Wait time in the Blueprint to 60s (also tried 90s but same).
The lights do not get turned of!? What am I missing here???
I hope the project continues and there would be an improvement. Since we are using more and more RGB LEDs and also use them, for example, to turn off blue light when there is movement. I would like to have a button that overwrites this with a white light scene and is then not reset by movement. Unfortunately I’m just getting used to homeassistant and I’ve already solved it in iobroker with blockly. I saw that the last update was some time ago. Maybe there is already a project where this is taken into account
Bug somewhere since recent updates. Light not turning off as the sunrises causing light to stay on for hours which is odd as it by default only being staying on for the 15s set in the automation…
Any ideas?
Hey,
same here with Shelly Dimmer 2,
light doesn‘t turn off.
Is there an Update or Ideas?
Tried this blueprint with a group of z2m bulbs (4pcs).
Motion gets detected but no light switching.
The standard ha motion blueprint is working with the group.
I can switch that entity of 4 bulbs on in ha and it’s working.
I don’t know why it’s not working with this blueprint
Edit: found that when I create the blueprint new and did not change the entity in brightness or something else it’s working but when if I change brightness or colortemp the light does not turn on. Very strange behaviour
As other have stated here recently, there seems to be a breaking bug in the blueprint. I am not aware of any fix.
It started around end of January for me. The automation trace gives the message “device is unresponsive” when at the end of the automation steps and should turn off lights.
Setting an automation in HA without blueprint works fine. The device does work.
I found this page: https://gist.github.com/lukasjakobi/b63d09be776d2df340c16e5006d3451c/revisions#diff-611710a9bc61bfa58d4d8d357379ee308af1a27cd607dd783d347bd0d5d538b5
Made by someone who made a comment about the sun elevation here: Homeassistant blueprint for motion-activated light scene · GitHub
it might help you, idk. Could give it a try.
In the end I just made an automation that at sunrise manually trigger a turn off light and this has worked ever since.
Hello,
i tried this blueprint and i do not really see “motion blocker option” as working. If my boolean starts to block the motion detection during an active light than the lights would never go out.
I am the only one observing this? I see it clearly in the code that the branch for deactivation is missing.
Someone have an idea?
Thanks Christoph
Hi all
It look like that I have the same problem, when I take a helper “dark brightness”
I have the following YAML
The last two items makes the trouble that it does not turn off.
Without it it turns the light off after 30 seconds.
The helper is configured as followed shown, getting to 1 when brightness is lower 2:
Is there already a solution how to solve it?
I am also new to HA, so I hope to find a solution here
Since the developer apparently no longer maintains this project, I have created a fork of it myself and corrected the errors regarding block motion and sun elevation.
Perhaps this will help some of you.
I’m attempting to import this blueprint into HA 2024.7.4, but I get an error.
mapping values are not allowed here in "<unicode string>", line 199, column 23: value_template: "{{ trigger.to_state.state == ... ^
Is there a way, that you could add a condition for Luminance sensors?
Your Blue print offers everything I need except auf luminance great would be for multiple sensors. I have two motion sensors in my L formed hallway
@anym001 would that be possible?
and trying to import your blueprint I get this error:
mapping values are not allowed here in “”, line 199, column 23: value_template: "{{ trigger.to_state.state == … ^