AS
yeelight: !include includes/yeelight.yaml
Size: a a a
AS
OY
OY
AS
AS
AK
O
AK
OY
AS
AS
AS
AS
Р
Р
# Включение луны в детской
- id: kids left button click
alias: Включение луны по левому клику
initial_state: True
hide_entity: false
trigger:
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.kids_wall_switch_left
click_type: single
action:
- service: timer.cancel
entity_id: timer.kids_sunrise
- service: input_boolean.turn_on
data:
entity_id: input_boolean.kids_light_moon
- service: yeelight.set_mode
data_template:
entity_id: light.kids_light
mode: moonlight
- service: light.turn_on
data_template:
entity_id: light.kids_light
brightness_pct: 5
OY
AS
AS
AS
# Включение луны в детской
- id: kids left button click
alias: Включение луны по левому клику
initial_state: True
hide_entity: false
trigger:
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.kids_wall_switch_left
click_type: single
action:
- service: timer.cancel
entity_id: timer.kids_sunrise
- service: input_boolean.turn_on
data:
entity_id: input_boolean.kids_light_moon
- service: yeelight.set_mode
data_template:
entity_id: light.kids_light
mode: moonlight
- service: light.turn_on
data_template:
entity_id: light.kids_light
brightness_pct: 5
Р