Songpal Integration Setup Tip

This post is just a small tip for those wanting to use the Sony Songpal integration.
The details provided for the integration configuration are not clear: Sony Songpal - Home Assistant
Once the integration is started, a prompt asking for an ‘Endpoint’ is displayed. Ignore the information on the integration page that refers you to see the python-songpal’s documentation to get the API endpoint. It is not necessary.

  • Power on your Sony device and add it to your network.
  • Check your router information to obtain the IP address of your Sony device.
  • Start the HA Songpal integration and when it asks for the ‘endpoint’, enter the following: Change the IP according.
  • That should add the Sony device, and you should see it appear in the Songpal integration

Hope that helps someone.
I spent hours trying to get the Songpal python application running on my Linux PC, but this was completely unnecessary.



the documentation is rather old and could use some help, feel free to modify it by clicking the edit button on the page :slight_smile:

The reason for instructing to use python-songpal for discovering the endpoint is because not all devices use the same port, but adding a note saying that the common endpoint location is http://<host>:10000/sony could be added. Automatic discovery should work in most of the cases as long as homeassistant is in the same network as the device, so there’s no need for manual configuration.

It might be the case, but it is not correct for me just now.

The port number is not 10000.

# songpal discover
Discovering for 5 seconds
INFO:songpal.discovery:Discovering for 5 seconds

Found LSPX-S2 - MINT1.9.1
* API version: 1.0
* Endpoint:
    - Service: guide
    - Service: audio
    - Service: avContent
    - Service: system
    - Service: appControl

* URL:
* UDN: 
    - Service: urn:schemas-upnp-org:service:RenderingControl:1
    - Service: urn:schemas-upnp-org:service:ConnectionManager:1
    - Service: urn:schemas-upnp-org:service:AVTransport:1
    - Service: urn:schemas-tencent-com:service:QPlay:2.1
    - Service: urn:schemas-sony-com:service:Group:1
    - Service: urn:schemas-sony-com:service:MultiChannel:1
    - Service: urn:schemas-sony-com:service:ScalarWebAPI:1

P.S. The Python script scans devices only in the current subnet.

1 Like

I stumbled across this, having just got a SRS-XG300 speaker. Whilst this is songpal compatible, it seems to be bluetooth only, so not compatible with this integration.
Might it be accessable is there was a compatible device added, e.g. the SRS-X77, as a sort of ‘gateway’ to the SRS-XG300?
If this is the case, any recommendations for the ‘cheapest’ device of that nature?

Yeah, the port number may differ from device to device, that’s why it’s shown in the output. It is really hard to cater to a whole series of devices without having access or information from someone who knows about how these devices work :slight_smile:

To your P.S., the console tool now also supports defining the subnet (or rather, the source address, which defines the subnet): Add defining source-address for discover by rytilahti · Pull Request #133 · rytilahti/python-songpal · GitHub .

I doubt the bluetooth speakers will work hand-in-hand with devices supported by the integration, but I can say that such feature is not currently implemented.