So I’ve got an XBR-55X850C and I’ve been trying to get this binding to work for a bit now (I’m aware that it’s still under heavy development. :))
Two suggestions:
- Update the original post to include a link to the latest zip, and the PR. It took me quite a bit of digging to find the link to the latest version.
- Also, please include a brief snippet on what information would be useful in general for troubleshooting.
Now, on to the fun part!
Discovery seems to be failing for both IRCC and DIAL. DIAL is expected as it’s a TV, not a bluray, but IRCC was a bit surprising.
DIAL (expected):
07:45:37.789 [DEBUG] [inding.sony.internal.net.HttpRequest] - 3 * Sending client request on thread qtp31279137-71918
3 > GET http://10.254.20.191:80/DIAL/sony/applist
3 > Connection: close
3 > User-Agent: OpenHab/Sony/Binding
3 > X-CERS-DEVICE-ID: MediaRemote:00-11-22-33-44-55
3 > X-CERS-DEVICE-INFO: OpenHab/Sony/Binding
07:45:37.801 [DEBUG] [inding.sony.internal.net.HttpRequest] - 4 * Client response received on thread qtp31279137-71918
4 < 403
4 < Connection: close
4 < Content-Length: 0
IRCC (???):
07:45:37.910 [DEBUG] [y.discovery.IrccDiscoveryParticipant] - Could not find the IRCC service for device: org.jupnp.model.meta.DeviceDetails@37b55de0
So, I attempted to manually create the IRCC item. This is the RQST:
07:51:38.934 [DEBUG] [inding.sony.internal.net.HttpRequest] - 3 * Sending client request on thread qtp31279137-72008
3 > GET http://10.254.20.191:46007/DIALSCPD.xml
3 > Connection: close
3 > User-Agent: OpenHab/Sony/Binding
3 > X-CERS-DEVICE-ID: MediaRemote:00-11-22-33-44-55
3 > X-CERS-DEVICE-INFO: OpenHab/Sony/Binding
07:51:38.948 [DEBUG] [inding.sony.internal.net.HttpRequest] - 4 * Client response received on thread qtp31279137-72008
4 < 404
4 < Connection: close
4 < Date: Sat, 04 Mar 2017 14:51:39 GMT
4 < Server: FedoraCore/2 UPnP/1.0 MINT-X/1.8.1
And, as expected, when I attempted to configure the power channel and then turn the TV off:
07:59:50.688 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'master_tv_power_ircc' received command OFF
07:59:50.690 [ERROR] [ding.sony.internal.ircc.IrccProtocol] - IRCC Service was not found
07:59:50.694 [INFO ] [marthome.event.ItemStateChangedEvent] - master_tv_power_ircc changed from ON to OFF
For what it’s worth, the initial discovery:
1 > GET http://10.254.20.191:46007/dd.xml
1 > Connection: close
1 > User-Agent: OpenHab/Sony/Binding
1 > X-CERS-DEVICE-ID: MediaRemote:00-11-22-33-44-55
1 > X-CERS-DEVICE-INFO: OpenHab/Sony/Binding
07:45:37.777 [DEBUG] [inding.sony.internal.net.HttpRequest] - 2 * Client response received on thread qtp31279137-71918
2 < 200
2 < Accept-Range: none
2 < Application-URL: http://10.254.20.191:80/DIAL/apps/
2 < Connection: close
2 < Content-Length: 1155
2 < Content-Type: text/xml; charset="utf-8"
2 < Date: Sat, 04 Mar 2017 14:45:37 GMT
2 < Server: FedoraCore/2 UPnP/1.0 MINT-X/1.8.1
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
<friendlyName>XBR-55X850C</friendlyName>
<manufacturer>Sony Corporation</manufacturer>
<manufacturerURL>http://www.sony.net/</manufacturerURL>
<modelDescription>BRAVIA</modelDescription>
<modelName>XBR-55X850C</modelName>
<UDN>uuid:aa5d148d-08ec-46bd-a198-2f9b0cdaa87e</UDN>
<serviceList>
<service>
<serviceType>urn:dial-multiscreen-org:service:dial:1</serviceType>
<serviceId>urn:dial-multiscreen-org:serviceId:dial</serviceId>
<SCPDURL>/DIALSCPD.xml</SCPDURL>
<controlURL>/upnp/control/DIAL</controlURL>
<eventSubURL></eventSubURL>
</service>
</serviceList>
<av:X_DIALEX_DeviceInfo xmlns:av="urn:schemas-sony-com:av">
<av:X_DIALEX_AppsListURL>http://10.254.20.191:80/DIAL/sony/applist</av:X_DIALEX_AppsListURL>
<av:X_DIALEX_DeviceType>Android_TV_DIAL_v1.0.0</av:X_DIALEX_DeviceType>
</av:X_DIALEX_DeviceInfo>
</device>
</root>
As an aside, thank you very much for the work on the binding. Automation of devices such as these seems to be one of openhab’s weaknesses at the moment, and having full integration of devices such as these is fantastic.