Whatās likely happening is that when User 1 exits and turns the light OFF, the motion sensor is still active. Then, when User 2 enters, the sensor remains active, so the automation doesnāt trigger again to turn the lights ON.
This isnāt caused by the time delay, as the delay only starts when the motion sensor is clear. If motion is detected again before the delay completes, the timer resets and waits for the sensor to go clear again before starting the delay.
Deleted your input for bypass 2. You have selected the wrong entity⦠it must be your Template Binary Sensor you created and not zone.home. Please select the correct entity here.
I have tested it again here and it works perfectly. You ambient must go from below 80 to above 80 for it to trigger the OFF as you are using the default values.
I have a strange error since a couple of seconds and my lights wonāt turn on
Edit : but they do turn off when I manually turned them on before
Gestion lumiĆØres bar: Choose at step 1: default: Parallel actions for dynamic lighting and normal lights: parallel 1: Choose at step 10: 8 - Dynamic Lighting - Sun Elevation Lighting - Colour Temp + Lux Controlled Brightness: Parallel actions for dynamic lighting: parallel 1: Dynamic Lighting Control: Error executing script. Error rendering template for variables at pos 1: ZeroDivisionError: float division by zero
I didnāt change a thing in the Blueprint or maybe I did an update of HA Core and Supervisor.
I already update to version 8.0 but didnāt change anything.
Relatively new to HA (3 months) and spent today figuring out how to move forward with what (to me) seems like rather complex but realistic lighting automations.
(background - hardware design with some coding experience)
I debated various approaches - a) Pure HA automation using UI; b) NodeRed; c) Blueprints; d) Python; and settled on using what seems to me the best documented, most thorough lighting blueprint possible. Kudos @Blacky for such comprehensive info!
(current setup) HAOS, about 8 lutron dimmers, Eyezon alarm system with door sensors, Ratgdo for garage door. I have some mmwave sensors (EP1 and EPlight) waiting for use, not yet installed, and remember Iām very new at HA thinking.
Kitchen Lights (recessed and pendants either treated as a group or not)
home unoccupied - lights stay off, or go off after delay
home occupied but āsleepā enabled (tbd) - lights go off after delay
A. kitchen without motion
Morning - light brightness starts low (5%) and as sun rises keeps increasing to 20% max (for morning time period) then eventually turn off (10am)
Evening - light brightness starts low (5%) and as sun sets keeps increasing to 20% max then eventually turn off at midnight (failsafe time)
B. kitchen motion - increase brightness above A, then follow path A after delay (if lights off midday, lights should turn on with motion to some value, maybe 100%, then go off after delay
C. Door Triggers - increase brightness same as B
D. TV Pause Triggers - increase brightness same as B
The overriding theme is that I am hoping to find a tunable solution that addresses all of the various control types, while maximizing the ācoolā factor such as:
baseline keeps the room lighted without motion during periods we commonly walk in and out (avoids constantly going from lights off to lights on due to motion)
motion triggers will hopefully increase the cool factor and show that the automation knows something is happening
door and TV triggers are useful when someone is in a nearby room (open floorplan) and will signal that something special is happening (arrival of someone from a door, or bathroom break)
I found snippets in reading the past 2 years of posts here, but nothing that totally applies. For a bit I thought I could combine schedule with binary sensor in a group, but that wonāt handle case B.
I maybe need to just dive in and experiment (blueprint is already installed) but as Iāve gone through the many different sections of controls Iām finding it hard to understand whether my goals are doable.
āBee in The Hiveā: This is so brilliant! Thank you so much @Blacky , I havenāt been so happy about an automation like the one with this sensor for a long time!
It works fantastically well! I will definitely use this idea for a few more automations as well.
related question that possibly simplifies my scenario
Q - Can the setting for āBypass Switch - Keep The Lights Current Stateā be used with a sensor group such that a 2nd automation could override Sensor Light?
Is there a better way to allow for splitting the desired function into more than one automation?
Does the blueprint kind of ignore the Time Delay set to 0? In my case it takes at least 20 seconds for the automation to turn the lights off after the presence sensor reports clear.
Hello! Iām using this blueprint to handle my night glow lights of my house external walls. Since i have some pedestrian gates in my garden, iād like to trigger the lights when the gate contact switch status changes. If i add that entity to the Triggers parameter the 1 status of the binary sensor is handled as āpresence detectedā but the presence itself should be when such binary switch changes (someone open/closed it). How could i do it? Is there a way to achieve that?
Is there an easy way to add a HA binary helper that disables the automation?
For example I (and i assume most people) have binary helpers/sensors like āEnable Kitchen Light Automationā etc. Is there an easy way to incorporate something like that to this out of the box? Ive had a look through the docs but seems like i cant find any obvious option, but i feel like i maybe reading some of the docs wrong =/
Hello,
It seems that the error occurs when the sun is set but it works fine during the day. Well, thatās unfortunate because I need my lights during the night
Schedule with dynamic lighting and maybe opt for Dynamic Lighting - State Control Option
Maybe try using night lights with your motion sensor as the state trigger. You will also need to use your motion sensor in the normal trigger. So you will have to group it with your schedule (A option) but your schedule will have to be a template binary sensor so you can group them. Not sure if you know how to do this⦠if not just let us know and I will show you. Just a note if A is active and then you walk into the room then B will be active⦠when will you use A
Yeah, the Bee In The Hive Sensor blueprint or template binary sensor works so well and not a lot of people know about it. When used with this blueprint you get all the features as well and you can use it for so many other things to.
Glad you like it and thanks for posting this letting us know.