Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Add support for Arylic devices #18

Open
gST84 opened this issue Feb 10, 2020 · 4 comments
Open

Add support for Arylic devices #18

gST84 opened this issue Feb 10, 2020 · 4 comments

Comments

@gST84
Copy link

gST84 commented Feb 10, 2020

Hey,

I have an Acrylic media player and it should be a Linkplay chip inside.
But I tried the plugin but it does not work properly. Some things work others don't.
The API commands look like they should work with your plugin. I used the API with node red
and this works fine.

Arylic have some very cool devices for budget multi room audio.
https://www.arylic.com

API Docs:
https://www.dropbox.com/sh/es7djofs1bt83es/AACg62IPjuu0bVlyaFzZsqcza/API%20file?dl=0&preview=WIFI+AUDIO+HTTP+API.pdf&subfolder_nav_tracking=1

I'm not capable of doing this myself :-/

@smgt
Copy link
Contributor

smgt commented Feb 16, 2020

Yes, it does look similar. Do you get any error messages in the HA log?

@koffienl
Copy link

koffienl commented Apr 12, 2020

I have a Arylic device (Up2Stream) and facing the same issues.
The log is spammed with these errors:

10:50:42 AM – custom_components/linkplay/media_player.py (WARNING) - message first occurred at 10:33:55 AM and shows up 96 times
REST result could not be parsed as JSON
10:50:42 AM – custom_components/linkplay/media_player.py (WARNING) - message first occurred at 10:33:55 AM and shows up 96 times```

I believe the root cause is the title and artist in the JSON containing some weird info:

```{"type":"0","ch":"0","mode":"10","loop":"3","eq":"0","status":"play","curpos":"6380","offset_pts":"6380","totlen":"0","Title":" ö*+ ö*+","Artist":"�ö*+�åY","Album":"","alarmflag":"0","plicount":"1","plicurr":"1","vol":"28","mute":"0","iuri":"687474703A2F2F696365636173742D716D757369636E6C2D6364702E747269706C652D69742E6E6C2F516D757369635F6E6C5F666F7574657575725F39362E6D7033","uri":"687474703A2F2F696365636173742D716D757369636E6C2D6364702E747269706C652D69742E6E6C2F516D757369635F6E6C5F666F7574657575725F39362E6D7033"}```

The mot basic function works: play, pause and set volume. The you don't get a lot of info because the returned JSON is totally ignored.

@smgt
Copy link
Contributor

smgt commented Apr 17, 2020

After looking in the documentation it seems that the data in Title, Artist and Album are hexed data. Might be the problem. It's really hard to test and verify since I don't have a Acrylic device.

@koffienl
Copy link

I don't think that's causing the problem. The main problem is the gibberish in the json for artist and album.
Dehexing shouldn't be that much of an issue.
I can provide some various json output of you like ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants