Pulsante e MQTT trigger - test motion light new
This commit is contained in:
@@ -33,6 +33,12 @@ blueprint:
|
||||
default: on
|
||||
selector:
|
||||
boolean:
|
||||
dont_disturb_condition:
|
||||
name: dont_disturb_light_control
|
||||
description: Controls if lamp brightness has to be reduced to not disturb
|
||||
default: on
|
||||
selector:
|
||||
boolean:
|
||||
no_motion_wait:
|
||||
name: Wait time
|
||||
description: Time to leave the light on after last motion is detected.
|
||||
@@ -89,11 +95,21 @@ actions:
|
||||
id:
|
||||
- motion-detected
|
||||
then:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp_kelvin: 2700
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ dont_disturb_condition }}"
|
||||
then:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: states('dont_disturb_light_brightness')
|
||||
color_temp_kelvin: 2500
|
||||
else:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp_kelvin: 2500
|
||||
else:
|
||||
- action: light.turn_off
|
||||
metadata: {}
|
||||
@@ -107,11 +123,21 @@ actions:
|
||||
id:
|
||||
- motion-detected
|
||||
then:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp_kelvin: 2700
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ dont_disturb_condition }}"
|
||||
then:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: states('dont_disturb_light_brightness')
|
||||
color_temp_kelvin: 2500
|
||||
else:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp_kelvin: 2500
|
||||
else:
|
||||
- action: light.turn_off
|
||||
metadata: {}
|
||||
|
||||
Reference in New Issue
Block a user