8000 Home Assistant Media Player doesn't show metadata and pause gives an error · Issue #62448 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Home Assistant Media Player doesn't show metadata and pause gives an error #62448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SirJohnDoe opened this issue Dec 20, 2021 · 6 comments
Closed

Comments

@SirJohnDoe
Copy link
SirJohnDoe commented Dec 20, 2021

The problem

Before 2021.12 I was able to send metadata when casting internet radio. This was useful as the stream would otherwise have no title or thumbnail.

When the the Default Media Receiver changed to HA Media Player, when casting, this stopped working, as in, it just shows 'Home Assistant Media Player'. I also noticed that the cast docs (linked) mention that the 'extra' field should be below 'metadata'. Before I did it without 'metadata' (as documented here: https://www.home-assistant.io/integrations/media_player/). In either case it fails to show a title or thumbnail, but does play the stream.

Also after updating to 2021.12 the pause button on the cast entity gives the following error in the log:
2021-12-20 22:48:31 WARNING (SyncWorker_7) [pychromecast.controllers] PAUSE command requested but no session is active.

What version of Home Assistant Core has the issue?

core-2021.12.3

What was the last working version of Home Assistant Core?

core-2021.11.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Cast

Link to integration documentation on our website

https://www.home-assistant.io/integrations/cast/

Example YAML snippet

service: media_player.play_media
target:
  entity_id: media_player.castmymusic
data_template:
  media_content_type: music
  media_content_id: >
    {% if is_state("input_select.radio_station", "Radio Paradise Rock") %}
    https://stream.radioparadise.com/rock-320 {% elif
    is_state("input_select.radio_station", "Radio Paradise World") %}
    https://stream.radioparadise.com/world-etc-320 {% elif
    is_state("input_select.radio_station", "Naim Classical") %}
    http://mscp3.live-streams.nl:8250/class-high.aac {% elif
    is_state("input_select.radio_station", "Naim Jazz") %}
    http://mscp3.live-streams.nl:8340/jazz-high.aac {% elif
    is_state("input_select.radio_station", "Intense Radio Dance") %}
    https://intenseradio.live-streams.nl:18000/live {% endif %}
  extra:
    metadata:
      title: >
        {% if is_state("input_select.radio_station", "Radio Paradise Rock") %}
        Radio Paradise Rock {% elif is_state("input_select.radio_station",
        "Radio Paradise World") %} Radio Paradise World {% elif
        is_state("input_select.radio_station", "Naim Classical") %} Naim
        Classical {% elif is_state("input_select.radio_station", "Naim Jazz") %}
        Naim Jazz {% elif is_state("input_select.radio_station", "Intense Radio
        Dance") %} Intense Radio Dance {% endif %}
      thumb: >
        {% if is_state("input_select.radio_station", "Radio Paradise Rock") %}
        https://cdn-profiles.tunein.com/s308827/images/logog.png?t=161850 {% elif
        is_state("input_select.radio_station", "Radio Paradise World") %}
        https://cdn-profiles.tunein.com/s308829/images/logog.png?t=157359 {% elif
        is_state("input_select.radio_station", "Naim Classical") %}
        https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/33049918176/original/Ej-g-fFMRutenG_N5E_md3rNhHugVXZVVA.png?1605784820
        {% elif is_state("input_select.radio_station", "Naim Jazz") %}
        https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/33049917734/original/bYGSWqHvMJQK2uLnt3LjyJqtdJjXucmdOw.png?1605784139
        {% elif is_state("input_select.radio_station", "Intense Radio Dance") %}
        https://www.intenseradio.net/wp-content/uploads/2018/05/300x300.jpg {%
        endif %}

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

cast documentation
cast source
(message by IssueLinks)

@probot-home-assistant
Copy link

media_player documentation
media_player source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @emontnemery, mind taking a look at this issue as it has been labeled with an integration (cast) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@belgianrubs
Copy link

It's probably a duplicate of #62054 .

@nov30th
Copy link
nov30th commented Dec 21, 2021

I hereby confirmed that 2021.12.4 has fixed this issue.

@emontnemery
Copy link
Contributor

Duplicate of #62054, fixed by #62390 which is included in Home Assistant Core 2021.12.4

@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants
0