Hey @Blacky,
Thanks again! I figured it was something to do with the bypass option. I will definitely have a look at it. In your description you mentioned separate bypass names, which I donât think is quite optimal in the wake of the language glitch. I fiddled around a bit last night and something has come up, but thereâs still one point where Iâm stuck. If necessary, you can also integrate the thoughts into the Blueprint. So what have I done and what is the initial situation?
I currently have 3 different Blueprints (hallway, kitchen & bedroom âliving room to come laterâ). Each room has max. 65% light intensity set via your Blueprint.
Attached is an example for viewing (this makes it easier):
alias: licht_kuche_automation
description: ""
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.bewegungsmelder_kuche_1_0_occupancy
time_delay: 6.5
include_light_control: use_brightness
light_brightness: 65
include_bypass: bypass_disabled
include_time: time_disabled
after_time: "00:00:00"
before_time: "00:00:00"
include_night_lights: night_lights_enabled
night_time_delay: 1.5
include_night_light_control: use_night_brightness
night_lights_after_time: "01:35:00"
night_lights_before_time: "07:00:00"
end_scenes: []
night_light_brightness: 7
night_lights:
device_id:
- 48feb7e201d1d2ee7b6158b4f277ea74
include_ambient: ambient_enabled
ambient_light_options: ambient_light_option_enabled
ambient_light_value: 60
ambient_light_sensor: sensor.bewegungsmelder_kuche_1_0_illuminance
light_switch:
device_id:
- 48feb7e201d1d2ee7b6158b4f277ea74
Then I created an additional automation per room (which is called Light 100% - which is not quite right). Attached is the automation:
alias: licht_kuche_100_prozent_automation
description: ""
trigger:
- platform: numeric_state
entity_id: light.signify_netherlands_b_v_lwb010_huelight_2
attribute: brightness
above: 169.8
condition: []
action:
- service: automation.turn_off
data:
stop_actions: false
target:
entity_id: automation.licht_kuche
- service: script.xx_minuten_licht_automationen_wieder_einschalten
data: {}
mode: single
As you can see from the automation, the automation switches off your main automation/blueprint as soon as the light goes above 65% and starts a script that specifies the minutes how long the automation should be off. After the time has elapsed, your Blueprint automation is switched on again. The advantage of this procedure is that I donât have to say a separate name, I just have to set Brighter or Light to xx% percent. Furthermore, after the time has elapsed, your Blueprint is activated again and it automatically returns to the set value from your Blueprint when movement occurs.
Unfortunately, there is still a catch in my script that I canât get past. If I am no longer in the room after manually increasing the brightness, your blueprint naturally lacks movement and the light remains on. I would like to set it so that if no movement is detected after XX minutes, the light goes out. I have already reached the point where your Blueprint is reactivated after the time lapse and the standard brightness is selected, but it continues to light up.
script
alias: xx Minuten Licht Automationen wieder einschalten
sequence:
- delay:
hours: 0
minutes: 0
seconds: 20
milliseconds: 0
alias: "Delay for xx minutes <65% light "
- service: automation.turn_on
data: {}
target:
entity_id:
- automation.licht_flur_automation
- automation.licht_kuche
- automation.sz
- choose:
- conditions:
- type: is_no_motion
condition: device
device_id: b561c53667f7e18f61e01b5ff0d4e8ed
entity_id: binary_sensor.philips_sml001_motion_2
domain: binary_sensor
- condition: and
conditions:
- type: is_no_motion
condition: device
device_id: f29fd1904e863c533a1d9a69fac9e0d1
entity_id: binary_sensor.philips_sml001_motion
domain: binary_sensor
sequence:
- service: automation.trigger
data:
skip_condition: true
target:
entity_id: automation.licht_flur_automation
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
enabled: false
- service: light.turn_off
data: {}
target:
entity_id: light.flur_licht_gruppe
enabled: true
mode: single
Maybe you can do something with the thoughts and maybe you also want to help me with the completion.
Thanks and best regards
Seger