Set an attribute to a new value ( mediaplayer jinja template )

hello ,

i"m having trouble to overwrite a value of an attribute.

i want to change the name of my ‘media_title’ from my mediaplayer :frowning:

i can read the values via template ,but it never changes in the GUI in the mediaplayer.

my code to acces the 'media_title ’

i want to overwrite to a string

thx in advance

 
{{state_attr('media_player.huiskamersonos', 'media_title' )  }}


{% set state_attr('media_player.huiskamersonos', 'media_title' )  =   "this_is_a_test_string"  %}


I don’t think you can set the state like that. But what you might be able to do is make a template sensor that has the desired attributes set. I’m not sure if that would work in the media player, though.