I can’t see your YAML of your automation but my bet is that your global time option from 7pm to 10pm is the problem. This must include your night light time as it is global. Please adjust it from 7pm-10pm to 7pm-7am. Once you do this it will all work.
Thanks for your YAML… yep adjusting the global time to include your night lights time will work. Also note since you said “but lots more stuff added” there is another option now if you would like your lights to transition to night lights if your lights are ON. See below.
Your lighting experience, your way – take control and customize it to perfection!
Maintenance
Update the description in “Lights - Switches - Scenes - Scripts” and “Night Lights” to include the new option to select “labels”. The updated description should read:
NOTE: Only entities can be used. Areas, devices, and labels are not supported.
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
For the bypass option any way to use something besides an entity per bypass? I’m considering switching from my custom Node Red setup to this setup. In node red I have a few configs that dynamically allows me to set variables in a map to motion_enabled on/off. But to move to this setup I believe I would have to create a helper per light for a few dozen lights.
Ive had a really good look through all the documentation, and I can see that this would be an awesome blueprint to use all over the house. For me, I have a hue sensor in a hallway and trying to use the lux sensor to provide some light using a hue lamp, but find that no matter what I do in the lux settings, the light always comes on. Do love this and will pursevere but if there are any tricks and tips id be stoked to get amongst those!!
It all depends what you are trying to do. There are many options that allow you to set up your lights and it all has been developed to evaluate the site conditions. They are
Sun
Ambient
Time
Device Tracker
Night Lights
You then also have bypass and many options in there. The bypass it is very powerful. I don’t think you have to set up a helper per light. Maybe if you can give me more on what you are trying to achieve I can help you more.
Thanks for reaching out when you get stuck. Because I can’t see your YAML of the automation I am not sure what is happening. My guess is that your haven’t enabled the ambient options. See below.
If this is not the case could you please 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.
Sorry I should have been more specific. I’m looking to stop the light from turning off even if motion is no longer detected.
I have custom automations for Sun/Ambient/Time/Night Lights via Node Red that I’m playing with transitioning to Adaptive Lights.
My current setup for motion is a custom NodeRed. I have Inovelli switches and when I press the config button I want to disable motion for that switch/room.
In NodeRed I detect the config button being pressed
Set the switch LED to purple(motion disabled)
Set a variable map in node red with a key that contains the switch name to “true”
If the button is pressed a second time
Set switch LED to blue
Set variable of switch name to false
In my logic for motion detect if that value is true above than it does nothing. If that value is false it works as normal.
Yes this all can be done but your indication LED will have to be done outside of the automation and as long as your Inovelli switches button does not control the lights and it is a independent switch. The Inovelli switches must have a ON/OFF (true/false) state.
Try a basic automation with your motion sensor, lights and a bypass option. You only need to select one option. Since you would like the light ON then select bypass option 1 and enter your Inovelli switche entity into the input for bypass option 1. Then test it out.
I do have the ambient option enabled. I have temporarily disabled the automation while I try to figure it out, but the yaml is below for you to have a wee lookie at - which I really appreciate!
Thanks for your YAML. You are using Dynamic lighting and Ambient Options. They are both different things. Lets try and just use the Ambient Options first and get that to work.
First lets disable Dynamic Lighting as shown below.
Option 1: As shown below it looks like you are using a low and high value… if so we will need to select “No” for the site conditions. What this will do is, if the LUX is below 120 and you have motion the light will turn ON. If the LUX value goes above 610 or no motion then the light will turn OFF.
Option 2: If you set it up as shown below. What this will do is, if the lux value is below 120 the light will come ON. It will not turn OFF regardless of any lux value once the light is ON. You have to have no motion and it will turn the light OFF.
Thanks for the tips here - that’s awesome. Im going to give these a go and see how we get on - I do like the idea of dynamic lighting for this area as its a hallway with very minimal natural light - but, will see how this goes and get my head round this first before attempting to tackle more.
I am new to HA and I can see that your blueprint will likely be so useful in all areas of the house so am stoked to have found it. Thanks for your efforts.
Sounds good. If you would like me to help with dynamic lighting then if you can give me what you are trying to do then I can help. You can also look at the FAQ on dynamic lighting.
Thanks
I think what I was trying to achieve is, turn the lights on according to whether there is motion, using the dynamic settings but also turn off after a certain amount of time irrespective of the dynamic settings.
What I found was, the lights would just always come on when motion was detected. To be fair, I couldn’t work out which of my settings was causing an issue!
thanks for your awesome blueprint. I’ve planned this to use in all our rooms, but there is one thing i dont understand.
The situation:
I have one led-panel in the floor. The panel should only be activated, if the lux value is below 50 lx. The other option works perfectly nice, for example the color temp and brightness in correlation with the actual time and also night lights.
This panel is every time activated with the motion sensor, with a minimum of 5% i guess. Where does this come from? Any advice would be apreciated
I have been able to recreate this and I can see there is a bug in option 8 of dynamic lighting. I will have to fix this. For now if you like you can enable the ambient option, enter in your lux sensor, select yes and set the low lux value to 50. This will only allow the automation to run when it is below 50. Note, this is a good way of doing it anyway and is what I would do.
Thanks for pointing this out and stay tuned for the fix / update.
I wonder though if the blueprint allows conditions at all.
Light: a zigbee switch which s1/s2 are hardwired to a physical switch on a wall.
Trigger: a zigbee door sensor.
Goal: when the light is OFF, do the automation. When the light is ON - do not do any (==do not switch off after timeout or by a trigger).
I can work it out using additional helpers/devices/automations but I was wondering if the blueprint can already “just do it” already? Thanks
I can see a bit of a conflict here. If the light is OFF and you turn the light ON to run the automation then “When the light is ON - do not do any”. What you can do is use a bypass with a different entity (not the light, could be a switch a toggle helper et) and use bypass option 1. When you manually turn the bypass ON, it turns the light ON and disables the automation.