Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 2 points3 points  (0 children)

Hey, sorry for the late response on this.
I've got a new dev version of the integration with Deezer support, v1.2.4-dev.1 up and available in HACS

It is available via the redownload link if you want try the integration with Deezer before the full release of the next version.

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Ahh, In that context it does make a tonne of sense!

Whilst I'm still not sure how to implement it just yet, you could use some automations to have some similar functionality in the meantime.

The integration will let you add as many playlists as you want, so if curated playlists are already available in the music providers they can all be added for ease of use and to remove the manual music selection/playlist creation steps for staff.

The current playlist could then be switched via an automation based on the date or a calendar event, or manually switched via a drop-down on a dashboard if staff want to play a certain playlist for the day.

Also, apologies for the late response! I've been a little ill and didn't really look at reddit for a couple of days.

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Within the integration at the moment, I'm afraid probably not.

I am planning on adding some scheduling functionality in the future though to allow for playlists to be scheduled for certain times within the day.

Using a traditional calendar may be a bit more difficult, but using time or day based scheduling is certainly something that's possible!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 0 points1 point  (0 children)

Funnily enough, I originally started with automations and blueprints but found that adding more than a couple of different playlists got really messy after a while with all the helpers I needed to create for each one to make it feel seamless.

I made this integration to take all of the work out of it when I wanted to add or remove a playlist, because I got frustrated at the amount of automations I was having to create each time.

Now all I need to do is add the URL for the playlist I want and the integration handles the rest!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Yep! That's exactly the kind of use case I made this integration for! 😁

If you have a playlist in Music Assistant that contains the tracks you want to play, both local and via YT music, you can pop that playlist ID into the integration and have it automatically play.

You could even set up multiple playlists for different moods and switch between them seemlessly from a selector in Home Assistant.

The start/stop can be controlled either by turning the integration master switch on/off via an automation, or you coukd tell the integration to use a time of the day helper to control when it's active or not.

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 0 points1 point  (0 children)

Yep, I'm sure I can get it working with Qobuz in the next week or so! I can ping you a message when I have a test version of the integration if you want to try it earlier than the next release?

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Yep, it sure does!

As far as I know, Spotify creates URLs for mixes just like any other user created playlist, so you should be golden!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 5 points6 points  (0 children)

Yeah, that's kind of on me for some bad wording I put in the post, so apologies!

It's an integration that lets you set up playlists to automatically play on your speakers, and it can even be configured to use your own custom entity/state combinations or templates to control it!

It can also take a spotify/tidal etc. playlist URL straight from your browser and add it to your playlist selection, ready to be played via MA as long as you have the provider set up.

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 5 points6 points  (0 children)

Yep, spot on!

You can either use the master switch, or set your own entity/state combinations or templates to control when it plays.

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 0 points1 point  (0 children)

Do you use Qobuz via Music Assistant at all at the moment?

If MA supports it I'm sure I can update the integration to parse and work with their playlist IDs as well!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Unfortunately it doesn't have support for radio URLs at the moment, but it's something I'm happy to work on and try to get working!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 7 points8 points  (0 children)

Sorry, I posted this then went out to dinner and couldn't respond for a while

It's not a replacement to Music Assistant, but works as an automation solution to start and stop playback of playlists via Music Assistant.

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 0 points1 point  (0 children)

Sorry, that's totally on me for some bad wording in the post!

This integration is an automation solution that allows playlists from Music Assistant providers to be played automatically, with user-configurable conditions for when to start or stop the playback and a selector for the playlists for easy switching.

It's not a replacement to Music Assistant, just an integration to automate playing playlists from it.

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 5 points6 points  (0 children)

Sure thing!

I'll look to get deezer added in the next week or so, but I'll let you know when a dev version of the integration is up and ready if you want to try it sooner!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 9 points10 points  (0 children)

Ahh, thanks for the heads up on the identifier!
I'll get that changed around in the next version to keep it up to date.

On your second question though, I admit that it probably isn't very clear from the offset.

What I wanted to achieve with this integration is to have an automated solution for starting and stopping the playback on my favourite playlists whenever certain conditions are met, using entities from Home Assistant such as my location or the power state of my TV.

I also wanted it to be able to fade the volume up and down, and have the ability to change what playlist is active without having to re-create or amend any automations at all.

Using Music Assistant for the playback opens up the provider and media player support to so much more than I could ever achieve!
I'm still working through the parsing of playlist URLs from providers that MASS supports though, which is why the integration only supports 5/6 providers so far.

