Universal media player problem

Hi all,
I’d like to create a media player template.
with:
switch.omnilink_zone_2 I switch ON/OFF the player
switch.omnilink_zone_2_mute I toggle the mute
number.omnilink_zone_2_volume I can set the volume.

I tried this configuration:

media_player:
  platform: universal
  name: Bagno
  commands:
    turn_on:
      service: switch.turn_on
      target:
        entity_id: switch.omnilink_zone_2
    turn_off:
      service: switch.turn_off
      target:
        entity_id: switch.omnilink_zone_2
    volume_set:
      service: media_player.volume_set
      data_template:
        entity_id: number.omnilink_zone_2_volume
        volume_level: '{{ volume_level }}'

    volume_mute:
      service: switch.toggle
      target:
        entity_id: switch.omnilink_zone_2_mute
 
  attributes:
    state: switch.omnilink_zone_2
    is_volume_muted: switch.omnilink_zone_2_mute
    volume_level: number.omnilink_zone_2_volume|volume_level

But the volume doesn’t work.
Anyone can help me?

I also tried:

media_player:
  platform: universal
  name: Bagno
  commands:
    turn_on:
      service: switch.turn_on
      target:
        entity_id: switch.omnilink_zone_2
    turn_off:
      service: switch.turn_off
      target:
        entity_id: switch.omnilink_zone_2
    volume_set:

      service: number.set_value
      data_template:
        entity_id: number.omnilink_zone_2_volume
        value: "{{states('number.omnilink_zone_2_volume')}}"
        
    volume_mute:
      service: switch.toggle
      target:
        entity_id: switch.omnilink_zone_2_mute
 
  attributes:
    state: switch.omnilink_zone_2
    is_volume_muted: switch.omnilink_zone_2_mute
    volume_level: number.omnilink_zone_2_volume|value

but the volume doesn’t work…

no ideas?
Thanks