Trying to set up an Universal Media Player

Hello, people,

Just like the title says, I’ve been trying to centralize all my devices in one media player from which I can control the music I want to put and the source I want the media_player to send the music to. Here’s what I came up with:

# Universal media player
media_player:
  - platform: universal
    name: Media player
    children:
      - media_player.chambre
      - media_player.tv
      - media_player.salle_de_bain
      - media_player.sonos_roam
    commands:
      turn_on:
        service: switch.turn_on
        entity_id: input_select.source_list
      turn_off:
        service: switch.turn_off
        entity_id: input_select.source_list
      select_source:
        service: input_select.select_option
        data_template:
          entity_id: input_select.source_list
          option: "{{ source }}"
    attributes:
      source: input_select.source_list
      source_list: input_select.source_list|options
    device_class: speaker

I tried this config but I only got this in return:
homeassistant

Looks like a normal media_player, I can’t change the source of the music and I can’t even turn it on/off. Did I do something wrong? It’s the first time I tried something in configuration.yaml while not having an idea of what I’m doing. Please help!

Thank you!