Just use the import blueprint blue button at the top of this post.
In blueprints tab go to settings / automations & scenes / blueprints tab then look for the sensor light blueprint⌠next to the blueprint on the same line see the 3 dots⌠and click reimport blueprint.
All will be okay⌠if any doubt then run a manual backup first then update the blueprint. If anything goes wrong you can use your backup.
The button uses the mqtt integration (via zigbee2mqtt) it basically triggers an event. I use that to turn on/off bypass ON/OFF input_boolean helpers. (Basically like your blueprint âTrigger - Run ON Timerâ)
My light also uses mqtt via Z2M and is a default light entity.
And (to be complete) my motion sensor, also mqtt via Z2M and is a default binary_sensor entity.
Currently I turn on âbypass ONâ and off âbypass OFFâ on the button on event. And let the Sensor Light Blueprint turn âbypass ONâ off with a delay.
If the button off event is fired, then I turn off âbypass ONâ and on âbypass OFFâ for one minute (managing that delay myself).
This works fine since Version 6.0. The only quirk: The blueprint turns off the light after set delay (bypass ON Auto OFF) even if there happened motion in between.
And thats why I got the Idea of handling the âONâ delay myself in a template sensor. I tried to build this as clean as possible but it seems there will be a lot of helpers involved.
sorry to be confusing. The existing simple automation uses the scene. With this blueprint I added the dimmer as an entity. The scene is not used.
It looks like I did the right thing per your next post; it just doesnât seem to work. Itâs a HomeSeer HS-WX300
The motion detector is blinking its LED on motion. Thanks for looking at this!
Hey @Blacky, I love this blueprint! Would it be possible to just integrate the Bee In The Hive Sensor" into this blueprint? So it can be used in every room without creating an additional sensor? The Same for Humidity Sensors? What is if you have two doors?
Is it possible to change the Ambient Light - Low/High Value maximum scale setting to a personal preference?
The scale goes from 0 to 500 lux. I experience the max of 500 is quite high and also limits the slider steps to 10 lux steps.
Another question: how to configure if the lights should only be turned off if no motion is detected? Not on if motion is detected. I want to turn it on manually.
It getâs little bit tricky with all the options but I do love that Bee In The Hive Sensor . It is pretty cool hay.
Not sue what you are referring to here.
Make 2 sensors or are you referring to having double doors⌠if so you can group your door sensors or you will have to change the template so it will work⌠easy way is to group them and use the group as the door sensor.
Normally you just set this up once. You can have any value you like just type it in and click save. So if you would like 658 or 13 just type it in.
This is where you would use a scrip and put it into âLights - Switches - Scenes - Scriptsâ or âNight Lightâ. You would create a script an use an If-Then-Else. So it would be IF = Light is OFF (selecting your lights) Then = Turn Light OFF (Selecting your lights) Else = Turn Lights ON (selecting your lights). A detailed guide on this process (similar) can be found Here.
Thanks for the replay!
Is it so complcated to just ad a toggle button to say only on or only off action per entity? that saves scripting
With the humidity sensor I meant it could be used as a presence indicator if humidity goes up fast â some under the shower.
Im struggling with the script for just turn the light out if nobody is in the room.
When is the scipt called? Sensor detects motion and no-motion? Because then I need to determine in the script if this is an on or off action.
So if light is off or on and motion is detected, do nothing.
If no-motion is detected and light is on, switch light off. How do I recognize in the script if this is a motion or no-motion action.
If I need to do this handling and logic all in the script, in donât need your blueprint anymore. So having a button to configure this would be super cool
And of cause the possibility to easily add a door sensor for the Wasp in a box scenario.
You realy need to look at my Bathroom Humidity Exhaust Fan blueprint. This blueprint works with it and it works perfectly + it will control your fan for you.
Just a quick question, why are you using a script. You dont need to use a script just enter in your lights or switches. It is realy easy and you may be trying something that is not required.
Have a look at groups in the FAQ. Group your door sensors. Then follow the guide on the be in the hive but use your group as the door sensor.
I have a question to the lux-based options. My motion sensor (IKEA Vallhorn) is in a guest bathroom. There the lux value only rises up to 10 lux, even on a sunny day (see screenshot). Why is a value of like 2lx not possible for the e.g. ambient light sensing high/low value?