Some motion sensor can have this option in there settings. If not, to make it work you can create a template binary sensor using your motion sensor and put a delay in of 5 sec. I have template examples in the FAQ but here is the link to them, click here
The example you would use it REF - TS-2. Once you create this template binary sensor you would use it as your trigger and not your actual motion sensor.
Thanks for the proposed solution. Although I know how to do it as a separate automation, I wanted to implement this feature as an addition to your marvelous blueprint.
It has all of the other features needed, but Iām missing this one.
So either to add additional condition that will override currently inactive lights during the day via switch or by checking string value of a provided helper.
This is what Iām trying to do. Form of a blueprint feature request
And yes, you got it right. During the night it shouldnāt change behaviour.
Hey again! That was a bit long but now i 100% know what this issue is caused by zigbee2mqtt new version which got updated few days before 2024.4 release. Zigbee2mqtt 1.36.1 have this issue with my Sonoff zigbee stick. And issue disappearing after i restore 1.35.3
Okay, looking at your example above (the image) and your postā¦ looks like bypass 2 is what you are looking for. This will disable the automation based on your helper and turn the lights OFF. The bypass is quite powerful in what it can do, it digs deep analyzing what it happening when the bypass turns OFF.
I understand you know how to do this but for the others reading I will provide an example.
If we create a template sensor helper that has some conditions that are, it must be day time + cloudy or raining and if not turn the helper ON else turn it OFF. In the code below I have added unavailable and partlycloudy in the example but you can remove them. Then when bypass is ON the lights will turn OFF if the conditions are met + the automation will be disabled. When the bypass turns OFF as the conditions are not met it will check the site conditions and preform the correct action. I have not tested this code just typed it out but it should work. We would enter this code into the āState templateā of the template sensor helper.
EDIT I have updated the code.
{% set weather_state = states('weather.forecast_home') %}
{% if is_state('sun.sun', 'above_horizon') and weather_state not in ['partlycloudy', 'cloudy', 'rainy', 'unavailable'] %}
on
{% else %}
off
{% endif %}
Hi. I am having issues when using this automation with IKEA Styrbar remote control for manual override. I connected this switch though ZHA but it does not create binary output. Instead, this switch generates zha_event with unique cluster_id and end_point_id.
Below is an automation written by Malte to control lights using this remote switch. ZHA - IKEA four button remote (Styrbar) for lights (E2001, E2002) - Blueprints Exchange - Home Assistant Community (home-assistant.io)
Are there any possible way to use this switch for manual override control? Your input is much appreciated. Thank you.
What I would do is have the switch (IKEA Styrbar remote) toggle a āToggle Helperā ON and OFF when you press the switch. I would then use the āToggle Helperā in the bypass as they have an ON / OFF state.
To create a toggle helper go to settings > devices and services > click on helpers tab at the top > click create helper and select toggle.
Iām new to HA and a friend of mine helped me get started with your blueprint. Itās really awesome. However there is one thing I could not figure out:
We have some color Hue lights and is there a way to set the color for those with your blueprint? The only thing Iāve seen is to set the ātemperatureā.
@Blacky
Can the Night Lights - Entity State be a Motion Sensor?
Coming up the stairs, a motion sensor triggers the light in the hall (this is a Sensor Light BP) that leads to the bed and bathroom. The bathroom has a motion sensor too.
Using the Night option of the bathroom Sensor Light BP, I want the bathroom light to switch on when motion is detected by the hall (landing?) motion sensor, but only during the Night Time hours setting.
I tried to use the hall motion sensor as a Night Lights - Entity State for the bathroom but this does not work. Any suggestion how to get it working?
Hi Blacky. Can you just point me in the right direction. Have motion sensor dimmable smart bulbs, I use night light feature for quieter light after 9pm and the bypass when a day/night helper binary toggle switches to night.
Soā¦question is, I just bought a lux sensor from these Screek, love their esp32 5v radar sensors for motion. This one for lux is new, just released:
Anyway, Iām already using the bypass for the day/night toggle. How would I also bypass the light turning on if the lux level is below a certain level?
Use the BP for the hall. Then set up you night lights with your time hours. Include the light in the hall and the light in the bathroom in night lights.
I am just trying to get my head around what you are doing. Not sure if you are using time for night lights (9pm) for your softer lights and then a toggle helper in the bypass to turn the light ON in bypass option 1. Then your question is to also include a LUX reading to turn the light ON using the bypass option 1.
Maybe provide your YAML of the automation and confirm what you would like the LUX sensor to do. Example
Turn the light ON using bypass 1 when the lux value drops below a set value.
Activate night lights using the lux sensor when the lux value drops below a set value.
Use the LUX sensor to activate the automation when the lux value drops below a set value for day and night mode.
Use the LUX sensor with the toggle helper to turn the light ON if both are true using bypass option 1.
Iām trying to have the light intensity at 0 (off) when the light is at 45lx or above, and when it hits 25lx, start progressively heading up to 60% brightness. The heartbeat is set to1 just to make testing easier.
Question. How does night light affect all this (ignore for the moment that the binary sensor is a bypass and it wonāt come on). Does using dynamic lighting replace the need for night light?
Also is this description incorrect?
Used in options 1, 2 or 7 - With every heartbeat, the system evaluates the lux value, light brightness, and the targeted brightness. If the targeted brightness surpasses the predefined step value, the system applies the set step value to gracefully moderate the rate of changes, facilitating a smoother transition in light brightness.
Should it not be
āif the targeted brightness surpasses the actual targeted value by the amount of the predeefined step valueā¦ā
Okay so from 45lux to 25lux what brightness would you like. And then from 25lux to ?? to start heading up to 60%.
Night lights donāt have dynamic lighting. It is only for normal lights.
Yes
No
I will explain as best as I can.
When dynamic lighting turns ON it can jump to a high brightness %. Lets say when dynamic lighting turns ON because it is dark the brightness target is 90%. Then when the light turns ON this effects the lux sensor and the next target is 20%. If it then goes to 20% the next target may be 97% then the next target it 24%, you get the ideaā¦ the light jumps around and this is not pleasant to the eye.
Now lets look at "Step Valueā. Again when the light turns ON the target brightness is 90%. Then when the light turns ON this effects the lux sensor and the next target is 20%. That is 60% target value and the step value is 4%, so the light next step value will be 86%. Then it checks again and the target value is 30% that is 56% so the next step will be 82%, you get the ideaā¦ this is more pleasant to the eye and slowly gets to a set value. The dead zone stops the final small adjustments so these micro adjustments donāt play on your eyes and keeps it a comfortable space to live in.
Knowing this you have to have a correct heart beat to your lux sensor reporting value. If you speed up the heart beat and the lux sensor is slow to react then you will not get the correct design / experience of this feature. This is critical. Example say your lux sensor updates every 30 sec then setting a heart beat of 1 sec is not good because the heart beat would like to see the change in the lux sensor and preform a new calculation based on its last adjustment. If your lux sensor updates every 30 sec then it is best to set a heart beat at 30 sec + like 45 sec. This is for testing. Once you see it work having a longer heart beat is better but not too long so it doesnāt work. It is a bit of a balancing act and ever setup is different and every site is different all depending on how it is used. The good news isā¦ you have full control in your hands to make it perfect as you would like it.
Dynamic lighting is best used when the sun is out during the day and going to sunset. It can also be a nice way to wake up with a sunrise affect. Also google ācircadian rhythmsā. It is a really nice feature. From 25lux to ?? is a small window to have though but it can be a lot of fun testing it out.
Anyway if you can get back to me on this question. āOkay so from 45lux to 25lux what brightness would you like. And then from 25lux to ?? to start heading up to 60%.ā I will set it all up for you and provide your YAML.
What Iām trying to do is make the lights stay off (brightness 0) on motion during the day when itās bright. Then when it starts to get dark as the sun sets, maybe 50lux, start turning on when triggered perhaps at 100% brightness. The brightness would drop down to 10 percent on triggering as it gets down to 0 lux. The numbers are arbitrary, need to test for lux vs light brightness, but thatās the concept.
I like to walk up to the bedroom after reading or TV, letās say 10pm, and outside of course itās dark, but have the lights come up to just 10 percent. Ten percent would be the lowest. Donāt need bright lights to get ready for bed.
Of course when I trigger the bypass (hey google, good night triggers binary helper) that would prevent lights from going on.
In the morning when waking up, it would reverse itself, coming on dim and then eventually NOT turning on the lights when it hits 50 lux.
Looks like sun elevation would work better for you and then use your lux sensor in the global conditions. We use dynamic light option 4. When the sun elevation is 5 deg and lux is below 50 the light will turn ON at 100%. At night sun elevation is -4 the lights will be 10%. In the morning at sun elevation -1.5 lights will be at 10%. Night lights is sun elevation from -4 to -1.5 and the lights will be 10%. Before any lights can turn ON the lux must be below 50lux so they will be OFF during the day.
Have a look at this one. Copy paste it into you YAML.
Lights fail to get back on, if Off-Dim has startet and the trigger is flipped to ON while itās happening?!?
Iām running the latest 6.5 version of the BP, and I was puzzled about, why the lights would not go back on, sometimes when I re-enter the area.
Itās seems that, my LIFX downlights does - often - not accept a āfade upā or āflip onā command, if they are engaged in a current āfade downā event.
Has anyone else seen this, and if so, with other brands of bulbs as well?
Could it be, that the bulbs is simply missing the command? I was just trying to test it, and it seems a bit random, sometimes 2/3 bulbs do re-light up. I canāt find a pattern, other than they seems to ignore the latest command if they are ābusyā.
Funny thing is, triggering other scenes from other sources (like buttons), seems to work just fineā¦
Any ides?