Bose SoundTouch Discrete On/Off
I was wondering if you could add a discrete on and off action to the Bose SoundTouch integration. Unfortunately the WebAPI only offers a "power" toggle, however it turns out "on/off" can easily be implemented using the "/now playing" query interface.
Here is what a call with reply looks like when my SoundTouch is on standby:
curl http://192.168.1.200:8090/now_playing | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<nowPlaying deviceID="000000000000" source="STANDBY">
<ContentItem source="STANDBY" isPresetable="true"/>
Finally here is the original quote from an answer on the Bose forums:
The answer is that at this time, there isn't a function for that. The recommendation is to use the /key endpoint with the "POWER" value. As it's a toggle, the recommendation is to check now_playing and only 'press' the power key if the source field for contentItem isn't "STANDBY". Thanks again.