How would you turn this text into a sensor… Looking for examples but im a bit lost lol.
What’s the purpose of copying all of the properties of a media_player
entity into a sensor
entity?
Trying to just get info output to a sensor so i can read it easy in a badge on my media remote im building… I like to see what output the hdmi receiever is set to… if its HDR or 4k resolution or dolby atmos input etc… I can get it to show all the info on a sensor… like this… Video Input: {{ state_attr(‘media_player.onkyo_receiver’, ‘video_information’, ) }} but there is sub attributes… not sure how to define them in a template…
Actually nevermind… lol I think I figured it out.
Video Input: {{ state_attr(‘media_player.onkyo_receiver’, ‘video_information’ )[‘video_input_port’] }}