Page 1 of 1

Sonos integration

PostPosted: Tue May 24, 2016 7:13 am
by shermaniiv
Anyone ever integrate with sonos? Ideally I'd like my fire/co zones to cause music to stop playing and trigger a specific playlist (warning sounds) to kick off. I found a node.js api for sonos, just not sure how to get the decoder to run the script on an alarm.

Re: Sonos integration

PostPosted: Tue May 24, 2016 10:38 am
by kevin
You can likely achieve this using the REST API or you can write a custom python script using the alarmdecoder python library that uses the event handlers documented such as on_alarm to send data to your sonos.

If the sonos has an API you can GET/POST to, you can possibly do it through a 'custom notification' as well.