Using radio-browser to search the station and start the stream works perfectly fine but is not very comfortable.
But since it is working with radio-browser: Is there a way to see the service-calls, radio-browser uses to play the stream?
This way I could copy calls it uses.
The button calls an action of an automation, though most likely it is possible to call the stream directly in the button setting.
In my example ‘mazal’ is group of various Google Chromecast and Nest Audio speakers.
There are a few ways to accomplish this but I think you’ve chosen the most awkward.
I would take the service calls in the action section of your automation and create a template button using them then use button.press service call for that button in both your automation action and the tap_action for your UI button.
You could also create a script with the automation action section and call that script in the automation and UI button.
Both would be preferable to calling an automation.trigger IMHO.
I fully agree with you.
I created this when I started HA and it was the only way I understood and, though I agree that there are better ways, it works.
Also, I have not worked with Templates yet and even do not yet understand the concept. I will spend some time watching YouTube videos to get it…
I like the script suggestion and already incorporated scripts in many of my automations that use the same action.
Thanks for your input.
A little late to the party but I was searching for the same and got this working.
A button calling this script to start a mp3 stream from a radio station: