[CARTE] Gestion Radio

Bonjour,

Suite a la déviation de sujet sur le topic Downgrade Xiaomi Speaker Network

Voici le sujet dédié pour la carte radio lovelace.

Github de l’auteur : GitHub - Bastiencc/french-radio-media-player: Radio Media Player for Home Assistant Lovelace

Rendu sur mon lovelace

image

Je compte sur vous pour poster vos évolutions :wink:

3 « J'aime »

Bonjour à tous,

J’ai refait la carte avec custom button card au lieu de picture card. Moins de ligne est plus simple à modifier.

Un clique pour sélectionner la radio, un clique long sur la même pour éteindre la radio. On peut switcher de radio en cliquant sur une autre cela change bien l’image sans select.

Super ! :heart:

Petites remarques sans grandes importances :

  1. tu devrais utiliser la carte personnalisée Stack In Card à la place de vertical-stack-in-card
  2. tu peux encore économiser quelques lignes en englobant tes 3x horizontal-stack contenant tes 3 lignes de boutons dans une seule carte conditional au lieu de chaque ligne de bouton dans sa propre carte conditional
  3. Maintenant que tu utilise des button-card pour afficher tes radios, tu pourrais utiliser une seule image et suivant l’état de ton entité jouer sur la propriété css opacity pour la griser (tu perdras la petite coche de sélection mais tu n’auras qu’une seule image par radio à gérer)

Ce ne sont que des remarques, comme je l’ai déjà dit, je trouve cet affichage très beau.

il est toujours dommage d’avoir une seule radio sur la dernière ligne. Pourquoi ne pas ajouter 5 radios en lieu et place des blank-card ?

1 « J'aime »

Tes remarques sont intéressantes. J aime apprendre, c’est ce qui est top dans la domotique avec toutes ces possibilités. Je vais regarder tes conseils.

Slt,

J’ai testé il semblerait que cela n’est pas possible de mettre une condition pour 3 cartes horizontal.

Ho ! Ah bein je vais lire le lien.

Merci de l’info ! :+1:

Bon comme ça, rapidement, l’astuce serait d’utiliser un Stack In Card dans la Conditional…

Mais le but premier était de réduire le code… :joy:

Edit : c’est vrai que je n’avais jamais fait ce que je te proposais… Mais la doc est claire effectivement.

Si on veut l’utiliser cette carte telle quelle pour l’utiliser avec l’Echo d’Amazon, il faut modifier des petites choses.

L’appel au service media_player.play_media est différent.
Le mieux, est du lui passer directement le nom de la radio (au lieu du flux stream de la radio) et passer par TuneIn.

Pour cela il faudra modifier le fichier script_radio.yaml du dépôt github

Dans ce script il faudra :

  • Remplacer tous les « https://xxxxxxxxxxxxx » pour le vrai nom des radios dans media_content_id:
  • Modifier media_content_type: 'audio/mp4' par media_content_type: 'TUNEIN'

Où est-ce que l’on peut les trouver ?

Très bonne question !

La liste des principales stations nationales sont présentes ici

Mais il existe une énorme liste de stations, il y a du page de recherche dédiée sur leur site ici

PS : Je ne les ai pas toutes testées, mais toutes celles que j’ai essayées fonctionnaient correctement.

Le code que j’utilise permet de mettre les 3 cartes en conditionnel en utilisant des cartes horizontales

2 « J'aime »

Peux tu le partager ?

voilà mon code (actuellement il y a un truc sur lequel je ne me suis pas encore penché : pourquoi l’icone radio ne change plus quand je sélectionne une radio) :thinking:

