2023-06-12 21:56:22 +00:00
|
|
|
- id: bathroom_music_button_next
|
2021-04-01 22:19:16 +00:00
|
|
|
alias: '[Bathroom] Music button - next'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
2021-05-10 09:17:12 +00:00
|
|
|
type: remote_button_double_press
|
|
|
|
subtype: remote_button_double_press
|
2022-02-21 23:58:39 +00:00
|
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_double_press
|
|
|
|
subtype: button_2
|
2021-04-01 22:19:16 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: media_player.bathroom
|
|
|
|
state: playing
|
|
|
|
action:
|
|
|
|
- service: media_player.media_next_track
|
|
|
|
target:
|
|
|
|
entity_id: media_player.bathroom
|
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bathroom_music_play_playlist
|
2022-08-08 21:56:35 +00:00
|
|
|
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
|
2023-04-25 15:53:20 +00:00
|
|
|
- service: script.bathroom_music_play
|
2022-08-08 21:56:35 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bathroom_music_button_play
|
2021-04-01 22:19:16 +00:00
|
|
|
alias: '[Bathroom] Music button - play'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
2021-05-10 09:17:12 +00:00
|
|
|
type: remote_button_double_press
|
|
|
|
subtype: remote_button_double_press
|
2022-08-08 21:56:35 +00:00
|
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_double_press
|
|
|
|
subtype: button_2
|
2021-04-01 22:19:16 +00:00
|
|
|
condition:
|
2021-05-06 23:03:19 +00:00
|
|
|
- condition: not
|
2021-04-01 22:19:16 +00:00
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: media_player.bathroom
|
|
|
|
state: playing
|
|
|
|
action:
|
2023-04-25 15:53:20 +00:00
|
|
|
- service: script.bathroom_music_play
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bathroom_music_button_pause
|
2021-05-10 09:17:12 +00:00
|
|
|
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
|
2022-08-08 21:56:35 +00:00
|
|
|
- device_id: ea9d3cc90cf5da1108925e50489efce9
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_alt_short_press
|
|
|
|
subtype: button_2
|
2021-05-10 09:17:12 +00:00
|
|
|
action:
|
2022-02-07 19:02:42 +00:00
|
|
|
- service: script.bathroom_music_toggle
|