Yes but I canât give a time line for this, it is on the list.
This to is under development (on the list) for now we use the âScenes - Scripts To Turn OFFâ. Create a scene with your lights at 10% and enter it there.
Blacky
Yes but I canât give a time line for this, it is on the list.
This to is under development (on the list) for now we use the âScenes - Scripts To Turn OFFâ. Create a scene with your lights at 10% and enter it there.
Blacky
This is very strange. To have HA display as ON and they are OFF. I have tested it many times and it works. I also just tested it again and it works perfectly so I donât think it is a bug in the blueprint. If your FP2 is ON and you transition to from normal light to night lights or from night light to normal lights everything should cross over to the new settings and the lights should stay ON as long as the trigger is ON and it hasnât timed out.
Have a look at the trace line to see what the automation is doing. Also have a look in the logbook to see what turned the light OFF. Could something else be turning it OFF? I am very interested to go through this, as if it is a bug in the blueprint I would like to squash it.
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.
Blacky
Hi @Blacky , thank you for this very impressive blueprint. Honestly this is beyond what I could do by myself!
I do have one use case for it which Iâm having trouble to set up.
I have this light I want to turn ON on a motion sensor trigger, and automatically turn off after a set amount of time. Up to that point pretty easy to do! No problem there.
Now the difficult part is I want to prevent the automation from turning the lights on if the TV is on. I already have a template binary sensor to expose the TV state as simple ON or Off state. Thatâs the part Iâm struggling with. What facilities do I use in the blueprint to do this.
Furthermore, I would still want the automation to turn lights off after some time if they were turned on manually. Can your blueprint do that as well?
If you have a binary sensor that is ON when the TV is ON and OFF when the TV is OFF all you need to do is add this binary sensor into the bypass and choose option 2. This will force the light OFF if it is ON when your turn the TV ON. Then adjust the âBy-pass - Time Delayâ. If you would like it to go OFF instantly set it to â0â.
You have to have an independent switch to do this and use bypass option 1. Then use the by-pass auto OFF for option 1.
Blacky
Thanks for the quick reply. Maybe I wasnât all that clear but what I want is to prevent the trigger of the automation when the TV is ON. The lights in question here are close to the TV and they could be distracting to a viewer if they are turned on.
What I get from your statement is setting up the bypass like you say will simply turn OFF the light if they are ON and the TV is turned ON. I donât want to turn OFF the light as the TV turn ON. I just want to prevent the automation from running while the TV is ON.
Thanks again!
Yep, put your binary sensor for the TV in option 2 of the by-pass. When the TV is ON the automation will not run and if the lights are ON they will be turned OFF. You have 3 by-pass options to choose from. Each option will stop the automation from running. I think you would like option 2.
Test it out.
Blacky
Gotcha, thanks!
Is there any way to not turn off the light when the TV turns on? In case the TV gets turned ON while there is a person in the stairs (lights in question here are lighting up a flight of stairs).
Use option 3 in by-pass. It will keep the light at the current state it is in when the by-pass / TV turns ON.
When the by-pass is ON disabling the automation you can still manually turn the light ON and OFF and it will stay that way until the by-pass is turned OFF.
You could just use the TV to toggle the automation into night mode and then set the brightness to a lower level.
Blacky
Today I have a script with 4 lights turning on when motion is detected.
Can this Blueprint facilitate a setup where one light activates based on motion, another requires both a specific LUX level (xxx) and motion, and the remaining two HUE lights only turn on when LUX is below a certain threshold (yyy) alongside motion?
Thx
alias: licht_wohnzimmer_automation
description: ""
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.sensor_wohnzimmer_presence_sensor_1
light_switch:
entity_id:
- light.wohnzimmer_lampe_1
- light.wohnzimmer_lampe_2
end_scenes:
- scene.wohnzimmer_licht_aus
time_delay: 2.5
include_light_control:
- use_brightness
- use_colour_temperature
light_brightness: 50
light_colour_temperature: 2750
include_ambient: ambient_enabled
ambient_light_sensor: sensor.sensor_wohnzimmer_light_sensor_light_level
include_night_lights: night_lights_enabled
night_lights:
entity_id:
- light.wohnzimmer_lampe_1
- light.wohnzimmer_lampe_2
include_night_light_control:
- use_brightness
- use_colour_temperature
- if_lights_are_on_adjust_when_crossing_over
night_light_colour_temperature: 2750
night_lights_before_time: "06:00:00"
ambient_light_value: 63
night_time_delay: 2.5
night_lights_conditions:
- time_enabled
night_light_brightness: 30
night_light_transition_on: 1
night_light_transition_off: 1
include_sun: sun_disabled
ambient_light_options: ambient_light_option_enabled
include_bypass:
- bypass_enabled_stop
motion_bypass_lights_off:
- input_boolean.by_pass_kino
motion_bypass_lights_on:
- input_boolean.by_pass_kino
motion_bypass_lights_stop:
- input_boolean.by_pass_kino
night_lights_after_time: "14:12:00"
bypass_time_delay: 0
include_bypass_auto_off: []
Triggered by the time at 29. Dezember 2023 um 14:12:00
Testen, ob eine von 22 Bedingungen zutrifft testen
Testen, ob eine von 9 Bedingungen zutrifft testen
Testen, ob eine von 5 Bedingungen zutrifft testen
Testen, ob eine von 8 Bedingungen zutrifft testen
Testen, ob eine von 3 Bedingungen zutrifft testen
Testen, ob eine von 4 Bedingungen zutrifft testen
Choose: Check if the night lights are enabled and within the night lights conditions executed
(scene.wohnzimmer_licht_aus) turned 2023-12-29T13:12:00.195432+00:00
(light.wohnzimmer_lampe_1) turned off
(light.licht_gruppe_wz) turned off
(light.wohnzimmer_lampe_2) turned off
(light.wohnzimmer_lampe_1) turned on
(light.wohnzimmer_lampe_2) turned on
(light.licht_gruppe_wz) turned on
Still running
Iâve just tested it again and I stand by my conspicuousness. I have tested it both with individual entities and with a group of lights. It looks like everything is switching, but the lights are not on as shown in Homeassistant. Perhaps the transmission speed of the commands is an issue. But the test should actually show that the lights are on and only the dimming value needs to be set. What happens is that in the HA ui the new value is taken immediately and the light stays on, but in reality the light is off. The lamps also do not support transition, but the option is also switched off, just wanted to mention it. I have added everything for you, including the log (not visible).
Could you remove your end scene in âScenes - Scripts To Turn OFFâ and test please.
Blacky
Nice one glad it is working now and if your donât need the end scene then all is good
Blacky
I always thought I needed it because I have integrated the cinema function, but that is not a scene but a switch. I donât have a scene or script, so I donât need the end scene either. Then it switched twice at the end. Thank you very much, fantastic!!! Iâve realised it now, havenât I?
Thank you very much!
Your welcome, no problem at allâŠ
Blacky
Fantastic and comprehensive blueprint, it covers what I had previously created manually for my setup plus a whole lot more!
One thing I would love to see, and forgive me is this is already possible but I could not find a way⊠is for the bypass instead of running from a fixed timer would be to have it reset when no motion is detected for x minutes.
The used case is you are working in an office for example, and want to turn the lights off while working. You leave the room to watch TV for 20 mins, but would like the lights to come on when you return. Currently you can set the bypass to 20mins, but how about if you nip out to make a cup of tea, but would like to return to see yourself in, the 20min mark will not have passed and there will be no lights.
Or you are on a landing with the lights coming on, but seeing the kids to bed and want the lights off so they donât wake. You then want to go to bed but have the knowledge if one of the kids gets up 5 mins after you have finished walking in the landing then the lights will come on. With turning off the bypass after no motion is detected for X mins this would really be helpful
Anyway, it may just be me but this is a usecase for me and would be great to see as an addition to this! However donât want to takeaway from what a well thought out blueprint this is!
Hello,
just a quick question, this blue print is working and awesome, but I just recognized that the trigger and entities cannot be changed within the automation anymore.
Any thoughts?
Firstly welcome to the community
Sorry missed it.
You will need 3 automations
Yes
It will work when below a lux level. If you would like to control the brightness depending on a lux level then yes and you could use it to turn ON at a lux level and motion. So maybe.
Yes
Try it out and see if it works for you.
Blacky