How to change Sonos volume?

Is is possible to change the volume of a SONOS speaker?

Yes… If you click on the 3 dots on the right hand side of the card for the particular SONS media player, you will get the controls, including a slider to change the volume.

Thank you!
But I need the “code” to change the volume in a automation…

> - alias: 'Schlafzimmer'
>   initial_state: 'off'
>   hide_entity: False
>   trigger:
>     platform: state
>     entity_id: sensor.sonos_status_sz
>     from: 'off'
>     to: 'paused'
>   action:
>     service: media_player.play_media
>     entity_id: media_player.schlafzimmer
>     data:
>       media_content_id: x-rincon-mp3radio://regiocast.hoerradar.de/deltaradio-foehnfrisur-mp3-hq?sABC=582r034r%230%235469p473qo9365nr3n7564s9sn
>       media_content_type: music

Hi,

setting the volume of your Sonos speakers is straight forward.

  action:
     - service: media_player.volume_set
       data_template:
         entity_id: media_player.livingroom
         volume_level: 0.2

I hope that helps.

Cheers,
Tobi

4 Likes

Thank you!
It’s work!

Hi I was looking as well for option adding volume level.
once i added this,
error showing
Configuration errors detected:

  • No type provided.
data:
  volume_level: 0.1
service: media_player.volume_set
target:
  entity_id: media_player.wohnzimmer

That’s how it looks in my script


dosent work for me :frowning:

That should be part of an script or automation
It seems you try to add this as an card to Lovelace

doesnt work for me either even in an automation

For anyone looking into this now, you can use the “Call Service” action, then choose the speakers and set your level.