Thinking You may have to create a template sensor that toggles the by-pass ON and OFF with the 2 conditions.
Agree with Blacky here.
Shameless link:
Using this template:
{{ states['sensor.first_sensor'].state|int <= 3 or states['sensor.second_sensoe'].state|int <= 30 }}
@Blacky Thank you for pointing out the obvious above, yes that was my âproblemâ.
Now to tackle Ambient Light!
Chris
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.
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
No problem.
You are using the wrong auto off. Untick the two you have selected and tick the other one as shown below.
Blacky
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
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
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
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 Click Here
- 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.
- 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
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.
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