Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MUSIC ASSISTANT WILL NOT WORK WITH HOME ASSISTANT 2023.3 #1143

Closed
marcelveldt opened this issue Mar 14, 2023 · 53 comments
Closed

MUSIC ASSISTANT WILL NOT WORK WITH HOME ASSISTANT 2023.3 #1143

marcelveldt opened this issue Mar 14, 2023 · 53 comments
Labels
upstream issue Issue depends on an issue outside MA

Comments

@marcelveldt
Copy link
Member

marcelveldt commented Mar 14, 2023

IMPORTANT NOTICE

Music Assistant is NOT compatible with Home Assistant release 2023.3 (and upwards) due to an unfortunate compatibility issue. At this time it is not possible to fix this issue I'm afraid.

Because a complete overhaul of Music Assistant was already in the making, version 2.0, we have decided to already release an early version of the 2.0 beta so people can get going from there. Follow us on discord to get the latest news about the beta and give and discuss feedback about it or follow progress and/on the backlog: https://github.com/orgs/music-assistant/projects/2

What to do next ?

Please postpone your upgrade to Home Assistant 2023.3
OR
Live a few weeks without Music Assistant

Thanks for your understanding!

@marcelveldt marcelveldt pinned this issue Mar 14, 2023
@OzGav OzGav added upstream issue Issue depends on an issue outside MA and removed triage labels Mar 14, 2023
@marcelveldt
Copy link
Member Author

marcelveldt commented Mar 14, 2023

Following up: It was my intention to still provide fix updates for the current (v1) version of Music Assistant as it is on HACS but unfortunately the upstream dependency issue is bad enough to make it near impossible, hence my decision to move all development focus to the 2.0 version. It is not a bad intention but just bad luck. Sad to hear that some people seem to think otherwise.

@marcelveldt
Copy link
Member Author

marcelveldt commented Mar 14, 2023

The new version of Music Assistant will run as a standalone application. The reason for this is exactly why it broke now, you can not have two captains on one ship. Both Home Assistant and Music Assistant are very large and complicated projects and it was a very bad idea of me in the first place to run the "core" of Music Assistant within Home Assistant itself.

The 2.0 approach is that the Music Assistant core runs on its own and the Home Assistant integration is just a connector, making it resilient to the kind of dependency issues that killed the v1 version.

For some this may sound as bad news but it is actually very good news because now we can have a much more fine grained control over the players and playback. You already see the first results of this in the early 2.0 betas: Full metadata is displayed.

There is still a lot of work to do on the 2.0 code but his feels like a very strong foundation to continue and make it into something awesome.

Running the Music Assistant 2.0 BETA

Preferred method: Home Assistant Add-on
By far the most convenient way to run the Music Assistant Server is to install the Music Assistant Add-on:

Add the Music Assistant repository to your Home Assistant instance.
Install the Music Assistant add-on.
Add repository on my Home Assistant

Alternative method: Docker image
An alternative way to run the Music Assistant server is by running the docker image:

docker run --network host ghcr.io/music-assistant/server

You must run the docker container with host network mode and the data volume is /data. If you want access to your local music files from within MA, make sure to also mount that, e.g. /media. Note that accessing remote (SMB) shares can be done from within MA itself using the SMB File provider.

@marcelveldt
Copy link
Member Author

marcelveldt commented Mar 14, 2023

I have MA v1 installed and now I can no longer remove it ?!

If you already upgraded to HA 2023.3.x you have two options:

  1. Manually remove MA from the "core.config_entries" file within the .storage subfolder of HA config.
  2. Restore your backup of HA 2023.2, uninstall MA and upgrade to HA 2023.3 again.

See also here for more tips and tricks how to deal with this:
#1106

You can also just keep the (now not working) Music Assistant integration installed if you want and upgrade it later to the updated integration for 2.0. It just looks a bit messy to have a malfunctioning integration but it can't do any harm.

@marcelveldt
Copy link
Member Author

BETA software is not yet polished

Please understand that we rushed the release of the early beta due to the major dependency conflict with HA 2023.3.x so not all features are ready. Most important, at this time we only have the server component ready, the actual "core" of Music Assistant and we're fixing the last bugs to get that in a stable state. After that we will focus on having the Music Assistant integration working again so you can control your music from within HA. Ultimate goal is to just submit the integration part as an official component for HA but we might reinstate the HACS version to gather some beta feedback first and/or to get people started sooner.

Follow progress of the new v2.0 version here:
https://github.com/orgs/music-assistant/projects/2/views/1

@szemod
Copy link

