💡 Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights

:pensive:

Thinking :thinking:You may have to create a template sensor that toggles the by-pass ON and OFF with the 2 conditions. :tada:

Agree with Blacky here.

Shameless link:

Using this template:

{{ states['sensor.first_sensor'].state|int <= 3 or states['sensor.second_sensoe'].state|int <= 30 }}

1 Like

@Blacky Thank you for pointing out the obvious above, yes that was my “problem”.

Now to tackle Ambient Light!

Chris

@ChrisThomas

No problem, glad you are up and running.

1 Like

I had a use case where I wanted the reverse of the Dynamic Lighting response for my wall mounted home assistant display, ended up modifying the code so that the screen will dim when it’s dark in the room, not sure it’s worth adding a selection in the blueprint for but the code change for brightness percent was pretty straight forward:

                  brightness_pct: "{%  set lux = states(dynamic_lighting_lux_sensor)
                    | float  %} {%  set slop = (dynamic_lighting_min_brightness -
                    dynamic_lighting_max_brightness) / (dynamic_lighting_max_lux -
                    dynamic_lighting_min_lux) %} {%  set ak = (( slop * dynamic_lighting_min_lux)
                    * -1) + dynamic_lighting_max_brightness %} {% if lux <= dynamic_lighting_min_lux
                    %}\n  {{ dynamic_lighting_max_brightness }}\n{% elif lux >= dynamic_lighting_max_lux
                    %}\n  {{ dynamic_lighting_min_brightness }}\n{% else %}\n  {{
                    ((slop * lux) + ak) | round(1) }}\n{% endif %}\n"

Also, I have a normal use case where I wanted the lights being dynamically controlled (in this case under cabinet lighting) to go to 100% when the main kitchen lights are turned on, I added the main light switch into the blueprint as a ByPass - On switch but when I turn it on nothing happens to the under cabinet lights. What’s the correct setup to achieve this function? Expected operation would be, under cabinet lights are on at some brightness (dynamically controlled) main light switch is turned on, under cabinet lights go to 100% and stay that way until the main switch is turned off.

Thank you!

Hi and thank you for your help,

I have checked that option as well - however it did not make differenceđŸ€”

As mentioned I have created a switch (on/off) that can be toggled from a dashboard. In my native language it says «manual light override (screenshot). The entity name is «Auto Light - US100 ». When toggled «on» I am able to control the room lighting without the PIR movement affecting the light control. All good👍

The issue is that the manual override/auto by-pass will stay «on» forever - despite «Bypass Auto Off» set to 1 minute for testing purpose. After 1 minute I would like the toggle switch to return to «off», the lights to go off and the PIR sensor to resume light control.

I think I have the blueprint configured correctly - or am I missing something?

Again - thank you for your help😃

Really cool blueprint!

Is there a way I can tell the automation to bypass itself if the light is already on?

E.g. - I have manually tuned on the light, therefore, I no longer want it triggered/controlled by this automation. I think I want the “bypass” options but it says I can’t use the same entity as a bypass that is declared in the main entity selector.

@spikked27

This is on the road map and you will have an option for this along with some other nice features.

That is because you have turned the by-pass ON so it is doing exactly what it should.

Don’t use the main light in the automation and when you turn it on it should work
 or you need 2 automations.

Blacky :smiley:

@Cregeland

No problem.

You are using the wrong auto off. Untick the two you have selected and tick the other one as shown below.

Blacky :smiley:

@mwargan

Thanks for you kind words.

Yep that is correct. I get this asked all the time.

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

If you are still unsure or have any question let us know.

Blacky :smiley:

I apologize, I didn’t want to hijack traffic, just explain my problem to understand if this project could work for me, but I think I was in the wrong topic.

I think this very kind request can be deleted, the message you are referring to no longer exists

No problem, If you are unsure on how to use this blueprint then please ask. I try my best to get back and help everyone. Some people feel more comfortable to PM me
 I do respond to a lot of PM’s.

All is good thanks for your understanding.

Blacky :smiley:

1 Like

Hi there! I’ve been using the blueprint for about 2 months and It works brilliantly - so thanks for that!
What I need help with is I want the start time to be 22:30 and end time to be sunrise. Ive got the start time easily with the time options, but the sunrise end time I can’t seem to figure out.
Looking forward to your feedback

@abulhr

Welcome to the community.

We dont use sunset and sunrise we us sun elevation. Please read our explanation and how to set it up, it’s easy :slightly_smiling_face: Click Here

  1. Enable the sun and you can keep the defaults for now or read the above and change them. Rising value is sunrise. Falling can be -1.5 and rising 4.
  2. Keep the start time to be 22:30 and have the end time after sunrise or in our case the rising sun elevation. say 9am.

Happy days

Blacky :smiley:

Okay okay I see. So what that does is cuts the automation at that sun elevation because it’s before the “9am” so to speak - yes?

Thanks so much! Will set it up now

Yep, because both conditions have to be true and if one is not then it will stop the automation. :wink:

1 Like

In the link, it shows ‘sun elevation rising’ and ‘sun elevation falling’ sliders. In my blueprint it only has ‘Sun elevation’. I’ve set that to -4.
Is there something I am missing? Should I reinstall the blueprint?

your on an old version, but it will still work.

Q: How do you update the blueprint and not delete / recreate existing automations?

A: Please follow these steps Click Here.

Blacky, you are brilliant!
Thank you very very much. Let’s see how this goes