Fix music button
This commit is contained in:
parent
0a737cf7cd
commit
4c0b0c4140
1 changed files with 22 additions and 5 deletions
|
@ -6,8 +6,8 @@
|
||||||
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
||||||
domain: zha
|
domain: zha
|
||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_double_press
|
||||||
subtype: remote_button_short_press
|
subtype: remote_button_double_press
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
|
@ -25,8 +25,8 @@
|
||||||
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
- device_id: e233cdffb05076ad7bb049581ffa8c9c
|
||||||
domain: zha
|
domain: zha
|
||||||
platform: device
|
platform: device
|
||||||
type: remote_button_short_press
|
type: remote_button_double_press
|
||||||
subtype: remote_button_short_press
|
subtype: remote_button_double_press
|
||||||
condition:
|
condition:
|
||||||
- condition: not
|
- condition: not
|
||||||
conditions:
|
conditions:
|
||||||
|
@ -34,10 +34,27 @@
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
state: playing
|
state: playing
|
||||||
action:
|
action:
|
||||||
|
- service: media_player.shuffle_set
|
||||||
|
entity_id: media_player.bathroom
|
||||||
|
data:
|
||||||
|
shuffle: true
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
data:
|
data:
|
||||||
media_content_id: https://open.spotify.com/playlist/71mXIu6HcdVj3fAMduaHop
|
media_content_id: https://open.spotify.com/playlist/71mXIu6HcdVj3fAMduaHop
|
||||||
media_content_type: music
|
media_content_type: music
|
||||||
shuffle: true
|
- 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
|
||||||
|
action:
|
||||||
|
- service: media_player.media_play_pause
|
||||||
|
target:
|
||||||
|
entity_id: media_player.bathroom
|
Loading…
Reference in a new issue