Home Assistant integratio available

It is theoretically possible with Home Assistant (HA) being the Key “Gateway”.

So the Architecture is something like-

  • Backend
    = HA Custom Component Linkplay (to manage the Arylic Devices - including multiroom zones )
    = OR HA DLNA Digital Media Renderer (Arylic devices are DLNA renderers)
  • HA Frontend = HA Spotify Integration (To manage access to playlists, Spotify content etc.)
  • Google Assistant Frontend = HA Scripts can be exposed to Google Assistant as “Scenes” (A subscription with Nabu Casa $5/per month is required for the Alexa & Google Assistant side of things.)

There could be a simplification if the Spotify Integration can handle the backend media players directly.

Not being free could be a constraint but not in my case as I use Home Assistant in two properties for many Home Automation applications so I already have the Nabu Casa subscription as it saves a lot of time on the configuration side of things (particularly with respect to access from Mobile Devices when away from LAN).

However as usual it is likely that in practice it will be a challenge to set it up quickly :slight_smile:

1 Like

Thnx NWT.Stuff !

Great how you look at it and create a working environment. I am not sure how difficult this is. But I am looking for something that is easy to set up.
Preferably for me, just configurating with Google Home App and 4Stream App. For this I think Google Assistent needs to be supported by Arylic in the Up2Stream Mini.

My projects are mainly HiFi speakers with built-in amplifiers (active speakers), rebuilt and upgraded with streaming (built inside). I mainly use Up2Stream Mini v3 to built inside the speakers, and S10 for adding analog sources to the streaming eco system.

My big wish is to use voice commands to play music on vintage (active) HiFi speakers.

A quick note about how Spotify works.
Main thing is that you can’t exclude the original Spotify app from the system, even if you use the HA Spotify integration. In principle that is just a temporary remote working in parallel with the app.

1 Like

@KolfMAKER @robi

I can select a Spotify playlist on Google Assistant and play it on an S50+ Preamp. It’s not straightforward and wouldn’t be of much use to anyone that doesn’t have hands on experience with Home Assistant (or even some hardware with it installed). I will post more information when I have more experience with the tools. At the moment HA needs configuring and I would need to cut and paste ever playlist url into a HA script which is then exposed to GA as a scene. A scene is executed in Google Home Routines.

A better solution would be some form of direct GA Integration for Arylic (or Linkplay which Arylic use). @KolfMAKER I am sure that is what you are looking for with your projects.

I have not succeeded with the Mini & Pro DIY Boards. I think there are some posts on the forum which relate to this in some extent. The problem here is Spotify Connect does not see the Mini & Pro. The Mini, Pro & S50+ are all broadcasting the “_spotify-connect_tcp” service however the Spotify Front End only sees the S50+.

I don’t think it is a firewall issue as the PRO is hard wired on the LAN. The Mini doesn’t have a LAN port so is on wifi.

I think I will research some of the posts on the forum but I have noticed before that the Spotify behaviour of the DIY Boards is different to that of the S50+ preamp. It would probably be better to create a new topic for this or add to the existing one/s

Regards, Kevin

1 Like

@NWT.Stuff
I would prefer a direct integration of Google Assistent with the Up2Stream Mini.
Probably this integration has already been done by Arylic/Rakoit/Linkplay, but not yet on the Mini.

This integration is on my Wishlist!

Still interested in your findings Kevin!

1 Like

@KolfMAKER @robi

I will look into the Spotify Issues with Arylic.

I am committed to implementing Multiroom in our Villa in Spain-Multiroom Spain. It would be nice to offer our guests a unilateral solution based on the Music Subscription they have (e.g. Spotify, Amazon, Deezer). For this reason I am interested and committed to finding cool solutions for them to enjoy :slight_smile:

From a personal point of view I have a large digital music collection which is sitting on a Synology NAS (there is a Music Server which syncronises between UK & Spain). The 24bit/96kHz tracks sound amazing but again that is down to the fact that the original recordings are good.

