Integrate Sonos with C-Bus

Discussion in 'Third-Party Solutions' started by Ks04, Apr 25, 2020.

  1. Ks04

    Ks04

    Joined:
    Dec 28, 2019
    Messages:
    19
    Likes Received:
    1
    Hi Gang,

    This weekends project was trying to get an EDLT to trigger Pause/Play & Volume on my Sonos.

    I was hoping to achieve this through a PAC and Sonos HTTP API (github.com/jishi/node-sonos-http-api) which I have running on a Pi.

    I tried some code on the Pi, but discovered getHTTPData isn't supported on PAC - presumably because there is not network interface (I was hoping it would trigger via c-gate).

    Is there any clever way to make this happen that people are aware of? (I have a CNI and PAC but not WISER/NAC). Otherwise I'm guessing it'll be writting a node.js script on the Pi to listen and respond from C-Gate?
     
    Ks04, Apr 25, 2020
    #1
    1. Advertisements

  2. Ks04

    jboer

    Joined:
    Apr 27, 2012
    Messages:
    443
    Likes Received:
    35
    Location:
    Sydney
    Hey KS, Where do you have your C-Gate running? I presume you have an installation on the Pi?

    The other option would be to do something with serial between the PAC and the Pi, but if you only want a few simple commands you might be better opening a connection into C-Gate and just listening for them as you are saying..
     
    jboer, Apr 25, 2020
    #2
    1. Advertisements

  3. Ks04

    chromus

    Joined:
    Jan 27, 2014
    Messages:
    247
    Likes Received:
    32
    Location:
    Perth
    Homebridge CBuS and Homebridge Sonos should bridge the gap for you.
     
    chromus, Apr 26, 2020
    #3
  4. Ks04

    Ks04

    Joined:
    Dec 28, 2019
    Messages:
    19
    Likes Received:
    1
    Looking for a fast start I stumbled across Anthony Webb's Node-Cbus app -
    https://github.com/anthonywebb/node-cbus

    It already has function to trigger URL actions off the back of monitoring C-Bus events - all the legwork is already done. Highly recommend.
     
    Ks04, Apr 26, 2020
    #4
    jbaker likes this.
  5. Ks04

    chromus

    Joined:
    Jan 27, 2014
    Messages:
    247
    Likes Received:
    32
    Location:
    Perth
    If you combo that with Homebridge UI X for easy browser based management and JSON editing, its super simple to work with.
     
    chromus, Apr 28, 2020
    #5
  6. Ks04

    Ambro

    Joined:
    Nov 23, 2010
    Messages:
    97
    Likes Received:
    1
    Location:
    Adelaide
    I've used a Swiss companies product called 'Lextend'

    Pricey but works very well with minimal PICED coding required.
     
    Ambro, May 7, 2020
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.