Recap: This sensor is designed for the below request
How the sensor works.
If you are in the room and the total room is detected you can push a button to turn it ON. If the room is not detected (clear) then when you push the button it will turn it OFF if ON or do nothing as it is OFF already. It was not realy designed to use it to turn it OFFā¦ it just works this way. It should be used for the ON only and you would label it "All Light ON * " with and ā*ā as it has a condition that the total room must be in detected (ON) state for it to go ON. The reason why I didnāt put 10 min there and only 30 seconds as I thought once you see how it works you will only need seconds but I gave you the code to change it to minutes if you would like, as it is your HA set up. This 30 seconds is there if you walk out of the room say to answer the front door and your total room goes clear (OFF) then you will have 30 seconds to reactivate it before it will turn OFF (clear) and your automations to work in zones again. You will need to adjust or remove this according to your requirement.
When the total room goes to clear (OFF) then it will turn OFF once the 30 seconds have passed. This is where I think you could be getting tricked when testing as if you turn OFF your lights manually look at your total room detection and see it clear (OFF) and it has not been more than 30 seconds and you walk back in nothing will happen as the template sensor is still ON (detected).
Conclusion: So if you press the button it will turn all zones lights ON if total room presences is detected and if no presences is detected for 30 sec it will turn OFF then the automation it will start the time delay and turn your lights OFF. So when no presences is detected it will be 30 sec + your time delay = lights OFF.
Now it look like you would like to be able to cancel the template binary sensor when the total room sensor is ON, well you canāt once you press the button. It works like a normal motion sensor now but you get to decide when you would like all your light ON. Then you just have to run the automation. Pushing the button when the total room sensor is clear (OFF) ā¦ well it will do that automaticity anyway.
I took the time to test it here so I now know it works. Not sure why you have to quit the room. Your total room sensor should go OFF when all your zones are OFF. I donāt know that as I donāt have one but It would be very strange if it didnāt work that way.
What will happenā¦ if you turn the light ON manually the light will come on and stay ON. If motion is detected once the light is ON the automation will take over. You canāt have a trigger on the Light to turn off once ON and have this automation as they will fight each other.
You can use the by-pass with a trick. Create 2 by-pass switches.
Use by-pass āTurn lights ONā and use the auto off delay.
Use by-pass āKeep the lights current stateā and dont use the auto off delay for this one.
Trick: Use āTurn lights ONā to turn the lights on and the auto off will work and if motion is detected in that time the lights will stay on. If you use the āTurn lights ONā to turn the lights and then by-pass āKeep the lights current stateā the lights will stay ON until you turn this OFF manually the āKeep the lights current stateā by-pass.
The ambient high value is a set point to crate a dead zone (between low and High). So for you the light is allowed to be turned on when the ambient light goes below 30. Once the light is ON it can stay ON until the ambient light goes above 80. It helps you on cloudy days so your lights dont go ON and OFF.
The way to set it when your light level is 29.99 lux and your light goes ON your brightness will increase if your sensor is effected by the light. So now your level may go to say 70 lux when the light is ON. You then can decide what lux you would like the lights to go OFF at. You may choose 100 lux. So as the cloud cover decrease and the sun comes out again the light will turn OFF at 100 lux and or if no motion is detected. It stops this bounce of light ON, light OFF, light ON, light OFF, etc.
Hi Blacky, I am using your blueprint and I wanted to ask if it is possible to make the motion sensor detect only in a specific period, for example from 12:00 to 17:00. Thanks!
@Blacky Am I right in thinking that to get the night mode to work I need to have a sensor that is ON for that time?
This is for an area covered by a Hue Motion Sensor so I have activity and illuminance. Out of the box the daytime works a treat, triggered by light level and activity. For night mode I want same triggering just a lower light level on the light.
We had an old plug in night light that was triggered by motion, but after 30 years of stalwart work, itās given up the ghost and I thought a few minutes work and Iād have a replacement, but it didnāt work last night, so Iāve missed somethingā¦
In night lights we have 3 conditions we can choose from. You can use one of them or all of them it is up to you. You can have a Entity State, time or sun. I use time in some and state with my phone in others.
Next to state there is a link that will explain it.
Time is between the time but if you use time in normal lights then that time has to include night light time. A link is there for more information in normal light time.
Sun is below your setting. More information is in the FAQ for this.
Thank you so much for your amazing work with this blueprint!
One question though, Would it be possible to add a (optional) second light sensor?
I have a light sensor in the room and one outside, and I would like to trigger this automation when itās dark outside OR when the curtains inside are closed which I can see by the value of the sensor inside.
Because you would like the automation to run 24 / 7 then disable the normal lights time and only use the night light time from 23:00 to 8:00 as shown below.
Thanks, but adding a group sensor and then using the combined or minimal value for example wonāt work for me.
I want the light the turn on when āMotion is detected AND (inside sensor <= 3 OR outside sensor <= 30)ā for example. That is not possible with a combined sensor I think.