Volume_set not working

Whats wrong with this action?

action:
        - service: volume_set
          entity_id: media_player.squeezebox_radio
          data:  
            volume_level: 0.5

I think you need to put the domain in the service call - service: media_player.volume_set

so try

action:
  - service: media_player.volume_set
    data:  
      entity_id: media_player.squeezebox_radio
      volume_level: 0.5
1 Like