Confor Light changes
This commit is contained in:
@@ -12,17 +12,18 @@ blueprint:
|
||||
entity:
|
||||
domain: light
|
||||
|
||||
# trigger_variables:
|
||||
# use_sun: !input sun_condition
|
||||
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: input_datetime.dont_disturb_nighttime_to
|
||||
at: input_datetime.dont_disturb_nighttime_from
|
||||
id: p1-confort-light-off
|
||||
- trigger: sun
|
||||
event: sunset
|
||||
offset: 00:30:00
|
||||
id: p1-confort-light-on
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_button.test_start_animation
|
||||
id: test_animation
|
||||
|
||||
conditions: []
|
||||
|
||||
@@ -32,25 +33,25 @@ actions:
|
||||
- condition: trigger
|
||||
id:
|
||||
- p1-confort-light-on
|
||||
- test_animation
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
# value_template: "{{ use_dont_disturb }}"
|
||||
value_template: "{{ dont_disturb_nighttime }}"
|
||||
value_template: "{{ is_state('binary_sensor.dont_disturb_nighttime', 'on') }}"
|
||||
then:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: states('dont_disturb_light_brightness')
|
||||
color_temp: 523
|
||||
# color_temp_kelvin: 2700
|
||||
brightness_pct: "{{ states('input_number.dont_disturb_light_brightness') | float }} "
|
||||
# color_temp: "{{ states('input_number.confort_light_color') | float }}"
|
||||
color_temp_kelvin: "{{ states('input_number.confort_light_kelvin') }}"
|
||||
else:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp: 523
|
||||
# color_temp_kelvin: 2700
|
||||
# color_temp: "{{ states('input_number.confort_light_color') | float }}"
|
||||
color_temp_kelvin: "{{ states('input_number.confort_light_kelvin') }}"
|
||||
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
|
||||
Reference in New Issue
Block a user