How to connect with Home assistant
I'm using Music assistant as an add on of Home Assistant. What do i need to set in the connection page? I try my Home Assistant public url but it's not working.
thanks a lot!
Hi @sr-as2 should just be the IP address of your home assistant. I haven't ran my music assistant like that for a while, but it should work. To make sure of IP address you can check it in music assistant settings, about, base URL. Just enter the IP address like 192.168.0.1 no http://. Leave the port blank. If it doesn't work there's a little debugging logs section on the connection screen. You can copy and paste the logs here and I'll take a look.
I have managed to get remote access and remote playing for the app.
First i tried cloning the app and fix so that scanning the qr code in remote access in the music assistant settings would work. I got so far as to making it able to connect and play music, but not on the phone running the app which was my goal. Thus, i parked that attempt and instead exposed music assistant (that runs on haos 2025.12) through cloudeflare and ngix proxy manager add-on. That actually works. I have only tested with my fork, but i see no reason why it shouldnt work with the original code.
Since my fork did not solve the problem i will not merge it back here (it would just clutter things and doesnt do much useful stuff), but i will test cloudflare remote access with this and if it doesnt work, ill try to find out why.
Tested now with cloudflared-ngix proxy on latest beta, it works fine.
So you just type your HA public url ? for me it's not working
My music assitant url: https://mydomain.com/d5369777_music_assistant/ingress
[12:08:04.771] INFO Initializing database... [12:08:04.772] INFO Database initialized successfully [12:08:04.773] INFO 💾 Database initialized [12:08:04.800] INFO Migration skipped - profiles already exist [12:08:04.801] INFO 🔐 Secure storage migration complete [12:08:04.801] INFO 📦 Loading library from database cache... [12:08:04.801] INFO 📦 Loaded 0 albums, 0 artists, 0 audiobooks, 0 playlists from cache [12:08:04.801] INFO 📦 Library cache loaded [12:08:04.803] INFO 🎵 AudioService initialized - background playback and media notifications ENABLED [12:08:04.812] INFO 🚀 AppStartup: Settings loaded, hasCompletedOnboarding=false [12:08:04.812] INFO 🚀 AppStartup: Waiting for provider auto-connection to https://mydomain.com [12:08:04.830] INFO 📦 No cached players in database [12:08:04.830] INFO 📦 Loading library from database cache... [12:08:04.834] INFO 📦 Loaded 0 albums, 0 artists, 0 audiobooks, 0 playlists from cache [12:08:05.144] INFO Original server URL: https://mydomain.com [12:08:05.144] INFO Using WebSocket session ID: session_dd581aa8-746d-4c51-9ca4-0f26045e6d9f [12:08:05.144] INFO Using implicit default port (443) for secure connection [12:08:05.144] INFO Attempting secure (WSS) connection [12:08:05.144] INFO Final WebSocket URL: wss://mydomain.com/ws?client_id=session_dd581aa8-746d-4c51-9ca4-0f26045e6d9f [12:08:05.144] INFO Connection: No authentication configured [12:08:05.198] INFO Connection: Failed - WebSocketException: Connection to 'https://mydomain.com/ws?client_id=session_dd581aa8-746d-4c51-9ca4-0f26045e6d9f#' was not upgraded to websocket [12:08:05.198] INFO ❌ Error in Connect to server: WebSocketException: Connection to 'https://mydomain.com/ws?client_id=session_dd581aa8-746d-4c51-9ca4-0f26045e6d9f#' was not upgraded to websocket
Hi @sr-as2, no I was wrong there, but later in my original message, I said to make sure of the correct URL go to music assistant web UI, settings, about and look for base URL. There you will find the correct IP address.
From memory, could be slightly off: I used music.<mydomain.com>, i set the cname target the same as my home assistant target in the DNS. Then i added music.mydomain.com as a domain in the regular cloudflare add-on with target in the info screen in music assistant add-on. Then i added it in ngix proxy addon.
When i didnt get it right the first time i asked github copilot chat to correct me with urls to the different projects in the prompt and it corrected something i got slightly wrong.
@sr-as2 and @R00S do you have nabu casa subscription? enabling connection and remote access for home assistant users is my next integration. Although I am not able to test. Would you be willing to help test a few builds?
I use cloudflare and ngix proxy for remote access.
On Wed, Jan 7, 2026, 2:53 PM Chris @.***> wrote:
CollotsSpot left a comment (CollotsSpot/Ensemble#31) https://github.com/CollotsSpot/Ensemble/issues/31#issuecomment-3718996966
@sr-as2 https://github.com/sr-as2 and @R00S https://github.com/R00S do you have nabu casa subscription? enabling connection and remote access for home assistant users is my next integration. Although I am not able to test. Would you be willing to help test a few builds?
— Reply to this email directly, view it on GitHub https://github.com/CollotsSpot/Ensemble/issues/31#issuecomment-3718996966, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJYMMIHYIKRP2ORE2PX3P34FUFXJAVCNFSM6AAAAACQHYYEQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMJYHE4TMOJWGY . You are receiving this because you were mentioned.Message ID: @.***>
@sr-as2 and @R00S do you have nabu casa subscription? enabling connection and remote access for home assistant users is my next integration. Although I am not able to test. Would you be willing to help test a few builds?
Hi CollotsSpot, i have nabu casa subscription, i cant test the remote conection and remote acces using that. Cause i dont wanna use the cloudfare path.
Hi @R3x10, that's great news, because I want to incorporate the music assistant remote access feature for nabu casa subscribers. https://www.music-assistant.io/settings/remote-access/ would you be up for testing some builds to get it working? It will probably be a bit of of back and forth, pasting logs etc. what do you think?
Hi CollotsSpot, I'm in the same boat as R3x10. Got HA running on my server with NabuCasa subscription, and MA on that as an addon. Having an alternative to the webapp would be awesome and I'd love to help if you need any (though my knowledge is limited/basic 😅).
No worries, all you will need to do is paste logs here. I'm still working on some other stuff at the moment. When in ready, I'll put out a release just for remote ma connection and we can start
Hi @alexindle, can you go to remote access in music assistant settings. There's a link where you enter your id to connect remotely. Are you able to connect? For me it doesn't work. But i think that might be because of my particular setup.
https://app.music-assistant.io/ ? Yes that's how I currently access MA. I installed that Web page as a webapp.
I just set a user password there and it worked.
Pulled latest build and tried connecting using nabu casa link. The username field appeared but i noticed theres no way to enter my password. Attached dbug in txt file.
Hope that helps
Haven't released a remote connection build yet. But I am making progress
@alexindle
Before i solved the remot acces with cloudflare and ngix i tried to modify a fork of Ensemble to do it with remote connection. In the end, i managed to log in and play music on local speakers even when not on the local network, but never on the phone running Ensemble itself.
However, to not to have to edit the UI too much i first logged in locally and then switched to remote connection, then the Username and Password from the local login was used by remote connection. Maybe you can get around not being able to enter a passworkd the same way.
@sr-as2 and @R00S do you have nabu casa subscription? enabling connection and remote access for home assistant users is my next integration. Although I am not able to test. Would you be willing to help test a few builds?
Yes i have and i'll gladly help you
i have remote access to home assistant trough nginx. i tried to connect the app to music assistant server but no succes (i tried with and without enabling remote access in music assistant)
this is the log
[12:02:20.691] INFO 🔍 Auto-detecting auth strategy for http://xxxxx:8095/ [12:02:20.691] INFO Normalized URL: http://xxxxx:8095/ [12:02:20.691] INFO Checking for Music Assistant native auth at http://xxxxx:8095/... [12:02:20.691] INFO Checking MA API at: http://xxxxx:8095/api [12:03:01.512] INFO Connection: Failed - SocketException: Connection timed out (OS Error: Connection timed out, errno = 110), address = xxxxx.duckdns.org, port = 34394 [12:03:01.512] INFO ❌ Error in Connect to server: SocketException: Connection timed out (OS Error: Connection timed out, errno = 110), address = xxxxx.duckdns.org, port = 34394 [12:03:01.512] INFO Connection error: SocketException: Connection timed out (OS Error: Connection timed out, errno = 110), address = xxxxx.duckdns.org, port = 34394 [12:03:01.512] INFO 🔄 Reconnection failed: SocketException: Connection timed out (OS Error: Connection timed out, errno = 110), address = xxxxx.duckdns.org, port = 34394 [12:03:21.475] INFO 📱 App paused (backgrounded) [12:03:26.384] INFO MA auth check error: SocketException: Software caused connection abort (OS Error: Software caused connection abort, errno = 103), address =xxxxx, port = 34420 [12:03:26.385] INFO Testing no-auth strategy... [12:03:26.385] INFO No-auth test URL: http://xxxxx:8095/ [12:06:54.675] INFO 📱 App resumed - checking WebSocket connection... [12:06:54.675] INFO 🔄 checkAndReconnect called - state: MAConnectionState.error [12:06:54.675] INFO 🔄 Not connected, attempting reconnect to https://xxxxx.org/ [12:06:54.681] INFO Original server URL: https://xxxxx.org/ [12:06:54.681] INFO Using WebSocket session ID: session_351b05db-1c18-4624-a4a9-69596251acda [12:06:54.682] INFO Using custom WebSocket port from settings: 8095 [12:06:54.682] INFO Attempting secure (WSS) connection [12:06:54.682] INFO Final WebSocket URL: wss://xxxxx.org:8095/ws?client_id=session_351b05db-1c18-4624-a4a9-69596251acda [12:06:54.682] INFO Connection: No authentication configured [12:08:02.455] INFO 📱 App resumed - checking WebSocket connection... [12:08:02.455] INFO 🔄 checkAndReconnect called - state: MAConnectionState.connecting [12:08:02.455] INFO 🔄 Not connected, attempting reconnect to https://xxxxx.duckdns.org/ [12:08:02.460] INFO Original server URL: https://xxxxx.org/ [12:08:02.460] INFO Using WebSocket session ID: session_a6cc2731-8936-461e-93cc-91243fc34a78 [12:08:02.460] INFO Using custom WebSocket port from settings: 8095 [12:08:02.460] INFO Attempting secure (WSS) connection [12:08:02.460] INFO Final WebSocket URL: wss://xxxxx.duckdns.org:8095/ws?client_id=session_a6cc2731-8936-461e-93cc-91243fc34a78 [12:08:02.460] INFO Connection: No authentication configured [12:08:42.968] INFO No-auth error: SocketException: Connection timed out (OS Error: Connection timed out, errno = 110), address = 192.168.0.182, port = 34026 [12:08:42.969] INFO No-auth result: false [12:08:42.969] INFO Probing server for auth headers... [12:08:42.969] INFO Probe URL: http://xxxxx:8095/ [12:08:52.971] INFO ✗ Auth detection error: TimeoutException after 0:00:10.000000: Future not completed
Before i solved the remot acces with cloudflare and ngix i tried to modify a fork of Ensemble to do it with remote connection. In the end, i managed to log in and play music on local speakers even when not on the local network, but never on the phone running Ensemble itself.
However, to not to have to edit the UI too much i first logged in locally and then switched to remote connection, then the Username and Password from the local login was used by remote connection. Maybe you can get around not being able to enter a passworkd the same way.
Tried that just now but with no success. Local connection works but the NabuCasa-address doesnt. I'll just wait for a proper build. Webapp should be fine-ish until then.