Skip to main content
Question

API: detection Sonos start playing in specific room

  • November 8, 2020
  • 1 reply
  • 113 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

controlav
Forum|alt.badge.img+24
  • Lead Maestro
  • 7872 replies
  • November 9, 2020

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