Migrate from sonos.join/unjoin to media_player
This commit is contained in:
parent
bb3e76bd6a
commit
46bfa9c01d
@ -17,13 +17,13 @@
|
|||||||
media_content_type: music
|
media_content_type: music
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.bedroom
|
entity_id: media_player.bedroom
|
||||||
- service: sonos.join
|
- service: media_player.join
|
||||||
data:
|
data:
|
||||||
master: media_player.bedroom
|
group_members: media_player.bathroom
|
||||||
entity_id: media_player.bathroom
|
target:
|
||||||
|
entity_id: media_player.bedroom
|
||||||
- service: script.tv_f1tv
|
- service: script.tv_f1tv
|
||||||
- delay: '0:05:00'
|
- delay: '0:05:00'
|
||||||
- service: sonos.unjoin
|
- service: media_player.unjoin
|
||||||
data: { }
|
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
|
@ -12,9 +12,10 @@
|
|||||||
entity_id: media_player.bedroom
|
entity_id: media_player.bedroom
|
||||||
state: playing
|
state: playing
|
||||||
action:
|
action:
|
||||||
- service: sonos.join
|
- service: media_player.join
|
||||||
data:
|
data:
|
||||||
master: media_player.bedroom
|
group_members: media_player.bedroom
|
||||||
|
target:
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
|
|
||||||
- id: ra-music-bathroom-leave
|
- id: ra-music-bathroom-leave
|
||||||
@ -32,17 +33,8 @@
|
|||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
state: playing
|
state: playing
|
||||||
action:
|
action:
|
||||||
- choose:
|
- service: media_player.unjoin
|
||||||
- conditions:
|
target:
|
||||||
- condition: state
|
|
||||||
entity_id: media_player.bedroom
|
|
||||||
state: playing
|
|
||||||
sequence:
|
|
||||||
- service: sonos.join
|
|
||||||
data:
|
|
||||||
master: media_player.bedroom
|
|
||||||
- service: sonos.unjoin
|
|
||||||
data:
|
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
|
|
||||||
- id: ra-music-bedroom-arrive
|
- id: ra-music-bedroom-arrive
|
||||||
@ -59,9 +51,10 @@
|
|||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
state: playing
|
state: playing
|
||||||
action:
|
action:
|
||||||
- service: sonos.join
|
- service: media_player.join
|
||||||
data:
|
data:
|
||||||
master: media_player.bathroom
|
group_members: media_player.bathroom
|
||||||
|
target:
|
||||||
entity_id: media_player.bedroom
|
entity_id: media_player.bedroom
|
||||||
|
|
||||||
- id: ra-music-bedroom-leave
|
- id: ra-music-bedroom-leave
|
||||||
@ -79,16 +72,7 @@
|
|||||||
entity_id: media_player.bedroom
|
entity_id: media_player.bedroom
|
||||||
state: playing
|
state: playing
|
||||||
action:
|
action:
|
||||||
- choose:
|
|
||||||
- conditions:
|
|
||||||
- condition: state
|
|
||||||
entity_id: media_player.bathroom
|
|
||||||
state: playing
|
|
||||||
sequence:
|
|
||||||
- service: sonos.join
|
|
||||||
data:
|
|
||||||
master: media_player.bathroom
|
|
||||||
- service: sonos.unjoin
|
- service: sonos.unjoin
|
||||||
data:
|
target:
|
||||||
entity_id: media_player.bedroom
|
entity_id: media_player.bedroom
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user