2021-05-25 11:54:21 +00:00
|
|
|
- id: bathroom-mirror-lights-on
|
2021-06-30 09:52:38 +00:00
|
|
|
alias: '[Bathroom] Mirror Button Music'
|
2020-12-20 20:43:46 +00:00
|
|
|
trigger:
|
|
|
|
- device_id: 4d5298037e93ba11438409bff01b5005
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_on
|
|
|
|
action:
|
2021-06-30 09:52:38 +00:00
|
|
|
- service: media_player.media_play_pause
|
|
|
|
target:
|
|
|
|
entity_id: media_player.bathroom
|
2020-12-20 20:43:46 +00:00
|
|
|
mode: single
|
2021-05-25 11:54:21 +00:00
|
|
|
|
|
|
|
- id: bathroom-mirror-lights-off
|
2021-06-30 09:52:38 +00:00
|
|
|
alias: '[Bathroom] Mirror Button Lights toggle'
|
2020-12-20 20:43:46 +00:00
|
|
|
trigger:
|
|
|
|
- device_id: 4d5298037e93ba11438409bff01b5005
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_off
|
|
|
|
action:
|
2021-06-30 09:52:38 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.bathroom_mirror_lights
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.bathroom_mirror_lights
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.bathroom_mirror_lights
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.bathroom_mirror_lights
|
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 2000
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.bathroom_mirror_lights
|
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 3200
|
2020-12-20 20:43:46 +00:00
|
|
|
mode: single
|