šŸ’” Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights

@Sleepy81

Your welcome.

Interesting, I will put it on the list and consider this.

@aleco

No problem thanks for your kind words.

Missing one thing you need to enable it.

Blacky :smiley:

Oh how could I have missed that! Thank you very much. Iā€™ll test it as soon as Iā€™m back home but assume everything will be fine now. :slight_smile:

1 Like

how exactly does by pass switch work,

i have a aqara zigbee mini button, and i want to use it toggle the lights on and off with the automations, but whenver i press it, it does nothing but in logs it shows i pressed the button.

Any road map to expand dynamic lighting to ā€œadaptiveā€/ā€œcircadianā€ to also modify the color temperature?

Did you change that for the time option only or also for the night light conditions - sun elevation option?

I think a nice default (or optional setting) behaviour would be that when the sun sets the current light entities state is not changed, only the next time the lights are turned on the nighttime settings are used.

@Adaaks

You need to have a switch that has an ON and OFF state. Most buttons do not. I have 2 blueprints that you can use with your aqara zigbee mini button. First you will need to create a toggle helper and use that in the by-pass. On how to do that Click Here . Then depending on your aqara zigbee mini button (how it reports state when you push it) use my :nazar_amulet: Press Button - Turn ON & OFF Entities blueprint if it has no state or if it has a quick ON/OFF state use my :eight_spoked_asterisk: Toggle Switch - Turn ON & OFF Entities blueprint. You will then enter in your aqara zigbee mini button in and then in ā€œMain Entityā€ enter in your toggle helper.

Hope this helps.

Blacky :smiley:

1 Like

@DuckDuck25

I normally donā€™t like to say anything, but you will notice there is only one enable option in dynamic lighting so the selector is set up already.

2 Likes

@markist

All changes are done and tested, you will see soon as I am updating now.

Blacky :smiley:

New update 5.0

:warning: Some changes have been made to the sun elevation settings in normal lights and night lights. If you use the sun conditions then when updating please check and set your elevation settings. It is not a breaking change.

New Feature :new:

Added Sun Elevation Falling & Rising :sun_with_face: - Now you have a falling and rising sun elevation setting for normal lights and night lights. This will give you more control for your sun elevation. Falling is at sunset and rising is at sunrise. Hope you like it :+1:

Code Change :broom: - Remove time delay to falling sun, ambient high lux value and the end time triggers. They now will turn OFF with no delay.

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

2 Likes

Hello, I have a question please, I am using an Aqara fp2 sensor, with multiple zones in a room, and have created the same bypass entity for every zone. I am trying to achieve the following :slight_smile:
When I turn the by pass on, it stays on as long as I am in the room (General presence detected), but if I leave the room, and no presence is detected for 10 minutes, it turns the light and the bypass off.

Please note that with Aqara FP2, there are presence binary sensors for each zone of the room (for which I created a separate automation with it as a trigger) and a binary_sensor presence for the whole room (No automation have been created for this presence binary sensor).

Is that possible and how to achieve it pls ?

my plan is to have the lights:

morning wake up lights (06:00-sunrise): dimmed to 50%
bright day (sunrise to sunset) 100%
evening chill tv (sunset to 22:00) 50%
night (22:00-06:00) 20%

at bright day no lights if ambient sensor higher then 70 lux

So my movement sensor is sometimes partly hidden behind some stuff, so it wonā€™t always react to movement in the area, and sometimes itā€™s easier just to click the switch rather than moving the stuff, but I still need it to turn off as if it detection motion.

@Anaconda

Not sue what your doing as if presence is detected the light will stay ON and then you put in a time delay of 10 minutes. There shouldnā€™t be the need to use the by-pass for this.

Are you controlling the same lights in each automation?

This is your problem there is no condition for above sun. Try this on the latest version 5.0

Automation 1

  • Global time = 6 am to 12:00pm
  • Lux sensor = min 60 lux & max 80 lux
  • Brightness = 100%
  • Night lights
    • Time = 6 am to 10 am
    • Sun falling -1.5 rising -4
    • Brightness = 50%

Automation 2

  • Global time = 12:00pm to 22:00pm
  • Lux sensor = min 60 lux & max 80 lux
  • Brightness = 100%
  • Night lights
    • Time = 17:00pm to 22:00pm
    • Sun falling -1.5 rising -4
    • Brightness = 50%

Automation 3

  • Global time = 22:00pm to 6:00pm
  • Brightness = 20%

Let us know how you go.

Blacky :smiley:

@valiksheva

So you can use a by-pass to keep the light on. You will have to turn it ON and OFF yourself or have an auto off enabled. By-pass is in the FAQ

Q: By-pass 101 - Every thing to know about the by-pass and how to use the ā€œTrigger Sensor By-passā€ without having a physical switch?

A: Please Click Here

A good starting point is to read ā€œThe Settings & Best Practice Guidelinesā€ Click Here.

That is the problem so you may have to move it to a better location or add another one.

Blacky :smiley:

Thanks for your repy. No each automation controls one light in a zone of the room. I have a one minute delay between each zone, and the light stays on after this one minute only in the zone where I am. However, sometimes I need all the lights to be on in all the room, so I need the bypass to tell it to stay on.

No it will not do this. You could do a simple automation to turn the bypass OFF for you if no presence is detected for 10 min. If you use the same by-pass in all automations you can use the auto OFF option to turn it OFF if you forget. You will only need to do that in one automation.

Blacky :smiley:

Many thanks for your reply. I have tried during two days to make a simple automation to turn the bypass off if no presence, but no matter what I try, it does not work as expected. For exemple, the issue I had is that the automation to turn off the bypass if no motion was detected for 5 minutes was stopped/interrupted as soon as a new motion was detected during these 5 minutes (If I came back and left again before the end of the 5 minutes). I wish I could find a way in such situation to make the 5 minutes countdown start again.

It seems to work now, I made two separate automations, one to switch off the lights if no presence in the whole room , and one to turn the bypass off when the lights are turned off.

Thank you for your help.