szemod commented Mar 16, 2023

Hello Marcel,
I try to switchover to version 2.0.0b and I faced with 2 issues:

  1. After the addon instaled Music Assistant is inaccessable via the link within the addon, if Home Assistant access set it up with https via duckdns, like: https://mydns.duckdns.org:5643/d5369777_music_assistant_beta/dashboard (dns and port is just example)
    Using the IP is accessable otherwise, but only http: http://192.168.1.84:8096/#/
  2. The other issue is, that some players automaticaly recognised on my network, but the one I using, the default mpd.music_player unfortunately not among them. In 1.x during the initial configuration I can select what players I want to use, but in 2.0 there is no such function to add a player.
    Otherwise, I really like the Music assistant, at the moment I haven't even updated HA because of this and stil using 1.x version of Music assistant. Congratulations on your work!

@OzGav
Copy link
Contributor

OzGav commented Mar 16, 2023

@szemod please confirm that before you tried to use v2 that you disabled the v1 integration in HA SETTINGS?

@szemod
Copy link

szemod commented Mar 16, 2023

@OzGav Thanks for your guide, To disable the v1 solved my first issue.
I still not able to see mpd.music_player, nor I can select anywhere. Many thanks and pls advise of how can I select/setup a player.

@OzGav
Copy link
Contributor

OzGav commented Mar 16, 2023

Someone asked a similar question in discord. This is the response

Heya, is adding mpd as a player in the feature list of V2. I use snapcast and that works fine with mpd.

Well, it will be if we allow HA players again as players for MA.... So i'd like to have some of the most popular platforms native in MA and all other can be integrated by using the HA connector.

So you will have to wait a little while for this to be implemented. Sorry for the inconvenience.

@szemod
Copy link

szemod commented Mar 17, 2023

Someone asked a similar question in discord. This is the response

Heya, is adding mpd as a player in the feature list of V2. I use snapcast and that works fine with mpd.

Well, it will be if we allow HA players again as players for MA.... So i'd like to have some of the most popular platforms native in MA and all other can be integrated by using the HA connector.

So you will have to wait a little while for this to be implemented. Sorry for the inconvenience.

Many thanks for your reply! Then I'll need wait until is implemented. I have one more question: The global search field is missing on the HOME page of v2. Is that also planned in the future?

@OzGav
Copy link
Contributor

OzGav commented Mar 17, 2023

That is currently being worked on https://github.com/orgs/music-assistant/projects/2/views/1

@andrewigali
Copy link

andrewigali commented Mar 18, 2023

I share my experience.

HACS version MA must be disabled in the Integrations menu.
If you succeeded in installing the MA v2 extension, but it does not start, you must shut down the machine within the HA system and then turn it on again. It is likely that something was stuck/crashed. You should then be able to start and the webUI interface should be available.
Tested:
Raspberry4 rpi-64 Argon One M.2
HAOS 2023.1.7