So my major efforts on Voice Control will be playing playlists from this Server and Creating Multiroom Zones using Home Assistant which can then be exposed to Google Assistant, Alexa and possibly my next generation of Voice Control with Open Source Software. The experience is totally transferrable to other platforms as in simplistic terms Music Streaming consists of a Source, Sink/Target and Control Point. The rest is just communications hurdles that prevent the perfect triangle :slight_smile:

I think Linkplay in HA will really help the Zone Control side of things.

Regards, Kevin

Spotify Connect has suddenly started working with
Arylic - Mini, Pro & Amp (was working before with S50+)
Spotify - iOS app, android & web interface.

Might give Home Assistant another go :slight_smile:

1 Like

@KolfMAKER @robi

Got the Voice Control Working with Home Assistant, Google Assistant & Alexa. See attached PDF.

Working Platform for Voice Control with Google Assistant, Alexa using Home Assistant. In this case the audio source is Spotify.

Voice Control Spotify Home Assistant Google Assistant Alexa

1 Like

@NWT.Stuff
Thanks for sharing this feedback Kevin!
I guess you created a setup like you described before with HA custom components.
But I am very much interested in the setup description/your PDF.

@kolfmaker

The pdf link is shown in previous post as I edited it.

I’ve updated the component to pass through the UART commands so they can be used directly from HA automations.

shot
shot

1 Like

OK Robert,

Where is the best place to find the list of UART commands ?

Regards, Kevin

General UART commands.
Arylic-specific UART commands.
TCP UART testing tool.

Gathered from topic: Firmware Upgrade 4.2.9326.24

1 Like

Robert @robi,

Thanks very much for posting the links. I have only briefly tested but great work. It will really make it very quick and easy to Integrate Voice Control for Key Commands :clap: :clap: :clap:

I now have to think how to structure and use it. Will give feedback when I’ve decided what to do and implemented. Clearly knowing your way around Home Assistant is essential :slight_smile: I am lucky that I have knowledge and use it for many other things.

Kind Regards, Kevin

Robert @robi,

Yesterday I tried “linkplay.command” in HA Developer Tools like you show in your post

Today I moved onto scripts

OK so the 4 commands I tried in “linkplay.command” do not work. No Notification or Log Error.

The “linkplay.join” & “linkplay.unjoin” work perfectly when executing the script.

Anything obvious spring to mind ?

Many Thanks in advance, Kevin

P.S. Just read your post again. Will they work in Automation and NOT Script ?

P.P.S. Mute, Unmute, Presets work perfectly well in HA Developer Tools → Service

I just tested the scripts below and they work perfectly for me, by triggering them from Configuration > Scripts:

'up2stream_mute':
  alias: up2stream_mute
  sequence:
    - service: linkplay.command
      data:
        entity_id: media_player.hang_up2stream
        command: MCU+MUT+001
        notify: false

'up2stream_unmute':
  alias: up2stream_unmute
  sequence:
    - service: linkplay.command
      data:
        entity_id: media_player.hang_up2stream
        command: MCU+MUT+000
        notify: false

It also seems you didn’t read the manual about that you also can use the notify parameter to avoid the instant notification at each script run. This is optional though, shouldn’t affect scripts runnability.

1 Like

Thanks Robert @robi

The key was tp present the scripts as you showed in your post:

MuteScript

I did read the manual :slight_smile: It’s not very often :slight_smile: I thought having the notify reply was a very good idea when testing so I left it like that.

Many thanks for you help and support, Kevin

P.S. I found your documentation/manual well written and easy to follow :slight_smile:

Updated the component:

  • fix for Spotify play/pause toggle
  • fix for lovelace media player card artist information
  • add support for Home Assistant’s standard multiroom join and unjoin functions
  • other general fixes
2 Likes

Guys, is there a way to reboot the device from HA?

i tried this :
image

but i get :
2021-08-30 12:14:49 WARNING (SyncWorker_1) [custom_components.linkplay.media_player] Player media_player.luidspeker_buiten executed command: Reboot, result: Failed

also tried the HTT¨P API :
http://192.168.0.69/httpapi.asp?command=reboot

but get “unknown command” back

how can we initiate a reboot?

thnx

Reboot functionality seems to be removed from the recent firmwares. It was not a real reboot anyway…