This is very tricky and I have built a Manual Control Status Tracker blueprint. It's not perfect but it tracks if an automation turn ON the light or if it was manually turned ON. It then turns ON a toggle helper that you can use in the bypass. Maybe have a look at this.
You can have any light you like for normal lights and night lights and it will turn them ON and OFF when night lights become active. The thing you may of missed (a lot of people do) is the option in Night Light Control to enable If lights are ON, adjust the lights when crossing over option. Make sure you select this.
If your still haveing problems then just explain it and provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on β</>β and paste code in there.
The Sun and Time options control when the automation is allowed to run.
Enable the Sun option if you only want the automation to work when the sun is below a specified elevation (for example, when it is dark).
Enable the Time option if you only want the automation to work between the specified Start and End times.
If both options are enabled, both conditions must be true before the light can turn ON.
Because your testing during the middle of the day then the sun will block it from running most likely and the time may be blocking you to depending if your testing before 2pm as per your settings.
I regularly have my hallway lights starting to turn OFF (dimming down) and then I re-trigger it and the lights come back ON. They sometimes never turn OFF but start to dim and then dim back up. Sometimes they just turn OFF and then they come back ON. I use Shelly dimmers and not seeing this.
Once the light is ON, the automation will use light_entities_off to prevent repeatedly sending ON commands to the same lights or switches on every trigger. This helps reduce unnecessary commands, keeps the automation cleaner, and may help prolong the life of your devices.
If this behavior is a problem, you can instead create:
one scene with the lights ON
another scene with the lights OFF
You can then use the scenes in the automation instead of direct light entities.
The important part is to avoid using a Scenes & Scripts - Toggle Helper, as every trigger would call the ON scene again even if the lights are already ON.
That looks like a HA bug because input_boolean.turn_on is a known action. I am going to update once I get through all these questions. Maybe I wait until 2026.5.3.
I hope they haven't done this as I am totally unaware of the announcement. Are you sure it is not just a bug they have. I still see in in there documentation template conditions .
Can anyone confirm this is true.
EDIT: I have just updated to HA 2026.5.2 with no issues at all.
Yep that is 100% possible and the main reason for night lights.
The main thing people get caught on here is they think they have to enable the main Time option. The main Time option is when the whole automation can run including night lights. So your main time condition is probably set to 5am to 11pm. Disable the time condition and only use the night lights time option and set that to start at 11pm and end at 5am. Make sure you also enable If lights are ON, adjust the lights when crossing over in night light control.
Then you have 3 options on what should happen when your turn the bypass ON.
1 will turn the light ON
2 will turn the light OFF if it is ON.
3 will keep the lights current state whether if it is ON or OFF nothing will change.
Once you decide what you would like to happen when you turn ON the bypass enable that option and then select your bypass switch input to the corresponding option you selected.
That get the bypass working.
Now you have an option for a time delay and the description explains this.
Then you can have the bypass turn OFF automatically so you don't forget to turn it OFF. you select the auto off to the same option you selected above and set the auto off time delay.
When you open a garage door you want the light to come on for X and then turn OFF (normally). Then you have a motion sensor to turn the light ON and OFF when motion is detected. All depends on your garage opener and what it reports to HA.
What you can to is have a trigger template binary sensor that will turn OFF in a set time. Click here on the FAQ and look for REF - TS-6. Once you have created that sensor you group your motion sensor with your newly created trigger template binary sensor and use the group as the trigger. Then you will have one automation that will turn ON your light when you open the garage door and you motion sensor will keep them ON when motion is detected.
To answer your question on how to add your garage door opener to the input, copy your garage door entity ID first.
Next:
Open the automation.
Add any entity to the input.
Click the 3 dots in the top-right corner and select Edit in YAML.
Locate the entity ID you just added.
Replace it with your garage door entity ID.
Click Save.
The garage door opener will now work with the automation.
Question about using multiple motion sensors for adjacent-room awareness
Hi, thanks for this blueprint β really impressive work!
I'd like to ask whether the following scenario is possible with the current setup, or if it would require modification:
I'd like to use multiple motion sensors to control the light in a given room, based on activity in adjacent rooms as well. The behavior I'm trying to achieve:
Normal state: Motion in the given room β light turns on at full brightness (as today).
Dimmed state: If there has been no motion in the given room for 5 minutes, but motion has been detected in an adjacent room within that window β dim the given room's light to e.g. 50%. The rooms are connected by an open sliding door, so I'd prefer a softer "transition" light rather than going fully off.
Off state: If there has been no motion in either the given room or any adjacent room for 10 minutes β turn the light off completely.
So essentially two timers / two states:
5 min no motion in given room + recent motion in adjacent room β dim to 50%
10 min no motion in given or adjacent rooms β off
Is this something the blueprint supports out of the box (e.g. by configuring multiple motion sensors and tweaking the dim/off delays), or would I need to either chain two automations or modify the blueprint itself? Any suggestions on the cleanest way to implement this would be greatly appreciated.
You can get as creative as you like using a script and keep it running. That is one good thing about HA, it lets you do anything you like. The script would be used instead of your lights in Lights - Switches - Scenes - Scripts. If your unsure how to make this script there are so many people on this forum that can help. Just start an new topic and ask how can I make this script.
If a light is unavailable or unknown, it will now be excluded from calculations so the automation continues running using the remaining available lights. If the light becomes available again during operation, it will automatically be included again on the next cycle.
Fixed brightness calculation when a light does not expose a brightness attribute. These entities are now safely ignored in the calculation logic.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Thanks so much for your response. I did definitely have that setting ticked, I was just finding that if I wanted the same lights to come on at a different brightness at night eg,
Study Downlights - 50% between 08:00-17:00 & 10% between 17:01-07:59 it wouldnβt trigger those lights at night unless I explicitly defined them as a target at night.
This might be by design but from all my reading, if you turn night lights on but donβt specify a different target, it assumes the day lights are your target.
I have it working in this way I mention above by nominating the same target in both sections so itβs not an issue but just curious what the intention is vs my reality.
I've never done it this way round before so please bear with me. I have a sensor light running on motion that shuts off after 5mins, all good. Mrs_G would like to have the light on when the bathroom door is closed (easiest way of knowing if someone is in there longer than a few minutes without moving)
How do I programme this? I can get it do trigger when the door is opened, but not when it is closed. Was thinking of a new automation or as a bypass on the existing motion one.
This is common when you have a bath. I do have a solution for this but you will need a motion sensor in the room and a door contact sensor. I call it "Bee in the Hive".
I point you to some resources. Once you created a bee in the hive sensor you just group your motion sensor with the bee in the hive sensor and use that group as the trigger.
I've tried for a couple of weeks now to get this blueprint to behave the way I would expect and I'm just not getting something correct on my end, clearly. I have an ecowitt weather station that is feeding me a LUX value for Dynamic Lighting Control. But no matter how I configure, when they value of the LUX sensor drops below the designated Max Lux Value, the lights never trigger on at all. There is a bypass set to allow the lights to stay at their current values, but it is off during this testing. I don't use large blueprints like this often but I've been using Home Assistant for six years and I know enough to think it should be working and I'm missing something or I've done something wrong I won't easily catch. Would anyone mind looking at the yaml to see if I've missed the obvious? The traces are sadly really difficult to follow here.
Thank you so much for the answer! Tried a bit on a script, but a bit unsure where to start. Do you have any overall suggestion on what is needed on this script?