84 lines
2.3 KiB
YAML
84 lines
2.3 KiB
YAML
- id: bathroom-music-button-next
|
|
alias: '[Bathroom] Music button - next'
|
|
mode: single
|
|
trigger:
|
|
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_double_press
|
|
subtype: remote_button_double_press
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_alt_double_press
|
|
subtype: button_2
|
|
condition:
|
|
- condition: state
|
|
entity_id: media_player.bathroom
|
|
state: playing
|
|
action:
|
|
- service: media_player.media_next_track
|
|
target:
|
|
entity_id: media_player.bathroom
|
|
|
|
- id: bathroom-music-play-playlist
|
|
alias: '[Bathroom] Play playlist'
|
|
mode: single
|
|
trigger:
|
|
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_long_press
|
|
subtype: button
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_alt_long_press
|
|
subtype: button_2
|
|
action:
|
|
- service: media_player.shuffle_set
|
|
entity_id: media_player.bathroom
|
|
data:
|
|
shuffle: true
|
|
- service: script.bathroom_music_play
|
|
|
|
- id: bathroom-music-button-play
|
|
alias: '[Bathroom] Music button - play'
|
|
mode: single
|
|
trigger:
|
|
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_double_press
|
|
subtype: remote_button_double_press
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_alt_double_press
|
|
subtype: button_2
|
|
condition:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: media_player.bathroom
|
|
state: playing
|
|
action:
|
|
- service: script.bathroom_music_play
|
|
|
|
- id: bathroom-music-button-pause
|
|
alias: '[Bathroom] Music button - play/pause'
|
|
description: ''
|
|
mode: single
|
|
trigger:
|
|
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_short_press
|
|
subtype: remote_button_short_press
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
domain: zha
|
|
platform: device
|
|
type: remote_button_alt_short_press
|
|
subtype: button_2
|
|
action:
|
|
- service: script.bathroom_music_toggle |