nielsfaber / scheduler-card

HA Lovelace card for control of scheduler entities
GNU General Public License v3.0
887 stars 111 forks source link

media_player entities not showing up #155

Closed claudegel closed 3 years ago

claudegel commented 3 years ago

I've this in my config:

- name: "Musique"
            icon: music
            include:
              - media_player.bureau
              - media_player.chalet
              - media_player.salon
              - media_player.garage

but none are showing in Music group. Are they normally available in scheduler-card ?

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.86. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

nielsfaber commented 3 years ago

Hi Claude. Media players are supported, but only few functions:

Your entities will only show up in the card if they support any of these. I assume this is the case, so maybe something is wrong with the card. Could you share the supported_features property of your media players? Should be visible when going to Developer tools -> States.

KTibow commented 3 years ago

Try saving the card.

claudegel commented 3 years ago

Hi this is what I have for the media_player

source_list: //192.168.2.144/public, 96.9 CKOI | (Top 40-Pop), Boom fm 104.1, CHOM 97.7 (Rock), CIME-FM 103.9 (Pop), Radio Classique 99.5 (Classique), WNYC-FM volume_level: 0.07 is_volume_muted: false media_content_id: x-rincon-mp3radio://https://cogecomedia.leanstream.co/CIMEFM-MP3?args=tunein_02 media_content_type: music media_title: CIME-FM media_channel: CIME-FM source: CIME-FM 103.9 (Pop) shuffle: false sonos_group: media_player.salon, media_player.chalet friendly_name: Chalet entity_picture: /api/media_player_proxy/media_player.chalet?token=65419d71b9e85c9f8d80ab9749a8ce0172f9d08852afabff13d0d57f2aaae08f&cache=4146be5276b1fb05 supported_features: 195135

I see nothing about turn on or turn off. The media_player are Sonos speaker

claudegel commented 3 years ago

instead of turn_on it's media_player.media_play media_player.media_pause in the sonos component source I have: SUPPORT_SONOS = ( SUPPORT_BROWSE_MEDIA | SUPPORT_CLEAR_PLAYLIST | SUPPORT_NEXT_TRACK | SUPPORT_PAUSE | SUPPORT_PLAY | SUPPORT_PLAY_MEDIA | SUPPORT_PREVIOUS_TRACK | SUPPORT_REPEAT_SET | SUPPORT_SEEK | SUPPORT_SELECT_SOURCE | SUPPORT_SHUFFLE_SET | SUPPORT_STOP | SUPPORT_VOLUME_MUTE | SUPPORT_VOLUME_SET )

nielsfaber commented 3 years ago

According to the home assistant docs, services play and media_pause are not generically defined for media_players. This means that maybe Sonos supports it, but other brands not. And the goal of standard configuration is to add stuff that is 'standard', others should remain part of customization.

On the other hand, Sonos is a big player in this market, so i would like to support it. But i cannot find any description of the services play and media_pause . On even in the sonos component. So i don't know how to set it up.

claudegel commented 3 years ago

When I look in dev tool services, I can see media_player.media_play media_player.media_pause it's described in https://www.home-assistant.io/integrations/media_player/

nielsfaber commented 3 years ago

Both of these services are not described on the page you refer to? I only see a play_media (which is not media_play). And this service requires platform specific input, so i will not be able to define it generically. Anyway: i recommend defining your own customized actions for this.

KTibow commented 3 years ago

No, no, they have a point. image image

nielsfaber commented 3 years ago

?? Ok then, please be specific. What could I add to improve support for media_players?

KTibow commented 3 years ago

I don't know, it's undocumented. You could try asking on the forums, googling it, or maybe asking the discord or something.

nielsfaber commented 3 years ago

Yeah thats what I mean exactly:

Both of these services are not described on the page you refer to?

These services are not defined. So i cannot create support. Case closed.