Published: Aug 26, 2023—2 min read
Integrate all streaming services using Music Assistant
You can use this button to import the repository and be redirected to the download page.
You can find the documentation
here.
You can use this button to import the repository and go to the add-on's page in Home Assistant.
Play/Pause/Resume with a single Button
alias: Living Room Single Switch
description: ""
trigger:
- entity_id: sensor.switch_bedroom
platform: state
to: single
condition: []
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: media_player.living_room_2
state: "off"
- condition: state
entity_id: media_player.living_room_2
state: idle
Dinamic Group Card Example
type: vertical-stack
cards:
- type: conditional
conditions:
- entity: media_player.living_room_2
state_not: playing
- entity: media_player.kitchen_2
state_not: playing
card:
type: media-control
entity: media_player.exterior_group_2
- type: conditional
conditions:
- entity: media_player.exterior_group_2
state_not: playing
card:
type: media-control
entity: media_player.living_room_2
- type
-
condition
:
state
entity_id: media_player.living_room_2
state: standby
sequence:
- service: media_player.shuffle_set
data:
shuffle: true
target:
entity_id: media_player.living_room_2
- service: media_player.play_media
target:
entity_id: media_player.exterior_group_2
data:
media_content_id: ""
media_content_type: ""
metadata: {}
- conditions:
- condition: or
conditions:
- condition: state
entity_id: media_player.living_room_2
state: playing
- condition: state
entity_id: media_player.living_room_2
state: buffering
sequence:
- service: media_player.media_pause
data: {}
target:
entity_id: media_player.living_room_2
- conditions:
- condition: state
entity_id: media_player.living_room_2
state: paused
sequence:
- service: media_player.media_play
data: {}
target:
entity_id: media_player.living_room_2
default: []
mode: single
:
conditional
conditions:
- entity: media_player.exterior_group_2
state_not: playing
card:
type: media-control
entity: media_player.kitchen_2