Installation#
You can use this button to import the repository and be redirected to the download page.
You can find the documentation here.
Music Assistant Add-on#
You can use this button to import the repository and go to the add-on's page in Home Assistant.
Automation Example#
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
- 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
Music Group Card Example#
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: conditional
conditions:
- entity: media_player.exterior_group_2
state_not: playing
card:
type: media-control
entity: media_player.kitchen_2
I would love to hear your comments, or suggestions on this post.
Fixt is a Software Engineer passionate about making the world a better place through technology and automation.