core: Cast media_players missing attributes in 2021.12.2
The problem
Google Cast media_player entities are missing the media_content_id, media_duration, media_position, and media_position_updated_at attributes, starting in 2021.12.2. After reverting to 2021.12.1, the attributes once again appeared
What version of Home Assistant Core has the issue?
2021.12.2
What was the last working version of Home Assistant Core?
2021.12.1
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
# Entity state from 2021.12.1:
volume_level: 0.4833333492279053
is_volume_muted: false
media_content_id: >-
https://birdhouse-internal.blueshiftlabs.net:8123/local/sleep_music_tracks/Peaceful
Slumber.mp3
media_duration: 3600.039184
media_position: 122.666175
media_position_updated_at: '2021-12-16T12:58:00.486776+00:00'
app_id: B45F4572
app_name: Home Assistant Media Player
entity_picture_local: null
friendly_name: Sleep Music Speakers
supported_features: 152335
# Entity state from 2021.12.2:
volume_level: 0.6500000953674316
is_volume_muted: false
app_id: 531A4F84
app_name: Home Assistant Media Player
entity_picture_local: null
friendly_name: Bedroom Mini
supported_features: 152333
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 8
- Comments: 18 (5 by maintainers)
Not sure it’s connected, but my Google Nest Mini is stuck for the last 6 hours in ‘playing’ state, with the same attributes. On 2021.12.2 as well.
Not sure if it helps, but I use Google cloud TTS and a Google hub as media player. The automations waits until the player is Idle again before it plays the next (TTS) msg now it gets stuck for evah… First one plays fine, then the player remains in “playing” mode.
I had a long time working my own Google Chromecast media player node-red media player
And current version 2021.12.3 stop working, I tried call services with Google mini, Google Nest, Google Tv, Group speakers in Developer Tools, the only working services are volume, on, off, mute. The background picture of the media player in UI also missing.
zip it, then drag-drop the zip-file to a github comment 👍
Just want to chime in, that I see the same behaviour: https://community.home-assistant.io/t/chromecast-is-missing-attribute-media-content-id/367548/4
If media is playing during reboot the missing attributes seem to reappear. If I switch off the mediaplayer in HA, it stays in state “idle” even when I start playback again.
Not sure how to add the log, its 0.5 Mb so I guess copying it in here is out of the question.
EDIT: Added log, OMG it’s written right there how to do this!
HA_chromecast log.txt