Version 2.0 has been upload to GIthub. This is the change to the LMS JSON interface. Both the Server and Player Device Handlers are updated. No changes to the Button manager smartapp.
There is no need to reinstall devices, just update and publish the new versions.
If you are using the preset buttons, they need to be changed to the JSON format. Documentation has been updated to reflect this. For example, p0=playlist&p1=play&p2=Morning%20Mix, is now “playlist”,“play”,“Morning Mix”.
The new interface removes the requirement that LMS be set to English.
Power button and on() and off() commands have been added to players.
Volume reports full range of 0-100.
Temporary playlist saved used for announcements is now deleted after the announcement completes.
Additional voices to support additional languages for speech have been added to the player settings. I have not tested all of them.
This was a big rewrite, and I have attempted to test, but expect you may still find issues. Feedback is encouraged.
I now consider this project fairly complete, unless I decide to try to write a player install helper smartapp. Additional functionality will be based on finding new needs, and requests that sound interesting.
For those of you that do coding, this code is parent-child device handlers that receive responses back from the server using Hubaction with a JSON body. I also had to put together two different methods to handle sequential server commands, the difference being how responses are handled. While it made my head hurt, it’s been fun.
Hope you find this useful.