-
Notifications
You must be signed in to change notification settings - Fork 610
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
Media Session attributes not updating #3648
Comments
did you make sure to add your media player app to the allow list for the notification sensors? its part of the recommendations in the docs https://companion.home-assistant.io/docs/core/sensors#media-session-sensor |
I don't use "Last notification" sensor at all.
Hm... |
in the case of media players they must post a notification with media data, by using the last notification sensor you will get updates immediately upon changes. We mention that in the docs linked.
When something is paused the likelihood of it changing is very low. We need to be mindful of the amount of updates we send out. Next time you go to play the item it will update. The likelihood of the same item being paused for hours sending the same update is a lot higher than something being paused with attributes changing. |
Home Assistant Android app version(s): 2023.6.0-full
Android version(s): 9, 10, 11
Device model(s): Samsung Note 9, S9, Lenovo P10, Sony X1
Home Assistant version: 2023.6.3
Last working Home Assistant release (if known): -
Description of problem, include YAML if issue is related to notifications:
sensor.<>_media_session
updates only if state change (play -> pause, etc). There is no way to receive new attributes (title_*
,playback_position_*
etc) - neither in 15 minutes updates, nor usingcommand_update_sensors
.So, after several hours non-stop playing music on phone, in HA I still see first track info.
Companion App Logs:
Screenshot or video of problem:
Additional information:
The text was updated successfully, but these errors were encountered: