Search code examples
sonos

With a Sonos player, adding local service to customSD does not show up Music Services


I have the starting shell of a SMAPI service programmed in Node.js. The service is running off of a local IP address.

When I goto the customSD page for my Sonos Play:1 and add the service details to it and it returns 'Success!' upon clicking submit.

When I open the Sonos Controllers on both my desktop and mobile, the service does not show up in the list of music services you can add.

I have logging on the server turned on to max and there are no connection attempts ( either SSL or HTTP ) at all.

From what I've read, a running service is not needed for it to show up in the list. Once it's added via customSD it should show up in the Music Service settings.

TO NOTE: A self signed cert is being used for https for connection testing only. I have certificate request logging turned on and there is NO connection attempt from the Sonos Play:1 to the local server at all. From everything I've read this shouldn't matter as it should show up in the Music Service list until you try to add it and then it will connect to the service.

The only thing I can think of is if this service needs to be registered with Sonos before it can be added via customSD, however at this time nothing I've read says that.

The other thing is if this service needs to be running off a domain name for some reason. However in the documentation it lists IP address so it would be bad documentation then.

I expect the service added via customSD should show up in the list. It does not appear when clicking on add.


Solution

  • Understood the issue and YvesGrantSonos has updated the documentation.

    If you're developing locally a non-https IP address should be used for both the secure and non-secure API URI's.