Right now we can create fan, switch, cover, and a few other useful entity templates. One template I was surprised to find is missing is a media_player template. Some dumb media players that integrate with HA indirectly (say through Logitech Harmony or an IR blaster) are very difficult to control because it requires using the remote entity and looking up what commands to send to the remote to control secondary devices.
It would be really useful if there was a way to quickly generate any kind of media_player entity using a template. This might solve multiple problems for a lot of different scenarios. Feature-limited players (such as speakers) which have input selection, volume control, and other settings can still benefit, dumb TVs, or just any device that can leverage a subset of whatās traditionally found in a media player device remote.
This would allow me to store a combination of IR remote commands together into a virtual entity, and allow me to make multiple virtual entities from one IR remote. This may sound like an obscure case but it feels like there would very easily be a lot of benefit to others if this sort of template was available.
I totally agree. I also missed such a component when I wanted to integrate a control for the omxplayer. The universal media_player is to limited for such scenarios.
Would be really awesome! I was thinking about my own case, where having this type of integration for more complex systems (e.g. smart TV, AVR, BD Player, Apple TV, etc) being treated as single media player would be greatā¦
Iād like this too. currently, I am using input_boolean entities for power and input_numbers for volume. If I could somehow create a āmedia_playerā from those, I could group them better with the custom mini-media-player card.
Then Iād be able to go from this, to this:
So I started to create this myself. Iāve started with the development of the media player template but itās my first real try for creating my own component.
Iām first creating it for my own. So it wonāt have all the features but maybe in time I will update it so it can be a complete component.
One off the first problems I get in my situation(using ir remote to create this entity) is what is the state of the media player (off, idle, playing)
I will try to create a custom component that you can test as soon as possible
Hereās my first try: https://github.com/Sennevds/media_player.template
I will expand the readme. If you donāt know how to work with custom_components wait a little bit before you try this until I have written a explantion how to implement this.
Itās a first implementation so not everything is implemented and probably not everything is implemented the ārightā way
Universal does not allow you to assign commands for play/pause etc, which is a large limitation if you are trying to use something like a Logitech Harmony hub to control devices.
This is exactly what I was looking for, I was surprised nothing like this existed yet in HA. I need it to integrate my Logitech Harmony hub with some disparate devices, which I can then expose to Alexa via HA Cloud as a media_player.