Development Tips and Tricks

Let’s continue …

I like it when the background music in the house. There is a media server that can distribute music to the speakers. But I like listening to the radio more.

In Home Assistant there is no regular convenient way to maintain a list of radio stations. Enthusiasts have come up with a way to get around this boundary in a couple of automation scripts (Combined music player). But editing them in the usual way is difficult - you have to dig into long lists of URLs and text strings. High probability of error.

Going along the path of a “lazy programmer”, I wrote a script that makes changes to the automation scripts for me:

For its work, I just need to make a list of radio stations, similar to the usual YAML: