I have my HA up and running with your Blueprint and itās great, saved me loads of time and effort. Iām trying to work out how to deal with the power on situation. I have a group of 2 hue bulbs and 1 Philips motion sensor. The trigger is the motion sensor and it then turns my group on containing the two bulbs. How can I configure what happens when the lights have been switched off at the power switch and then when I turn them back on. Iād like to be able to configure the light temp and how long itās on for after the initial physical power switch has been turn on.
Hope someone can help and keep up the great work and community support.
Edit:
I created a helper that is set to On when the one of the lights in my group powers on. Iāve added this to the Trigger Sensor Bypass and now the lights turn off after a set period of time. My next challenge was the lights would not turn back on. This was down to me only setting the automation to trigger on power on and it left the helper in an always on state. Changing the automation to fire on power on or power off seems to have solved the issue.
Please let me know if Iāve gone about this all wrong and there is a better/more eloquent way of achieving my goal.
Edit 2:
Thought Iād solved it there. It all works the first time. The light never comes back on after the first time. Even though the helper is set to off state. If I set ByPass to disable it starts to work again. Any suggestions?
Confirming this and providing context so other readers can understand.
Because your lights are hue bulbs they must have power onto them at all times in order to turn them ON and OFF in Home Assistant. If no power is supplied to the hue bulbs they are just known as unavailable. So if you turn them OFF at the physical switch you have no HA control.
So you are asking; When you turn ON the lights at the physical switch (that then supplyās power to the hue bulbs) you would like to control the light temp and a time delay to then turn OFF you lights. If that is the case then try Entity - Run ON Timer. The only thing it will not do is set your light temp.
I am not sure if this is what you are after though as this blueprint keeps the lights ON until the trigger goes OFF. Maybe you can confirm exactly what you are trying to achieve if I am not understanding correctly. The reason I say this is because you have your lights controlled via motion sensor. I think you would like to have this motion control but also when you turn your lights ON with the physical switch you would like the automation to just run and if no motion is detected your lights turn OFF in a given time and the automation is ready to receive a trigger from the motion sensor. If that is the case then please confirm.
I also have another blueprint called Turn Light, Switch or Scene On & Off with Trigger Conditions. I am going to upgrade it so it reflects this blueprint light control. I could add a timer to that blueprint and would also have light control.
Your 2 edits regarding by-pass are working correctly but again need to confirm if I am understand correctly first. I wouldnāt use the by-pass like this.
Hi, Iām having some trouble getting this working. I am using an Aqara motion sensor, and a light to turn on. It doesnāt trigger even if I keep it as simple as possible, with no options, just a time delay of 5 mins to turn back off. When I check the āTrace Timelineā, it says "Stopped because of unknown reason "null", anything basic Iām doing wrong?
Hi I have been using this blueprint for a few months, and itās been great especially when we have been growing our smart home. This blueprint helped to reduce the number of automations and complexity in our household, so thanks for that
The main issue is the time limit of 30 mins for motion detection to keep the lights on. She has a home office, and it works quite well when she goes in / out of her office or has a drink of her coffee to detect her motion, but when she is in work mode, she barely moves as she works on the computer. Before using this blueprint, we had its time out at 60 mins, and this was the sweet spot. Could the 30 mins be increased to 60 mins?
It would help save some drama in the house, especially if she gets annoyed by the lights turning off while working. She visually demonstrates that she has to wave her arms around and look like ā*Wacky Waving Inflatable Arm Flailing Tubemenā from Family Guy, which gets me into hysterics but gets me into more trouble while she explains her frustration with the lights. Could you please increase it to 1 hour? You would save me from getting into trouble, then trouble again from laughing at her arm impressions.
just go in the /config/blueprints/automation/blackshome folder , open the sensor-light.yaml with a text editor ( notepad for example) and look for these lines:
time_delay:
name: Time Delay
description: The delay time to leave the lights on after the last trigger from ON to OFF state is detected.
default: 5
selector:
number:
min: 0
max: 30
step: 0.5
unit_of_measurement: minutes
Hi Sveip, Could you provide us your YAML of the automation? To do this go into your automation, top right 3 dot, Edit in YAML, copy all the code, back to the forum and in your reply at the top tool bar click on ā</>ā and paste code.
Can you also provide a screenshot of your trace timeline.
Edit: At a guess, I would say your using and area, or a device and not an entity in your āLights - Switches - Scenesā. See The Settings & Best Practice Guidelines:Click Here.
You donāt need to change any code as it will make it harder to upgrade. Just simply type the number you would like ā60ā in and click save and your done.
Thanks for the prompt response Blacky! You were absolutely right in your assumption, I wasnāt using entities. Sorry for the rookie mistake, and it says it right there that itās the only supported type. Well, I guess itās true what they say, itās your eyes that turns blind first
Thanks for getting back to me. At the moment using your blueprint, when I turn the lights on at the wall switch they stay on and donāt go off. If they went off then the motion sensor would trigger the light to turn on next time.
Iād be happy for the bulbs to turn off automatically after the wall switch turns them on, color temp and brightness is a nice to have. Iāll take a look at your Entity - Run ON timer blueprint and see if it will do what I need.
Hello, this is really awesome blueprint. one question I have is: Is there a way to enable night light bases on the binary sensor instead of time? In my case, the ānight modeā for my house is based on a binary sensor and I would like to keep things in sync rather than the light acting with its own schedule.
To be more clear, when I say binary sensor, I actually mean input_boolean (we created a helper for it). We have a button to enable it and we only enable it when our kids go to bed (the time could be different, depending on when they want to sleep). Once the night mode is enabled, the main ceiling light is not going to be triggered by motions, only some light strips will turn on.