play pause sonos

This commit is contained in:
Georgi Gardev
2022-12-01 16:02:00 +02:00
parent c405406155
commit c8b1404364
7 changed files with 35 additions and 0 deletions
@@ -46,6 +46,11 @@
template: v3_button
entity: media_player.bathroom
name: Sonos
hold_action:
action: call-service
service: media_player.media_play_pause
service_data:
entity_id: media_player.bathroom
- type: custom:button-card
template: v3_button
@@ -133,6 +133,11 @@
template: v3_button
entity: media_player.master_bedroom
name: Sonos
hold_action:
action: call-service
service: media_player.media_play_pause
service_data:
entity_id: media_player.master_bedroom
- type: custom:button-card
template: v3_button_purifier
entity: fan.philips_airpurifier
@@ -78,6 +78,11 @@
template: v3_button
entity: media_player.kitchen
name: Sonos
hold_action:
action: call-service
service: media_player.media_play_pause
service_data:
entity_id: media_player.kitchen
- type: custom:button-card
template: v3_button
entity: binary_sensor.sonos_is_kitchen_grouped
@@ -125,6 +125,11 @@
template: v3_button
entity: media_player.living_room
name: Sonos
hold_action:
action: call-service
service: media_player.media_play_pause
service_data:
entity_id: media_player.living_room
- type: custom:button-card
template: v3_button_tv
entity: media_player.living_room_tv