Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Bose SoundTouch Discrete On/Off

    General Discussion
    1
    1
    2281
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bruno
      bruno last edited by

      Hello FlicTeam

      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"/>
      </nowPlaying>

      Finally here is the original quote from an answer on the Bose forums:
      https://community.bose.com/t5/SoundTouch-Archive/How-do-I-turn-off-the-SoundTouch-via-the-Web-Service-API/td-p/14350
      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post