Hi,
I have a SONOS Era 100 player, which is found by Music-Assistant. I installed Sonos “addon?” for Music-Assistant. Era 100 is found, and plays sounds, volume +/- so “basics” work.
If I read entity media_player.wohnzimmer_3 (which is this Era), I see supported_features: 8320575
Which is nearly “everything”, as the bit pattern is 111111011111111111111111
if I am not wrong, only REPEAT_SET = 262144
is not supported. The ones that are not working are turn_on
and turn_off
which are in the “supported feature” list.
I went to developer tools, and choosed Mediaplayr: Off, but where not offered the Era 100, only the “NVidia Shield”, which I also have.
I tried to use this YAML
type: vertical-stack
cards:
- type: custom:mini-media-player
entity: media_player.wohnzimmer_2
name: Wohnzimmer Sonos
artwork: cover
volume_stateless: true
sound_mode: full
shortcuts:
buttons:
- name: SWR 1
type: mp4
id: https://liveradio.swr.de/sw282p3/swr1bw/
icon: mdi:radio
hide:
power_state: false
source: true
info: false
- type: custom:button-card
entity: media_player.wohnzimmer_2
name: |
[[[
return entity.state === 'off' ? 'Turn ON' : 'Turn OFF';
]]]
icon: |
[[[
return entity.state === 'off' ? 'mdi:power' : 'mdi:power-off';
]]]
tap_action:
action: call-service
service: |
[[[
return entity.state === 'off' ? 'media_player.turn_on' : 'media_player.turn_off';
]]]
service_data:
entity_id: media_player.wohnzimmer_2
show_name: true
show_icon: true
layout: icon_name
styles:
card:
- padding: 12px
- border-radius: 12px
- font-size: 16px
- background-color: var(--ha-card-background)
but get the same error (turn_off, turn_on) not supported with the Era. Does anyone have a hint, on how to use turn_off
turn_on
with the Era, even if it is only going in “standby”, which I assume.
many thanks
Juergen