HA as a media service for streaming to devices

hi is it also possible to setup HA as a service/server for media streaming to other devices?
like internet radio channels, music on a shared folder

something that also plex does, or synology media server …

thnx

1 Like

I was able to install Audio Station on my Synology and configure the permissions to allow HA to access without a password. I then embedded the Audio Station within an iframe in Lovelace and set the view to panel mode.

I can browse my entire music library by category or use the search feature. When I begin playback, it changes my Onkyo receiver to the proper input and begins playing the music over my primary home stereo system. As of now, the available options are limited to what the Synology Audio station detects (e.g. Airplay devices), but I have gotten it to stream to the Onkyo DLNA service. Right now, I don’t know how to add devices/capabilities to the Audio Station options, but to be honest, I haven’t tried. My goal was to stream to my primary home theater receiver anyway.

Hope this helps someone. I hadn’t found any other information on streaming from my Synology to devices via HA… other than Internet radio.

Cool setup :wink:

@ ResinChem

Can you kindly suggests your steps: I got a blank screen. Do I need to configure Home assistant into Synology and in which mode?
A walktrough if it is possible
Thnaks

Great idea and setup.

OP - would you mind sharing your steps. Many thanks.

Please share how you achieve this.
Thanks a lot

There really isn’t anything tricky to this process. First, assure that Audio Station is installed and configured properly. You should be able to access Audio Station directly in a browser by navigating to http://yourSynologyIP/audio/. If this doesn’t work, you won’t be able to embed in Home Assistant. See the Synology documentation for installing/configuring Audio Station. Check that you have permissions set properly to access Audio Station directly from a browser on a computer.

There is one change you need to make. Within DSM->Security, clear the checkbox that says “Do not allow DSM to be embedded within iFrame”.

From there, you simply create a tab (view) in Home Assistant Lovelace. Add an iFrame (web page card):

> aspect_ratio: 50%
> title: Music
> type: iframe
> url: 'http://*my_synology_ip*/audio/'

Change the property of the view to ‘Panel mode’ to show Audio Station ‘full screen’. That’s all there is to it. One drawback is that you must login to DSM/Audio Station within the iFrame on occasion. I haven’t investigated a way to either auto-login or to keep the login alive, but for me, that’s no big deal. As long as I’m using the ‘Jukebox’ view in Home Assistant, I stay logged in. It’s only after I navigate away for a while that am I prompted to log in again.

Hello!
Can you explain a bit more? I worked “kinda off” like you wrote, but i only get blank screen. I created shared playlist in audio station, this is only way i found to get into audio station with web address. And i’ve had to enter username:password@“localIP”/… to be able to enter, otherwise i get acces denied info.

You solved this?

Nope, i gave up. I have other devices for streaming now. (AV receiver).

how did you configure permissions,
i try to make the same way but i get refused to connect.
i would be happy to even see the login page

This quit working for me quite some time ago. Either a Synology DSM upgrade or a Home Assistant update (I strongly suspect it is the DSM) broke the functionality. I still get a log in page, but attempting to log in just returns: The embedded page at <ip_address> returned: You are not authorized to use this service. I’m pretty sure this started after upgrading DSM from 5.x to 6.x.

This is despite using an administrator account to log in… and trying every security setting on the Synology that I could find that appeared related. I too have moved on to other ways to stream, as Home Assistant recognizes the Synology as a DLNA media player… and there are other options such as Music Assistant (although I have not tried that add-on, so I cannot say how well it works). I was great while it lasted, but I can no longer get the embedded iframe to work for logging into the Synology.

1 Like

anny news here ??
ive managed to get this card working but can’t pass with login screen just rolling and then nothing
heres website
https://YOUR_NAME_HERE.direct.quickconnect.to:port/?launchApp=SYNO.SDS.AudioStation.Application

Sorry… I haven’t gone back and revisited it. As I mentioned, I basically gave up on the idea over a year ago. I’ve since built my own DIY amp with DLNA and streaming services that uses an ESP32 to provide MQTT that I can integrate and control from Home Assistant. With this, I really don’t have a need to embed audio station any longer.

If you want something that provides a similar interface, playlists, etc., you might take a look at Music Assistant… which apparently has come a long way in the past year.