26 lines
687 B
YAML
26 lines
687 B
YAML
- id: bathroom-mirror-lights-on
|
|
alias: '[Bathroom] Mirror Button Music'
|
|
trigger:
|
|
- device_id: 4d5298037e93ba11438409bff01b5005
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_short_press
|
|
subtype: turn_on
|
|
action:
|
|
- service: media_player.media_play_pause
|
|
target:
|
|
entity_id: media_player.bathroom
|
|
mode: single
|
|
|
|
- id: bathroom-mirror-lights-off
|
|
alias: '[Bathroom] Mirror Button Lights toggle'
|
|
trigger:
|
|
- device_id: 4d5298037e93ba11438409bff01b5005
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_short_press
|
|
subtype: turn_off
|
|
action:
|
|
- service: script.bathroom_mirror_lights_toggle
|
|
mode: single
|