Code de la carte (cliquez pour afficher)
cards:
  - artwork: cover
    entity: media_player.enceinte_google_mini
    hide:
      icon_state: false
      info: true
      power_state: false
    icon: 'mdi:google-home'
    max_volume: 100
    min_volume: 1
    shortcuts:
      buttons:
        - data:
            media: enceinte_google_mini
          icon: 'mdi:volume-minus'
          id: script.down_vol_radio
          type: service
        - data:
            media: enceinte_google_mini
          icon: 'mdi:volume-plus'
          id: script.up_vol_radio
          type: service
      columns: 2
      hide_when_off: true
    type: 'custom:mini-media-player'
  - card:
      cards:
        - card:
            image: /local/img/radio/NRJ_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: NRJ
          type: conditional
        - card:
            image: /local/img/radio/NRJ.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: NRJ
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: NRJ
          type: conditional
        - card:
            image: /local/img/radio/Skyrock_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: Skyrock
          type: conditional
        - card:
            image: /local/img/radio/Skyrock.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: Skyrock
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: Skyrock
          type: conditional
        - card:
            image: /local/img/radio/BFM_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: BFM
          type: conditional
        - card:
            image: /local/img/radio/BFM.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: BFM
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: BFM
          type: conditional
        - card:
            image: /local/img/radio/Fun_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: Fun
          type: conditional
        - card:
            image: /local/img/radio/Fun.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: Fun
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: Fun
          type: conditional
        - card:
            image: /local/img/radio/Nostalgie_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: Nostalgie
          type: conditional
        - card:
            image: /local/img/radio/Nostalgie.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: Nostalgie
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: Nostalgie
          type: conditional
        - card:
            image: /local/img/radio/Virgin_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: Virgin
          type: conditional
        - card:
            image: /local/img/radio/Virgin.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: Virgin
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: Virgin
          type: conditional
      type: horizontal-stack
    conditions:
      - entity: media_player.enceinte_google_mini
        state_not: 'off'
    type: conditional
  - card:
      cards:
        - card:
            image: /local/img/radio/FG_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: FG
          type: conditional
        - card:
            image: /local/img/radio/FG.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: FG
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: FG
          type: conditional
        - card:
            image: /local/img/radio/MTI_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: MTI
          type: conditional
        - card:
            image: /local/img/radio/MTI.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: MTI
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: MTI
          type: conditional
        - card:
            image: /local/img/radio/Scoop_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: Scoop
          type: conditional
        - card:
            image: /local/img/radio/Scoop.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: Scoop
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: Scoop
          type: conditional
        - card:
            image: /local/img/radio/FranceBleu_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: FranceBleu
          type: conditional
        - card:
            image: /local/img/radio/FranceBleu.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: FranceBleu
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: FranceBleu
          type: conditional
        - card:
            image: /local/img/radio/FGchic_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: FGchic
          type: conditional
        - card:
            image: /local/img/radio/FGchic.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: FGchic
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: FGchic
          type: conditional
        - card:
            image: /local/img/radio/Hitsradio_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: Hitsradio
          type: conditional
        - card:
            image: /local/img/radio/Hitsradio.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: Hitsradio
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: Hitsradio
          type: conditional
      type: horizontal-stack
    conditions:
      - entity: media_player.enceinte_google_mini
        state_not: 'off'
    type: conditional
  - card:
      cards:
        - card:
            image: /local/img/radio/RMC_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: RMC
          type: conditional
        - card:
            image: /local/img/radio/RMC.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: RMC
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: RMC
          type: conditional
        - card:
            image: /local/img/radio/RireChansons_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: RireChansons
          type: conditional
        - card:
            image: /local/img/radio/RireChansons.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: RireChansons
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: RireChansons
          type: conditional
        - card:
            image: /local/img/radio/FranceInfo_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: FranceInfo
          type: conditional
        - card:
            image: /local/img/radio/FranceInfo.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: FranceInfo
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: FranceInfo
          type: conditional
        - card:
            image: /local/img/radio/FIP_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: FIP
          type: conditional
        - card:
            image: /local/img/radio/FIP.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: FIP
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: FIP
          type: conditional
        - card:
            image: /local/img/radio/Vibration_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: Vibration
          type: conditional
        - card:
            image: /local/img/radio/Vibration.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: Vibration
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: Vibration
          type: conditional
        - card:
            image: /local/img/radio/Nova_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_google_mini
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state: Nova
          type: conditional
        - card:
            image: /local/img/radio/Nova.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_google_mini
                radio: Nova
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_google_mini
              state_not: Nova
          type: conditional
      type: horizontal-stack
    conditions:
      - entity: media_player.enceinte_google_mini
        state_not: 'off'
    type: conditional
  - artwork: cover
    entity: media_player.enceinte_sony_lf_s50g
    hide:
      icon_state: false
      info: true
      power_state: false
    icon: 'mdi:google-home'
    max_volume: 100
    min_volume: 1
    shortcuts:
      buttons:
        - data:
            media: enceinte_sony_lf_s50g
          icon: 'mdi:volume-minus'
          id: script.down_vol_radio
          type: service
        - data:
            media: enceinte_sony_lf_s50g
          icon: 'mdi:volume-plus'
          id: script.up_vol_radio
          type: service
      columns: 2
      hide_when_off: true
    type: 'custom:mini-media-player'
  - card:
      cards:
        - card:
            image: /local/img/radio/NRJ_selected.jpg
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: NRJ
          type: conditional
        - card:
            image: /local/img/radio/NRJ.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: NRJ
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: NRJ
          type: conditional
        - card:
            image: /local/img/radio/Skyrock_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: Skyrock
          type: conditional
        - card:
            image: /local/img/radio/Skyrock.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: Skyrock
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: Skyrock
          type: conditional
        - card:
            image: /local/img/radio/BFM_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: BFM
          type: conditional
        - card:
            image: /local/img/radio/BFM.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: BFM
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: BFM
          type: conditional
        - card:
            image: /local/img/radio/Fun_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: Fun
          type: conditional
        - card:
            image: /local/img/radio/Fun.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: Fun
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: Fun
          type: conditional
        - card:
            image: /local/img/radio/Nostalgie_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: Nostalgie
          type: conditional
        - card:
            image: /local/img/radio/Nostalgie.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: Nostalgie
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: Nostalgie
          type: conditional
        - card:
            image: /local/img/radio/Virgin_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: Virgin
          type: conditional
        - card:
            image: /local/img/radio/Virgin.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: Virgin
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: Virgin
          type: conditional
      type: horizontal-stack
    conditions:
      - entity: media_player.enceinte_sony_lf_s50g
        state_not: 'off'
    type: conditional
  - card:
      cards:
        - card:
            image: /local/img/radio/FG_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: FG
          type: conditional
        - card:
            image: /local/img/radio/FG.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: FG
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: FG
          type: conditional
        - card:
            image: /local/img/radio/MTI_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: MTI
          type: conditional
        - card:
            image: /local/img/radio/MTI.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: MTI
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: MTI
          type: conditional
        - card:
            image: /local/img/radio/Scoop_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: Scoop
          type: conditional
        - card:
            image: /local/img/radio/Scoop.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: Scoop
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: Scoop
          type: conditional
        - card:
            image: /local/img/radio/FranceBleu_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: FranceBleu
          type: conditional
        - card:
            image: /local/img/radio/FranceBleu.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: FranceBleu
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: FranceBleu
          type: conditional
        - card:
            image: /local/img/radio/FGchic_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: FGchic
          type: conditional
        - card:
            image: /local/img/radio/FGchic.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: FGchic
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: FGchic
          type: conditional
        - card:
            image: /local/img/radio/Hitsradio_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: Hitsradio
          type: conditional
        - card:
            image: /local/img/radio/Hitsradio.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: Hitsradio
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: Hitsradio
          type: conditional
      type: horizontal-stack
    conditions:
      - entity: media_player.enceinte_sony_lf_s50g
        state_not: 'off'
    type: conditional
  - card:
      cards:
        - card:
            image: /local/img/radio/RMC_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: RMC
          type: conditional
        - card:
            image: /local/img/radio/RMC.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: RMC
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: RMC
          type: conditional
        - card:
            image: /local/img/radio/RireChansons_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: RireChansons
          type: conditional
        - card:
            image: /local/img/radio/RireChansons.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: RireChansons
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: RireChansons
          type: conditional
        - card:
            image: /local/img/radio/FranceInfo_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: FranceInfo
          type: conditional
        - card:
            image: /local/img/radio/FranceInfo.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: FranceInfo
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: FranceInfo
          type: conditional
        - card:
            image: /local/img/radio/FIP_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: FIP
          type: conditional
        - card:
            image: /local/img/radio/FIP.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: FIP
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: FIP
          type: conditional
        - card:
            image: /local/img/radio/Vibration_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: Vibration
          type: conditional
        - card:
            image: /local/img/radio/Vibration.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: Vibration
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: Vibration
          type: conditional
        - card:
            image: /local/img/radio/Nova_selected.jpg?v=0.103
            tap_action:
              action: call-service
              service: script.stop_radio
              service_data:
                media: enceinte_sony_lf_s50g
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state: Nova
          type: conditional
        - card:
            image: /local/img/radio/Nova.jpg
            tap_action:
              action: call-service
              service: script.start_radio
              service_data:
                media: enceinte_sony_lf_s50g
                radio: Nova
            type: picture
          conditions:
            - entity: input_select.radio_station_enceinte_sony_lf_s50g
              state_not: Nova
          type: conditional
      type: horizontal-stack
    conditions:
      - entity: media_player.enceinte_sony_lf_s50g
        state_not: 'off'
    type: conditional