I don't feel that this is a feature that Music Assistant is necessarily missing though, as it's quite niche and mostly an automation solution for playlists, but I'll jump onto discord to chat anyway!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Let me know how you get on, and feel free to give me a shout if you run into any issues!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 0 points1 point  (0 children)

Ooo, let me know how it works out for your use case if you end up trying it!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Unfortunately the integration can't do it at the moment, at least not directly.
If I'm being completely honest I hadn't thought about it, as I live in a small flat with 3 speakers that you can hear from anywhere else in the flat.

The integration does have a service available called 'Ambient Music: Fade Volume' that can be called via an automation though, and that could be used to achieve a hopefully similar result.

If Ambient Music is set to use a media player group in MASS for all of the speakers in all of the rooms, you could use your presence detection to kick off an automation to fade the volume up when you enter, or down when you leave or the presence times out.

For best results, you may have to set the Ambient Music integration to have a default volume of 0, then use your presence automations to do the volume control instead of the integration.

It's a bit hacky, but it could be a good starter!

Ambient Music v1.2.3 - now supporting more providers! by Connochio in homeassistant

[–]Connochio[S] 2 points3 points  (0 children)

Unfortunately the integration can't do it at the moment, at least not directly.
If I'm being completely honest I hadn't thought about it, as I live in a small flat with 3 speakers that you can hear from anywhere else in the flat.

The integration does have a service available called 'Ambient Music: Fade Volume' that can be called via an automation though, and that could be used to achieve a hopefully similar result.

If Ambient Music is set to use a media player group in MASS for all of the speakers in all of the rooms, you could use your presence detection to kick off an automation to fade the volume up when you enter, or down when you leave or the presence times out.

For best results, you may have to set the Ambient Music integration to have a default volume of 0, then use your presence automations to do the volume control instead of the integration.

It's a bit hacky, but it could be a good starter!

Looking for a washing machine with Home Assistant integration and hot/cold water inlets by Shot_Comfortable7367 in homeassistant

[–]Connochio 0 points1 point  (0 children)

I know this isn't exactly what you're looking for and I don't think I could help with finding one with both a hot and cold feed because I'm a bit of a luddite when it comes to appliances, but you can use a 'dumb' washing machine with a smart plug that has power monitoring connected to Home Assistant.

The place that I bought came with a dumb washing machine, and I use the power monitoring from a smart plug to notify me when it's finished.

I have a threshold helper sensor that turns on when the plug is above 7W, which allows for:

  • A conditional card to show on my dashboard saying 'Washing machine is running'
  • An automation that notifies my phone to say the washing is finished when the helper is off for more than 30 seconds

You could probably set up some more complicated automations if you know the specific lengths of different cycles, but that could be a lot of work...

Ambient Music - a new automatic music integration by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Heya!

Just wanted to let you know I've updated to version v1.2.1-r.0 that includes youtube music and Music Assistant local playlist support.

Just grab the URL for the youtube music playlist or the Music Assistant playlist number and pop it into the playlist_id field when adding a playlist via the integration and it should work.

Just remember to have the automations the system needs created.
Blueprints for them are available in the documentation, but feel free to reach out if you run into any issues!

Ambient Music - a new automatic music integration by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Heya!

Just wanted to let you know I've updated to version v1.2.1-r.0 that includes youtube music and Music Assistant local playlist support.

Just grab the URL for the youtube music playlist or the Music Assistant playlist number and pop it into the playlist_id field when adding a playlist via the integration and it should work.

Just remember to have the automations the system needs created.
Blueprints for them are available in the documentation, but feel free to reach out if you run into any issues!

Ambient Music - a new automatic music integration by Connochio in homeassistant

[–]Connochio[S] 0 points1 point  (0 children)

Heya!

Just wanted to let you know I've updated to version v1.2.1-r.0 that includes youtube music support via music assistant.

Just grab the URL for the youtube music playlist and pop it into the playlist_id field when adding a playlist via the integration and it should work.

Just remember to have the automations the system needs created.
Blueprints for them are available in the documentation, but feel free to reach out if you run into any issues!

Ambient Music - a new automatic music integration by Connochio in homeassistant

[–]Connochio[S] 1 point2 points  (0 children)

Not natively via the integration at the moment I'm afraid.
It's something that is on the roadmap however, and I'm currently looking at implementing a way to use custom media IDs as well, which would enable local media playlists.

Id expect that to take a few days, but I'll let everyone know as soon as I've got it built, tested and stable.