Currently, there are no entities with the MA v2 extension, automation/call service options are not yet available. For those who care, continue to use the HACS version.
Last working version: HAOS 2023.2.5 and HACS MA 2023.2.1
HAOS 2023.1.7 and HACS MA 2022.12.1 will not work!
So you definitely need to update to HAOS 2023.2.x.
If you are already running HAOS 2023.3.x or later, you must first restore the previously created backup.
If no HAOS 2023.2.x, only from the previous one (e.g. [2023.1.x, then it must be reloaded.
Then install Terminal & SSH in the Settings/Addons menu. Start it and type the following:
if core update --version 2023.2.5 then enter.
(2 dashes)
To keep the system stable, use the above command only when upgrading from a previous version to a larger version! The downgrade is only from a backup!
Tested:
Raspberry4 rpi-64 Argon One M.2
From HAOS 2023.1.7 to HAOS 2023.2.5
MA 2023.2.1 (HACS version)

We hope it will exit the beta state as soon as possible, the new MA v2 extension will also include entities, automatisms/call services, dark theme mode. :)

Also, I recommend that there should be a site on the github site about what/what the given MA v2 version update contains, so that the average user can easily see the changes and the development.

@OzGav
Copy link
Contributor

OzGav commented Mar 18, 2023

Also, I recommend that there should be a site on the github site about what/what the given MA v2 version update contains, so that the average user can easily see the changes and the development.

Have a look at the link immediately above your post. That shows what is being worked on and what is coming up. Also you can join the Discord channel which has lots of discussions about what is happening with the project.

@andrewigali
Copy link

Also, I recommend that there should be a site on the github site about what/what the given MA v2 version update contains, so that the average user can easily see the changes and the development.

Have a look at the link immediately above your post. That shows what is being worked on and what is coming up. Also you can join the Discord channel which has lots of discussions about what is happening with the project.

Ok, that site is good, but I think it would be better if we could get information about the given version, what has changed and what has been added.
Example

@OzGav
Copy link
Contributor

OzGav commented Mar 18, 2023

Yes Marcel does that for full releases for during this beta development phase we are running with the backlog.

@thermosiphonas
Copy link

Does Browse work in v2.0 or is it something that will be added later on? Clicking on anything does nothing

Thank you

@OzGav
Copy link
Contributor

OzGav commented Mar 19, 2023

B8 fixed this

@thermosiphonas
Copy link

Oh! thanks! I hadn't noticed that it had updates!

@marcelveldt
Copy link
Member Author

Oh! thanks! I hadn't noticed that it had updates!

We release a new beta almost every day with bugfixes and the final (missing) features being added.
You can use the backlog to follow along what is being worked on.

When 2.0 is being released there will be a full writeup of the new features and such.
At this point you will have to follow the backlog or join discord to stay updated.

And of course as @andrewigali pointed out, if you just want a stable setup and not toy with beta versions, just stick with the V1 version for now which works rock solid on HA 2023.2.x.

@thermosiphonas
Copy link

Sorry to bother you again.

I wave a shared folder mounted in Home Assistant following this guide. I can see the folder in the Media tab in Home Assistant but when I add it to the Local Filesystem in Music Assistant it's empty

@marcelveldt
Copy link
Member Author

@thermosiphonas in Music Assistant v2.0 you no longer use that workaround with mounting a share but instead you pick the "SMB mediaprovider" for direct access to your remote share

@thermosiphonas
Copy link

I have a very large library (over 950GB and 120,000 files) and SMB mediaprovider gets stuck all the time. I cannot enter a folder and see the mp3s inside it

@OzGav
Copy link
Contributor

OzGav commented Apr 20, 2023

If you have HA >= 2023.3.x installed then you can only use MA V2 BETA. Automations will be available in that in a few weeks.

@andrewigali
Copy link

If you have HA >= 2023.3.x installed then you can only use MA V2 BETA. Automations will be available in that in a few weeks.

Yes, I'm still using HA 2023.2.1 and HACS Music Assistant. It's just the lack of automation that keeps me from upgrading the HA system and switching to the Music Assistant plugin.
That's why I asked which target list I should look at, check, so that I know that I can update and change.
I'm really glad that Music Assistant exists and I hope that a stable version will be released soon. :)

@OzGav
Copy link
Contributor

OzGav commented Apr 20, 2023

Ok please open a discussion and ask for some help explaining what you want to do and what you have tried so far.

@vjmaz
Copy link

vjmaz commented Apr 20, 2023

Dear Marcel will version 2.0 work with new HA 2023.3 onwards , as i had many scripts to say notification then play the music again ? .... I hope it gets sorted all the best Marcel it was awesome while it lasted :)

@OzGav
Copy link
Contributor

OzGav commented Apr 20, 2023

Version 2 already works with the latest versions of HA. The HA integration to allow automations is a couple of weeks away.

@pejotigrek
Copy link

Alternative method: Docker image An alternative way to run the Music Assistant server is by running the docker image:

docker run --network host ghcr.io/music-assistant/server

You must run the docker container with host network mode and the data volume is /data. If you want access to your local music files from within MA, make sure to also mount that, e.g. /media. Note that accessing remote (SMB) shares can be done from within MA itself using the SMB File provider.

I am using HA Container installation, so obviously I've tried the docker version [both by the docker run line you've provided, and by docker-compose that I made].
how can I access the Music Assistant dashboard? I mean - can I access it without HA?
I've tried IP:8095 or IP:8096 [ports that I've found here or in the logs ;)] but with no luck. I've tried to forward those ports to the container but also didn't worked.
it's possible that I'm missing something, but am I? ;)

@marcelveldt
Copy link
Member Author

I am using HA Container installation, so obviously I've tried the docker version [both by the docker run line you've provided, and by docker-compose that I made]. how can I access the Music Assistant dashboard? I mean - can I access it without HA? I've tried IP:8095 or IP:8096 [ports that I've found here or in the logs ;)] but with no luck. I've tried to forward those ports to the container but also didn't worked. it's possible that I'm missing something, but am I? ;)

If you used host network mode (as required in the docs) you can access the local webserver of the MA server on http://ipofyourdockerhost:8095

