Chromecast is missing attribute media_content_id

Since recently, I guess 2021.12.2, the attribute media_content_id is missing from the status of media_player on a Chromecast with Google TV,

volume_level: 0.25
is_volume_muted: false
media_position_updated_at: '2021-12-16T00:49:44.072659+00:00'
app_id: B45F4572
app_name: Home Assistant Media Player
entity_picture_local: null
friendly_name: seanTV
supported_features: 152461

when I cast a radio station through home assistant.

      - service: media_player.play_media
        data:
          entity_id: media_player.seantv
          media_content_id: " {{ stations[station].url }}"
          media_content_type: audio/mp3

If I remember correctly this was previously streamed through the app “default media renderer”, now it seems to be “Home Assistant Media Player”.

Any chance to get the missing attribute back? Some of my automations and templates rely on it

A restart of HA seems to have solved the problem.

I also have the same issue. I sound like once you cast media to a chromecast / Google Home the attributes disappear. I’ve temporarily reverted to 2021.12.1, but would like to get your views on my above comment?
I also have issues with google homes stay in playing mode instead of going to idle once the media reached its end (not tested with Fire TV)

Yes, I have just removed the “solution” flag.
I’m not quite sure what’s happening.
If media is running during reboot status and attributes seem to be fine
But right now, the media player shows status “idle” even though the attribute “media_content_id” is present and it’s playing music.
Something is very fishy :confused:

2 Likes