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.
What you will need to do now is create a scene for light A and put it into Lights - Switches - Scenes - Scripts. Then donāt have light A in as an entity. You will then need to create a toggle helper for Scenes & Scripts - Toggle Helper. Now in your end script you will have to turn OFF light A always. So you script may be now if light C is ON then delay your extra time and then turn OFF light A & C (maybe B as well) else turn light A OFF. Scripts are very powerful and you can do anything you like.
I have set the light transition which is softer to the eye which works well. However, when the lights go off - I do find that even when iām waving my hands the light does not turn back on for a while longer? Would this be to do with the timer?
What is the minimum time delay that will work with this? ? I have set this up in the Kitchen with a Presence Sensor which works perfectly. But once the detection is clear - Iād like the lights to turn off pretty quickly.
I also figured out that using the ambient settings - The high lux value was set too low and as such the automation kept turning the lights off thinkng it was bright enough!
Iāve now adjusted this and will monitor what the lux values are during the day to futher tune this setting. I have not played around with the dynamic lighting yet but I am using Advaptive Lighting to controll the colour / brightness already.
As a side note - I purchased the presence sensor to ensure the lights stayed on in the kitchen while someone was in there! However I wanted to note that your automation and blueprint works very well with the āregularā Hue Sensor (It just keeps the light on every time the motion occupancy is detected) that it almost renders having a presence sensor pointless) Iām so pleased with this!
Hey Mate, Loving these automations! I am wondering if you could point me in the right direction here.
I have a zone (dining room area) that I have this blueprint managing the lighting for; however this zone is kind of a pass through area. Meaning to get to the kitchen you must walk through the dining room.
I am wondering if there is some kind of trigger delay or something I could add to this to make it only run if someone stops in the dining room itself. Any thoughts? Thanks again for all the hard work!
If you would like a trigger delay then you need to do it in the trigger or make a template binary sensor with a delay ON. You may be able to adjust the zone so the walk path is not included.
Thanks for the suggestion, i tried a bunch of things and decided to leave things the way they are. Only one issue my automation doesnāt seem to run the day after Iāve set it up. For example, i set up the configuration yesterday and tested it extensively and it worked fine but then the following day (today) nothing happens when motion is triggered. Iāve noticed this happen a few times, am i doing something wrong ?
I disabled Sun Elevation global condition as you are using dynamic lighting and those settings donāt match.
I un-ticked Use Brightness in Light Control as you are using dynamic lighting option 8. It wont matter if it is ticked but it will do nothing anyway.
Consider un-ticking Enable sun elevation option in Night Lights Settings as your Enable time option with the times you set should be within that time.
Consider ticking If lights are ON, adjust the lights when crossing over in Night Light Control so if the lights are on it will adjust them to night lights settings.