icon: 'mdi:google-home'
type: vertical-stack

Bonjour,

J’utilise le même code que toi. Avec le node red pour gérer et le input select en yaml.
Premier souci, je ne vois pas l’image dans le player. ou plutot je vois le logo de node red et pas la station.

Second souci mais peut être est-ce normal, je n’arrive pas à mettre plus de 13 radios.

Voici mon code :

cards:
  - type: entities
    title: Radios
    entities:
      - label: Bureau
        type: section
      - artwork: none
        entity: media_player.bureau
        group: true
        hide_controls: false
        hide_volume: false
        power_color: true
        show_progress: true
        toggle_power: toggle
        icon: 'mdi:google-home'
        max_volume: 100
        min_volume: 1
        name: Google Home Bureau
        shortcuts:
          buttons:
            - data:
                entity_id: media_player.bureau
              icon: 'mdi:volume-minus'
              id: media_player.volume_down
              type: service
            - data:
                entity_id: media_player.bureau
              icon: 'mdi:volume-plus'
              id: media_player.volume_up
              type: service
          columns: 2
          hide_when_off: true
        type: 'custom:mini-media-player'
  - card:
      cards:
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'NRJ') return
            '/local/img/radio/NRJ_selected.jpg?v=0.103'; return
            '/local/img/radio/NRJ.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: NRJ
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Fun') return
            '/local/img/radio/Fun_selected.jpg?v=0.103'; return
            '/local/img/radio/Fun.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Fun
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Skyrock') return
            '/local/img/radio/Skyrock_selected.jpg?v=0.103'; return
            '/local/img/radio/Skyrock.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Skyrock
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Nostalgie') return
            '/local/img/radio/Nostalgie_selected.jpg?v=0.103'; return
            '/local/img/radio/Nostalgie.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Nostalgie
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Virgin') return
            '/local/img/radio/Virgin_selected.jpg?v=0.103'; return
            '/local/img/radio/Virgin.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Virgin
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Hitsradio') return
            '/local/img/radio/Hitsradio_selected.jpg?v=0.103'; return
            '/local/img/radio/Hitsradio.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Hitsradio
      type: horizontal-stack
    conditions:
      - entity: media_player.bureau
        state_not: 'off'
    type: conditional
  - card:
      cards:
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Scoop') return
            '/local/img/radio/Scoop_selected.jpg?v=0.103'; return
            '/local/img/radio/Scoop.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Scoop
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Rires') return
            '/local/img/radio/Rires_selected.jpg?v=0.103'; return
            '/local/img/radio/Rires.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Rires
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Canulars') return
            '/local/img/radio/Canulars_selected.jpg?v=0.103'; return
            '/local/img/radio/Canulars.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Canulars
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'RTL2') return
            '/local/img/radio/RTL2_selected.jpg?v=0.103'; return
            '/local/img/radio/RTL2.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: RTL2
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Alouette') return
            '/local/img/radio/Alouette_selected.jpg?v=0.103'; return
            '/local/img/radio/Alouette.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Alouette
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Auxoisfm') return
            '/local/img/radio/Auxoisfm_selected.jpg?v=0.103'; return
            '/local/img/radio/Auxoisfm.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Auxoisfm
      type: horizontal-stack
    conditions:
      - entity: media_player.bureau
        state_not: 'off'
    type: conditional
  - card:
      cards:
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Oceanefm') return
            '/local/img/radio/Oceanefm_selected.jpg?v=0.103'; return
            '/local/img/radio/Oceanefm.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Oceanefm
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Radiomaroc') return
            '/local/img/radio/Radiomaroc_selected.jpg?v=0.103'; return
            '/local/img/radio/Radiomaroc.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Radiomaroc
        - type: 'custom:button-card'
          aspect_ratio: 1/1
          entity: input_select.radio_station_bureau
          size: 99%
          show_entity_picture: true
          show_name: false
          show_state: false
          entity_picture: >
            [[[ if (entity.state == 'Swigg') return
            '/local/img/radio/Swigg_selected.jpg?v=0.103'; return
            '/local/img/radio/Swigg.jpg?v=0.103'; ]]]
          hold_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Aucune
          tap_action:
            action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.radio_station_bureau
              option: Swigg
      type: horizontal-stack
    conditions:
      - entity: media_player.bureau
        state_not: 'off'
    type: conditional
