Hi, im playing around with HA the last two days and now trying to implement a simple webradio player for my google cast enabled speakers.
Whats working so far: I have a script per station which plays a webradio URL on a cast speaker via “play_media” on the “media_player” component, automated or triggered manually.
But now i like to implement some enhancements but i dont know if they are possible:
- populate the scripts out of some kind of array to avoid code duplication? (array of n URLS -> n scripts)
- show the scripts as smaller buttons/images inside an webradio group instead of “script name - activate”? (like the ones on the top)
- is it possible to specify metadata (image / station name) in addition to the url to get a nicer “now playing” info from the media_player? (if i cast from my phone, the info is displayed nicely in HA already) (have seen that pychromecast API supports a metadata argument, but have no idea how to route that through HA API)
just for interest:
- Are there plans for some kind of media controller components for the HA frontend?
in this case a webradio component configured with an “output media_player” and a list of stations which exposes controls on the frontend and handles the media_play calls?
thanks for reading and this great project!