1
0

Romm Assistant WIP

This commit is contained in:
Przemek Grondek 2022-01-30 13:45:45 +01:00
parent dbace6d631
commit f20b3af986

View File

@ -32,6 +32,15 @@
entity_id: media_player.bathroom
state: playing
action:
- choose:
- conditions:
- 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
@ -61,7 +70,7 @@
trigger:
- platform: state
entity_id: sensor.przemyslaws_apple_watch_room_presence
from: ra-bathroom
from: ra-bedroom
for: '0:01:00'
condition:
- condition: or
@ -70,6 +79,15 @@
entity_id: media_player.bedroom
state: playing
action:
- choose:
- conditions:
- condition: state
entity_id: media_player.bathroom
state: playing
sequence:
- service: sonos.join
data:
master: media_player.bathroom
- service: sonos.unjoin
data:
entity_id: media_player.bedroom