Hello guys,
i’m trying to group my Sonos speakers without any success.
I’m using the following script:
alias: Radio aan
description: ""
trigger:
- platform: time
at: "07:45:00"
condition:
- condition: time
weekday:
- thu
action:
- service: media_player.volume_set
data:
volume_level: 0.21
target:
device_id:
- media_player.bad
- media_player.buro
- service: media_player.join
data:
master: media_player.wohnzimmer
entity_id: media_player.bad
- service: media_player.select_source
data:
source: '{{ (state_attr("sensor.sonos_favorites", "items").values() | list)[3]}}'
target:
device_id:
- wohnzimmer
mode: single
This is my first try, finaly i would like to have some buttons to add or remove a speaker from a group and start a tunein stream.
Hopefuly someone can give me any advice .
Best regards