@pejotigrek
Copy link

I've tried that [that's what I meant by IP:8095] - but nothing is showing up.

@marcelveldt
Copy link
Member Author

I've tried that [that's what I meant by IP:8095] - but nothing is showing up.

it really should work (look in the log if it started on port 8095 because it auto picks another port if that port is already taken). Also make sure to use HTTP and not HTTPS and maybe try another browser. 100s of people use it this way.

@pejotigrek
Copy link

log was legit. so I've restarted my docker, and to be sure - deleted browser's cache one more time and it clicked. seems it was some cache problem. thanks!

@AleksandrBraun
Copy link

I have been and remain a fan of Music Assistant for a long time.
I was disappointed to learn that the new version of Home Assistant broke the correct operation of Music Assistant.
But I believe that such an advanced product will not be left without a continuation.
I regularly monitor your tremendous work on solving this problem.
And I was pleased to find that the BETA version is already available for testing.
I like the new integration design, it's more modern and clear. New services have been added. I connected my favorite radio stations and even YouTube Music without any problems.
The only thing missing from the previous integration version is support for ESPHome i2s Media Player. Maybe I did not fully understand, but I could not see these players in the list of available in Music Assistant.
Please tell me, did I disable something or are there other reasons for their absence?
Thank you very much for your work.

@OzGav
Copy link
Contributor

OzGav commented Apr 28, 2023

No you haven’t missed anything. The ESP devices are not yet supported. Go to the player provider poll and express your interest in that over there

@AleksandrBraun
Copy link

Did I understand correctly that support for ESPHome Player has ended due to changes in ESPHome?
On the side of Music Assistant, everything remains the same?

@OzGav
Copy link
Contributor

OzGav commented Apr 28, 2023

No MA V2 needs to have support added for those devices. Having said that when the HA.integration is written in a few weeks then all HA media player entities will be exposed

@AleksandrBraun
Copy link

Thanks. Wait for update.
Good job!

@rvandet
Copy link

rvandet commented May 7, 2023

May be it is a bug, i do not know. Some Players remain in the list when selecting a target audio device. But these players have been deleted from the player list. Don know why they show up. Suggestion: it would also be nice if offline devices and devices that are "off", do not show up.

Also, when creating a "Helper" that has two or more audio devices in it, I would like to be able to choose this "Helper" as a Player so that i can play to a group of speakers (by their Chromecast endpoints that are Entities in this Helper group).

image

Update:
To answer my own question: Restart the "Music Assistant" Add-on, all players are updated. Before restarting MA, I have restarted the Chromecast Add-on as well.

@OzGav
Copy link
Contributor

OzGav commented May 7, 2023

Please look for similar or identical existing issues #1180 and don't keep adding to this topic with new or unrelated info, start a new discussion or issue.

@J0sss
Copy link

J0sss commented May 8, 2023

Hi all! I have been following the progress here with some interest, and I am trying to install the MA v2 add on using the instructions I found. I have managed to get the MA in my add on store, but I can't install it as it reports my processor or OS is not supported. I am using an RPi 2 model B, so it should have a ARM Cortex-A7 processor. My OS is the latest, 10.1 currently. Am I out of luck that my device is too old, or will it be supported at some time in the future or could something else be wrong?

@gieljnssns
Copy link

I think only 64bit is supported.

@erkr
Copy link
Contributor

erkr commented May 8, 2023

1 GB ram won't be enough either. It works on my test setup using a pi 3b with 1 GB and that just works, as long I don't add other add-on's or many extra integrations

@J0sss
Copy link

J0sss commented May 8, 2023

Ok, good to know, thank you for your replies! Time to invest a little bit again..

@marcelveldt
Copy link
Member Author

FYI: Music Assistant 2023.6.0 beta 0 is now available on HACS which is the rewritten Home Assistant integration that talks to Music Assistant Server 2.0.

@rvandet
Copy link

rvandet commented Nov 7, 2024

I get a "List index out of range", when
i choose an Album (or radio station) and klick the three buttons (Menu)
then choose "Start radio".
Happens since the latest HA update on 2024-11-06.

@OzGav
Copy link
Contributor

OzGav commented Nov 8, 2024

@rvandet You are posting in a closed issue from years ago? Firstly having the start radio option against a radio station is a bug. that will be removed. Next the error message is poor. If you look in your logs you will probably find that "the provider library does not support dynamic tracks". So you need to ensure you have a streaming provider that supports dynamic tracks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream issue Issue depends on an issue outside MA
Projects
None yet
Development

No branches or pull requests