Is there a way to see media player attribute changes?

I am trying to build a template trigger that checks if a media_player went from playing to idle and that the media artist is the one I choose and track title contains “my word” before going to undefined.

But I can not find a way to test what is the real process the media player does between being playing with media data, and being idle without media data. I think I am missing steps in the middle but on de Developer tools I can just trigger updates manually and I can not find any history for attribute changes (just states).

How can I check all the attribute changes of an media player entity?

Thanks

You can visualise entity attributes with the custom mini graph card.

Alternatively, make a template sensor from the attribute to visualise it with built-in cards.

Another option is to query the DB directly.

1 Like

Thanks I did not though about the template before! that worked.

The mini graph card did not work because it expects numbers.


As reference my template trigger was failing because the media player goes first to idle and then removes the attributes in another update.

Just use a State trigger, then use template conditions based on the data from the trigger variable, which will contain the entire previous state object in the from_state.