Inspired by the approach of user ynot1234567890 in 'this thread' (https://forums.slimdevices.com/showthread.php?109273-Announce-LMS-Controls-Google-Home-Google-Assistant-Voice-Control-of-LMS-Players), I'm currently using a bash script to pull LMS Player values into Home Assistant that are not currently supported by the native 'Home Assistant Logitech Squeezebox integration' (https://www.home-assistant.io/integrations/squeezebox/), notably shuffle and sleep status on the player, or settings for mixer plugins like DSTM. This allows me for example to use voice control to start a SugarCube mix, but to check first that it is actually enabled on the player in question.
At the moment, I'm doing this through 3 calls to the JSON-RPC API in one script, one a compound query to get the player status, and then a couple more to get the settings for a couple of mixer plugins, using the "playerpref <namespace:prefname>" call. Am I doing this right? It strikes me as potentially a bit inefficient - is there a way to combine these into a single call for example? ------------------------------------------------------------------------ goharbourview123's Profile: http://forums.slimdevices.com/member.php?userid=23031 View this thread: http://forums.slimdevices.com/showthread.php?t=116193 _______________________________________________ Squeezecenter mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/squeezecenter
