Question

API: detection Sonos start playing in specific room

  • 8 November 2020
  • 1 reply
  • 106 views

Hi,

im going to use ifttt for controlling Sonos for years and its so pretty cool.

I have an another requirement: i need control SmartHome, when Sonos plays in specific room. For example: need Sonos learn to call rest api (get or ifttt) when i will start listening music in a kitchen.

or alternative issue: if i will be able to test every minute sonos over rest api: “hey dude, are you playing?”. Im able to test via volume, and its not the same.

Thanks for a clue...


This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

1 reply

Userlevel 7
Badge +23

To detect playback changes, subscribe to the UPnP event on AVTransport:1, look for “LastChange” and parse the xml.