type: 'custom:vertical-stack-in-card'

J’ai 3 cartes horizontales. Les 2 premières ont 6 radios. Si j’en rajoute une 7eme la radio ne se lit pas.
Si quelqu’un a une idée.

Ca ne viendrais pas de la définition de l’option artwork qui est à none ?

SI tu copies/colle le bouton d’une radio déjà définie et fonctionnel à la 7ème place :

  1. Est-ce que ça fonctionne ?
  2. Est-ce que seul le 7ème bouton ne fonctionne pas ?
  3. Est-ce que tous les boutons de la ligne (ou de la carte entière) ne fonctionnent plus ?

Slt, je te remets ma config complète j’ai du faire des modifications entre temps. Il est simplifié du devrait le comprendre facilement. Même chose pour la carte.

Pour les logo il faut obligatoirement des google home car c’est grâce à cast-to-client.

card

[{"id":"9000173c.57c758","type":"tab","label":"Multimédia","disabled":false,"info":""},{"id":"7cd3e35e.62a70c","type":"comment","z":"9000173c.57c758","name":"[Harmony] Mise à jour Activités","info":"","x":150,"y":40,"wires":[]},{"id":"9af97d2e.82eee","type":"server-state-changed","z":"9000173c.57c758","name":"Harmony Salon","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"remote.harmony_salon","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"x":100,"y":80,"wires":[["bd336393.b8a51"]]},{"id":"a558cd36.4dcf1","type":"debug","z":"9000173c.57c758","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":750,"y":80,"wires":[]},{"id":"bd336393.b8a51","type":"api-render-template","z":"9000173c.57c758","name":"Capture Activités","server":"a8c279c8.be8be8","template":"{{ state_attr('remote.harmony_salon', 'current_activity') }}","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":310,"y":80,"wires":[["59f84be4.ef8ed4"]]},{"id":"59f84be4.ef8ed4","type":"api-call-service","z":"9000173c.57c758","name":"Change Input Select","server":"a8c279c8.be8be8","version":1,"debugenabled":false,"service_domain":"input_select","service":"select_option","entityId":"input_select.harmony_hub_salon","data":"{\"option\": \"{{payload}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":80,"wires":[["a558cd36.4dcf1"]]},{"id":"362b88bf.468198","type":"server-state-changed","z":"9000173c.57c758","name":"Harmony Salon","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.harmony_hub_salon","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":240,"wires":[["ec8c77e4.d409c8"]]},{"id":"ec8c77e4.d409c8","type":"api-call-service","z":"9000173c.57c758","name":"Démarre Activité","server":"a8c279c8.be8be8","version":1,"debugenabled":false,"service_domain":"remote","service":"turn_on","entityId":"remote.harmony_salon","data":"{\"activity\":\"{{payload}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":300,"y":240,"wires":[["9271a35e.9d6ca"]]},{"id":"9271a35e.9d6ca","type":"debug","z":"9000173c.57c758","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":490,"y":240,"wires":[]},{"id":"2b2e75f1.d8da3a","type":"comment","z":"9000173c.57c758","name":"[Harmony] Select Activités","info":"","x":130,"y":200,"wires":[]},{"id":"b3495dd6.313d7","type":"server-state-changed","z":"9000173c.57c758","name":"Harmony Chambre Parentale","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"remote.harmony_chambre_parentale","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"x":140,"y":140,"wires":[["6a43bf88.00d25"]]},{"id":"6a43bf88.00d25","type":"api-render-template","z":"9000173c.57c758","name":"Capture Activités","server":"a8c279c8.be8be8","template":"{{ state_attr('remote.harmony_chambre_parentale', 'current_activity') }}","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":390,"y":140,"wires":[["dde30209.f5368"]]},{"id":"dde30209.f5368","type":"api-call-service","z":"9000173c.57c758","name":"Change Input Select","server":"a8c279c8.be8be8","version":1,"debugenabled":false,"service_domain":"input_select","service":"select_option","entityId":"input_select.harmony_hub_parentale","data":"{\"option\": \"{{payload}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":620,"y":140,"wires":[["73959b88.f76624"]]},{"id":"73959b88.f76624","type":"debug","z":"9000173c.57c758","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":830,"y":140,"wires":[]},{"id":"73e5be68.c82f4","type":"server-state-changed","z":"9000173c.57c758","name":"Harmony Chambre Parentale","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.harmony_hub_parentale","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":140,"y":300,"wires":[["5da6931d.51f0bc"]]},{"id":"5da6931d.51f0bc","type":"api-call-service","z":"9000173c.57c758","name":"Démarre Activité","server":"a8c279c8.be8be8","version":1,"debugenabled":false,"service_domain":"remote","service":"turn_on","entityId":"remote.harmony_chambre_parentale","data":"{\"activity\":\"{{payload}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":380,"y":300,"wires":[["e7f63993.821168"]]},{"id":"e7f63993.821168","type":"debug","z":"9000173c.57c758","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":300,"wires":[]},{"id":"6f583f15.0bae7","type":"server-state-changed","z":"9000173c.57c758","name":"Input Radio Noham","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.radio_station_noham","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":110,"y":560,"wires":[["bc611635.b6f048"]]},{"id":"bc611635.b6f048","type":"switch","z":"9000173c.57c758","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Skyrock","vt":"str"},{"t":"eq","v":"NRJ","vt":"str"},{"t":"eq","v":"Fun","vt":"str"},{"t":"eq","v":"Nostalgie","vt":"str"},{"t":"eq","v":"BFM","vt":"str"},{"t":"eq","v":"Virgin","vt":"str"},{"t":"eq","v":"FG","vt":"str"},{"t":"eq","v":"MTI","vt":"str"},{"t":"eq","v":"Scoop","vt":"str"},{"t":"eq","v":"FGunder","vt":"str"},{"t":"eq","v":"FGdeep","vt":"str"},{"t":"eq","v":"FGchic","vt":"str"},{"t":"eq","v":"Hitsradio","vt":"str"},{"t":"eq","v":"Aucune","vt":"str"}],"checkall":"true","repair":false,"outputs":14,"x":290,"y":620,"wires":[["d7c171e1.2ca09"],["987291b6.a92b3"],["b8aff968.e41368"],["998d8f73.08624"],["a1aa44.06f825c"],["98d84e04.4f76f"],["b1e0dc53.81073"],["56f1b700.3b6e78"],["2909e79d.08f368"],["af6cf9a1.79c168"],["cf41a292.7abdc"],["43c0b248.97f1ec"],["20c10759.5fe2a8"],["8c555ffd.4a41a"]]},{"id":"c98279b2.cca8b8","type":"comment","z":"9000173c.57c758","name":"RADIO","info":"","x":70,"y":380,"wires":[]},{"id":"d7c171e1.2ca09","type":"change","z":"9000173c.57c758","name":"Skyrock","rules":[{"t":"set","p":"url","pt":"msg","to":"http://icecast.skyrock.net/s/natio_mp3_128k","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Skyrock.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":420,"wires":[["d199e759.b1d7d8"]]},{"id":"987291b6.a92b3","type":"change","z":"9000173c.57c758","name":"NRJ","rules":[{"t":"set","p":"url","pt":"msg","to":"http://cdn.nrjaudio.fm/audio1/fr/30001/mp3_128.mp3?origine=fluxradios","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/NRJ.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":450,"wires":[["d199e759.b1d7d8"]]},{"id":"b8aff968.e41368","type":"change","z":"9000173c.57c758","name":"Fun","rules":[{"t":"set","p":"url","pt":"msg","to":"http://streaming.radio.funradio.fr/fun-1-44-128","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Fun.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":480,"wires":[["d199e759.b1d7d8"]]},{"id":"998d8f73.08624","type":"change","z":"9000173c.57c758","name":"Nostalgie","rules":[{"t":"set","p":"url","pt":"msg","to":"http://cdn.nrjaudio.fm/audio1/fr/30601/mp3_128.mp3?origine=fluxradios","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Nostalgie.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":510,"wires":[["d199e759.b1d7d8"]]},{"id":"a1aa44.06f825c","type":"change","z":"9000173c.57c758","name":"BFM","rules":[{"t":"set","p":"url","pt":"msg","to":"http://chai5she.cdn.dvmr.fr/bfmbusiness","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/BFM.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":540,"wires":[["d199e759.b1d7d8"]]},{"id":"98d84e04.4f76f","type":"change","z":"9000173c.57c758","name":"Virgin","rules":[{"t":"set","p":"url","pt":"msg","to":"http://ais-live.cloud-services.paris:8000/virgin.mp3","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Virgin.png","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":570,"wires":[["d199e759.b1d7d8"]]},{"id":"b1e0dc53.81073","type":"change","z":"9000173c.57c758","name":"FG","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiofg.impek.com/fg","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/FG.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":600,"wires":[["d199e759.b1d7d8"]]},{"id":"56f1b700.3b6e78","type":"change","z":"9000173c.57c758","name":"MTI","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiomti.ice.infomaniak.ch/radiomti.mp3","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/MTI.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":630,"wires":[["d199e759.b1d7d8"]]},{"id":"2909e79d.08f368","type":"change","z":"9000173c.57c758","name":"Scoop","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radioscooplyon.ice.infomaniak.ch/radioscoop-lyon-128.mp3","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Scoop.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":660,"wires":[["d199e759.b1d7d8"]]},{"id":"af6cf9a1.79c168","type":"change","z":"9000173c.57c758","name":"FGunder","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiofg.impek.com/ufg","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/FGunder.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":690,"wires":[["d199e759.b1d7d8"]]},{"id":"cf41a292.7abdc","type":"change","z":"9000173c.57c758","name":"FGdeep","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiofg.impek.com/fgd","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/FGdeep.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":720,"wires":[["d199e759.b1d7d8"]]},{"id":"43c0b248.97f1ec","type":"change","z":"9000173c.57c758","name":"FGchic","rules":[{"t":"set","p":"url","pt":"msg","to":"http://radiofg.impek.com/fgc","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/FGchic.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":750,"wires":[["d199e759.b1d7d8"]]},{"id":"20c10759.5fe2a8","type":"change","z":"9000173c.57c758","name":"Hitsradio","rules":[{"t":"set","p":"url","pt":"msg","to":"https://playerservices.streamtheworld.com/api/livestream-redirect/977_JAMZ.mp3","tot":"str"},{"t":"set","p":"imageUrl","pt":"msg","to":"/local/img/radio/Hitsradio.png","tot":"str"},{"t":"set","p":"msg.contentTitle","pt":"msg","to":"msg.payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":780,"wires":[["d199e759.b1d7d8"]]},{"id":"b2445399.da0e6","type":"cast-to-client","z":"9000173c.57c758","name":"","url":"","contentType":"audio/mp4","message":"","language":"fr","ip":"192.168.2.36","port":"","volume":"50","x":930,"y":540,"wires":[["e254ac57.5aa52"]],"icon":"node-red-contrib-cast/google-home1.svg"},{"id":"e254ac57.5aa52","type":"debug","z":"9000173c.57c758","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1170,"y":620,"wires":[]},{"id":"db6711e1.ca9d5","type":"api-call-service","z":"9000173c.57c758","name":"Stop Play","server":"a8c279c8.be8be8","version":1,"debugenabled":false,"service_domain":"media_player","service":"media_stop","entityId":"","data":"{\"entity_id\":\"{{media_player}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1000,"y":780,"wires":[["e254ac57.5aa52"]]},{"id":"c65f706f.18245","type":"cast-to-client","z":"9000173c.57c758","name":"","url":"","contentType":"audio/mp4","message":"","language":"fr","ip":"192.168.2.29","port":"","volume":"50","x":930,"y":600,"wires":[["e254ac57.5aa52"]],"icon":"node-red-contrib-cast/google-home-mini2.svg"},{"id":"ad09a910.4c2f88","type":"server-state-changed","z":"9000173c.57c758","name":"Input Radio SdB","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.radio_station_sdb","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":100,"y":620,"wires":[["bc611635.b6f048"]]},{"id":"d199e759.b1d7d8","type":"switch","z":"9000173c.57c758","name":"","property":"data.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"input_select.radio_station_salon","vt":"str"},{"t":"eq","v":"input_select.radio_station_noham","vt":"str"},{"t":"eq","v":"input_select.radio_station_sdb","vt":"str"},{"t":"eq","v":"input_select.radio_xiaomi_speaker_network","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":710,"y":600,"wires":[["aa858cbf.257e5"],["b2445399.da0e6"],["c65f706f.18245"],["c1bec9c4.c2e838"]]},{"id":"25018546.72f66a","type":"change","z":"9000173c.57c758","name":"Google Home Mini SdB","rules":[{"t":"set","p":"media_player","pt":"msg","to":"media_player.google_home_mini_sdb","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":813,"wires":[["db6711e1.ca9d5"]]},{"id":"5efb0de2.382134","type":"change","z":"9000173c.57c758","name":"Google Home Noham","rules":[{"t":"set","p":"media_player","pt":"msg","to":"media_player.google_home_noham","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":782,"wires":[["db6711e1.ca9d5"]]},{"id":"8c555ffd.4a41a","type":"switch","z":"9000173c.57c758","name":"Aucune","property":"data.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"input_select.radio_station_salon","vt":"str"},{"t":"eq","v":"input_select.radio_station_noham","vt":"str"},{"t":"eq","v":"input_select.radio_station_sdb","vt":"str"},{"t":"eq","v":"input_select.radio_xiaomi_speaker_network","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":520,"y":826,"wires":[["982c823a.1c241"],["5efb0de2.382134"],["25018546.72f66a"],["932cba1c.5f0188"]]},{"id":"c1bec9c4.c2e838","type":"api-call-service","z":"9000173c.57c758","name":"Xiaomi Speaker Network","server":"a8c279c8.be8be8","version":1,"debugenabled":false,"service_domain":"media_player","service":"play_media","entityId":"media_player.enceinte_mi_salle_de_bain","data":"{\"media_content_id\":\"{{{url}}}\",\"media_content_type\":\"music\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":950,"y":660,"wires":[["e254ac57.5aa52"]]},{"id":"932cba1c.5f0188","type":"change","z":"9000173c.57c758","name":"Xiaomi Speaker Network","rules":[{"t":"set","p":"media_player","pt":"msg","to":"media_player.enceinte_mi_salle_de_bain","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":842,"wires":[["db6711e1.ca9d5"]]},{"id":"92304df.cdb3bb","type":"server-state-changed","z":"9000173c.57c758","name":"Input Radio Xiaomi","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.radio_xiaomi_speaker_network","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":110,"y":680,"wires":[["bc611635.b6f048"]]},{"id":"a28798fc.0b6f48","type":"server-state-changed","z":"9000173c.57c758","name":"Input Radio Salon","server":"a8c279c8.be8be8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.radio_station_salon","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":110,"y":740,"wires":[["bc611635.b6f048"]]},{"id":"aa858cbf.257e5","type":"cast-to-client","z":"9000173c.57c758","name":"","url":"","contentType":"audio/mp4","message":"","language":"fr","ip":"192.168.2.37","port":"","volume":"50","x":930,"y":480,"wires":[["e254ac57.5aa52"]],"icon":"node-red-contrib-cast/google-home1.svg"},{"id":"982c823a.1c241","type":"change","z":"9000173c.57c758","name":"Nest Hub Max Salon","rules":[{"t":"set","p":"media_player","pt":"msg","to":"media_player.nest_hub_max_salon","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":751,"wires":[[]]},{"id":"a8c279c8.be8be8","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

J’ai tenté avec matérial et c’était la même chose.

Pour les icônes je peux rajouter n’importe où ça ne fonctionne pas.
Le pire j’ai tenté de mettre 5 par lignes.
La sixième de la ligne 1 et 2 je les mets sur la 3eme ligne après mes deux qui ne fonctionnent pas .
Et elles fonctionnent toutes sauf les deux en question

Je viens de relire et c’est du Node-Red et ça c’est hors de mes compétences…

Merci Dckiller. C’est déjà mieux l’affichage. J’ai préféré un full-cover. Et supprimé les différents boutons de controle média avec ce code.

type: entities
title: Radios
entities:
  - label: Bureau
    type: section
  - artwork: full-cover
    entity: media_player.bureau
    group: true
    icon: 'mdi:google-home'
    hide:
      power_state: false
      progress: true
      controls: true
      icon: true
      mute: true
      volume_level: true
      volume: true
    max_volume: 100
    min_volume: 1
    toggle_power: false
    name: Google Home Bureau
    volume_stateless: true
    info: scroll
    shortcuts:
      buttons:
        - data:
            entity_id: media_player.bureau
          icon: 'mdi:volume-minus'
          id: media_player.volume_down
          type: service
        - data:
            entity_id: media_player.bureau
          icon: 'mdi:volume-plus'
          id: media_player.volume_up
          type: service
      columns: 2
      hide_when_off: true
    type: 'custom:mini-media-player'

Déjà un problème corrigé. Et effectivement tu as suivi l’idée d’opacité pour l’image ce qui est plus simple à gérer.
Tu as ajouté ensuite des boutons vides. C’est justement là que j’ai un souci pour faire fonctionner mes deux dernières radios.

Dans l’image il s’agit de Hit*radio et swigg
Auxois fm fonctionne bien nrj et oceane aussi.

J’ai tenté de supprimer des radios du switch dans nodered pensant que c’était la limitation mais pas mieux.

Non il n’y a pas de limitation. As-tu bien ajouter tes 2 nouvelles radios dans le input_select ?

Effectivement J’avais oublié ces dernières radios. Pourtant j’avais bien ajouté les autres. Maintenant tout est ok. Je peux ajouter mes autres Lecteurs. Merci pour le boulot et à Bastien du facebook pour l’idée originale.