The following is my set up.
- Logitech Media server V7.9.0 running on Windows 10
- Airplay bridge
- JBL Soundfly air connected to LMS
- Flic Hub Flic Hub -
I have also set up a Home Assistant server and it can communicate with my LMS, however, 1) the Flic Hub is not yet supported and I would prefer to keep it simple.
What I would like to do is to send a few commands from the Flic buttons to the JBL Soundfly. Volume up, volume down, Play, Pause and 2 favorites.
The Flic Hub allows me to send an internet request. I have attached a screen shot of how the input looks on the Flic hub.
Is it possible to send a single command using the internet request to the JBL Soundfly via LMS Airplay Bridge or even directly to to JBL Soundfly?
Is there an example (including syntax) of what that command would look like.
I have looked at the protoslim documentation I have no idea how to translate individual bytes into an internet request.
Thank you
John
![]()
Results 1 to 4 of 4
-
2020-03-08, 13:00 #1
- Join Date
- Oct 2017
- Posts
- 19
Flic Hub button to adjust volume on JBL Soundfly air using airplay bridge on squeezeb
-
2020-03-08, 23:05 #2
You can POST to the server's /jsonrpc.js endpoint. Create a body like this:
{"id":0,"params":["00:ab:12:cd:34",["mixer","volume","+5"]],"method":"slim.request"}
You'd obviously have to use your player's MAC address. You'll find more information about the available commands in the CLI documentation (available from the bottom left help icon) or eg. http://htmlpreview.github.io/?https:...li-api.html#PCMichael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information)
-
2020-03-09, 13:07 #3
- Join Date
- Oct 2017
- Posts
- 19
Thank you, I will give that a try
john
-
2020-03-10, 06:31 #4
- Join Date
- Oct 2017
- Posts
- 19
Thank you very much it worked like a charm. I have been struggling with this on and off for a few weeks now.
Cheers
John