I want the light to come on between the hours noted, when motion detected and then turn off again after 2 minutes of no motion. Camera is Blink door bell, light is Phillips Hue through a Bridge.
Hi, thank your for your great work on this automation. Every time I look at the traces I thank my lucky stars I didnāt have to set all that up
I have an issue where two occupancy sensors control the same lights, through two different automation instances of this blueprint, since one is for when Iām sitting at the dining table and one is for when Iām on the sofa, and I want different lighting for both. I tried using the bypass feature to keep current lights when the other sensor is active in both automations, but that only seems to trigger both automations when one sensor detects movement. Am I doing something wrong or is this not the right approach to solve my issue? All I really want is for the light to not turn off if the other sensor is active, since otherwise the other automation activates due to the sensor detecting occupancy, and then the first sensor clears, causing the automation to turn off the lights.
Thanks again for responding. I attempted a script but itās not working the way I want. Basically the blueprint turns on light A when motion is detected in the room and turn off after 5 mins of no motion. I attempted to write a script that said if light A is on, using the same motion sensor, wait 30 mins without motion to turn off light B.What is actually happening is only light A is turning off and B remains on. Should the script work with this logic? Iām sure I have something configured incorrectly. In this scenario, B is being turned on manually by someone. Code below and this is tied to the blueprint under Scenes-Scripts to turn off. Do I need to use helpers to make this work correctly?
I do have a question I couldnāt find an answer to: is there an option to NOT change the brightness with dynamic lighting IF the light is already on?
What happens is, as an example, that the light turns on 1% in the middle of the night, and then I change it to letās say 30%, and on the next motion sensorās motion detection basically the automation runs again and changes it back to 1%. My time delay is set to 10 minutes and that happens within those 10 minutes. Any setting I missed to treat that?
Thanks!
What happens is in the end of the blueprint automation it turns light A OFF, then it will run the script. The script says if light B (the fan) is ON then turn fan OFF. The second code I gave you just has a delay of 30 min.
Now I know it is a fan for your pool and your removing humidity I would look at my Bathroom Humidity Exhaust Fan and link it with the light automation. You will need a humidity sensor to turn the fan ON. In the Bathroom Humidity Exhaust Fan blueprint look at the FAQ and my set up. I think you will love it.
Hi Sebastian, sorry I missed your last post. I normally respond to everyone, but sometimes I miss one, so thanks for asking again.
We canāt use the light in the bypass as when the automation turns the light ON it turns the bypass ON and then the automation will never turn the light OFF.
BUT
I do have a blueprint that if you manually turn the light ON (not the automation) it can turn the bypass ON so when the automation turns the light ON the automation will still turn it OFF. You use this blueprint to create a bypass and then use the bypass in the sensor light blueprint. I havenāt released this blueprint as of yet but if this is what you are looking for I can provide you a link so you can download the blueprint and test it out. Just let us know and I will set it up for you.
Yes, as long as your entity has an ON and OFF state just simply copy the entity ID event.zijdeur_beweging and paste it into the trigger and your done, click save.
You may find that your event entity does not have this, so then you will need to find the state it becomes so your code in your template binary sensor will be like this, or similar
I just not sure what event.zijdeur_beweging actually does. Have a look at in developer tools > states tab > search for event.zijdeur_beweging and then trigger it to see what happens.
If your looking for at night time to have a different brightness then consider using night lights and maybe use time condition in night lights. Dynamic lighting will not work in night lights. You then set your night lights to 30% and they will come on at that every time.
Hey, thanks for your answer. My idea is as you describe it, but with dynamic lighting in both, since ideally i donāt want my sofa lights on one fixed brightness and color. If thatās not possible though, Iāll settle for the option you described and try it out, see if i can make it switch seamlessly between day and night mode when I go back and forth in my living room.
Thanks, but actually this is not what I meant. I mean how do I keep manual changes to brightness throughout one session of āthereās some one in the roomā?
Even with night lights, if it will change the light to 30% every time it detects motion, this means if I enter the room, it turns on at 30%, I change it manually to 50% with my wall switch and then a minute after it will change back to 30% because I am still in the room and the automation runs again? This is what I am trying to avoid, is that somehow possible? Thanks!
I find that once the light has gone off, when I walk by again, the lights to not come back on quickly? (If theyāve just gone off for example) What could be the problem here?
Thank you super helpful and understand this logic now. High level expanding on this automation letās say light A normally turns off after 5 mins but I want it to remain on longer if light C is on. I canāt do this is in a āTurn Offā script since light A would already be turned off. Do I need I need a script at the beginning vs at the end? I assume yes and I need to check the status of light C before exiting out of the ālightsā script?
If you light is ON and you change the brightness then the brightness will remain until the light turns OFF and then comes back ON. It need to be set up correctly.
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.
Once the light turns OFF and you trigger the motion sensor again then it will come back ON.
If you find the light turns OFF and back ON all the time then look at the time delay and increase the delay time.
When motion is detected, the automation triggers, and the light turns ON. Once the motion sensor clears, a time delay begins. After the delay finishes, the light turns OFF. If motion is detected again, the light will turn back ON.
You can adjust the time delay to fit your specific needs or site conditions. Additionally, you can enable a light transition, so the lights turn ON and OFF gradually, making the changes gentler on the eyes. This setup gives you complete control over how the lights behave.