Sony Devices Binding

Tags: #<Tag:0x00007f51df17f088>

(suntribe) #563

count me in also… btw, my Bravia has this announcement about the Android 8 upgrade in near future… did you have any chance to test the binding with the updated Android?

(Tim Roberts) #564

Yes - I have two of my tvs already on oreo and have been testing with it

(Tim Roberts) #565

New Release - only use if you are brave! There WILL BE ISSUES I’m sure.

You can find the release at xxx

This release is NOT compatible with your old things (please drop them before installing the new release). Many things have changed - namely the channel identifiers. The channel ids have been shortened (mainly in the scalar stuff - MUCH shorter now). Numerous fixes have occurred but I’m sure I’ve introduced a bunch of issues as well.

Please turn debug on for - that will help with the debugging.

If you post an issue - please tell me what your sony device is (type [avr/tv/etc], model number) and try to capture the error in the debug listing (whether it’s doing something weird or you’re getting an exception). Note that there are some exceptions printed that are not actually issues at this time (such as scalar services being advertised that aren’t valid [I know why and it will be in a future version]).

Also note that the IRCC service has been largely gutted by sony. I don’t have any device that implements the FULL IRCC service anymore - most only implement the IRCC command channel now and you only can use it with a shared key. I’d be interested if any of your devices implement the FULL IRCC service (you’ll see an actionsUrl in the debug logs and the device will go through a pairing process). Note that if it does - I haven’t tested that code since none of my devices do it anymore.

If you see scalar - always choose it as it combines all the other services capabilities.

EDIT: you should be able to use this on 2.4+ even though the name says 2.5. 2.3 and below won’t work

EDIT2: argh - found a fatal issue - took down link. Check back when I’ve posted a new one

(Andrea Riela) #566

Sorry guys,

most likely I’ve missed it, but is there a list of Sony TV compatible with the Binding?


(Tim Roberts) #567


There is no comprehensive list as the binding covers a good majority of the TVs/AVRs/etc. Seems the determining factors is if the TV has an ethernet (or wireless) port and you can find some network control settings in the setup. The binding has 4 different ways of controlling sony devices and which way (and how much control you get) depends on the device.

I think a good rule of thumb is if you have a bravia since 2015 - you should have some confidence that this binding will work (in some form).

(Knut) #568

I was looking some time for a bindung for my Sony tv. I was very happy I found this one even its WIP. I used the Version for some days and iam loving it already even though i only got SimpleIP to work. Today suddenly a Scalar Thing poped up in my Inbox. I think I triggered it by sending Power or Power-On or Power-Off to sony:simpleip:xxxxxxxx:ir.
I was going to write a larger post about my experiences today but then i saw the new version is out. I will now test this first.

(Tim Roberts) #569

Not out yet - ran into a fatal bug that I’ve fixed. However, I haven’t released it yet (again) because I powered up an old sony bluray that still has the IRCC service enabled - so I’m testing against it right now. Expect a new version early next week

(Tim Roberts) #570

Alright - try this again. New release at

Look at notes a few posts above - you WILL encounter errors I’m sure - too big of a rewrite not to.

More notes:

  1. IRCC seems to work on blurays still - but the bluray player needs to be ON to discover the IRCC service.
  2. If your device changes IPs or changes ports, the config will NOT be updated. I’m still looking into a way to do this automatically via discovery.

If you have a bluray player that has a web browser on it (my X800 doesn’t!). I need your help. If you would do the following:

  1. Turn debug on for the sony addon (“log:set DEBUG” from the console)
  2. Add the IRCC thing and make sure it comes online (doing the pairing, etc) - make sure the device is ON for discovery to work
  3. On the bluray - bring up the web browser and go to “
  4. Bring up the log and search for “” - I need to know what the XML that is shown. Should be something like
<?xml version...?>
    more stuff

(Johfeu) #571

Hi Tim
my BDP S5500 has a browser, but on a first test, i cannot do IRCC pairing. There is no paring code showing up on the screen. In the paper UI i see
Status: UNINITIALIZED - HANDLER_REGISTERING_ERROR SonyHandlerFactory could not create a handler for the thing ‘sony:ircc:5c93a28d920e’.
not sure if I am missing something, will give it another try tomorrow

(AV Home Auto) #572

same error here

(AV Home Auto) #573
21:52:52.545 [DEBUG] [al.discovery.DialDiscoveryParticipant] - Found Sony DIAL service: uuid:00000000-0000-1010-8000-fcf152999c7e
21:52:52.575 [DEBUG] [] - 1 * Sending client request on thread upnp-main-85
1 > GET

21:52:52.617 [DEBUG] [] - 1 * Client response received on thread upnp-main-85
1 < 200
1 < Accept-Range: none
1 < Application-URL:
1 < Connection: close
1 < Content-Length: 7429
1 < Content-Type: text/xml; charset="utf-8"
1 < Date: Sat, 01 Jan 2000 00:00:30 GMT
1 < Server: Linux/2.6 UPnP/1.0 XBR-55X857B/1.7
1 < X-AV-Physical-Unit-Info: pa="BRAVIA XBR-55X857B";
1 < X-AV-Server-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA XBR-55X857B"; mv="1.7";
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0"
    <friendlyName>BRAVIA XBR-55X857B</friendlyName>
    <manufacturer>Sony Corporation</manufacturer>
    <dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>
    <microsoft:magicPacketWakeSupported xmlns:microsoft="urn:schemas-microsoft-com:WMPNSS-1-0">1</microsoft:magicPacketWakeSupported>
    <av:X_MaxBGMCount xmlns:av="urn:schemas-sony-com:av">64</av:X_MaxBGMCount>
    <av:X_StandardDMR xmlns:av="urn:schemas-sony-com:av">1.1</av:X_StandardDMR>
    <av:X_ScreenResolution xmlns:av="urn:schemas-sony-com:av">4K</av:X_ScreenResolution>
    <av:X_IRCCCodeList xmlns:av="urn:schemas-sony-com:av">
      <av:X_IRCCCode command="Power">AAAAAQAAAAEAAAAVAw==</av:X_IRCCCode>
      <av:X_IRCCCode command="Power ON">AAAAAQAAAAEAAAAuAw==</av:X_IRCCCode>
      <av:X_IRCCCode command="Power OFF">AAAAAQAAAAEAAAAvAw==</av:X_IRCCCode>
    <df:X_deviceCategory>Display.TV Multimedia.DMR</df:X_deviceCategory>
    <av:X_TrackID_DeviceInfo xmlns:av="urn:schemas-sony-com:av">
    <av:X_DIALEX_DeviceInfo xmlns:av="urn:schemas-sony-com:av"> 

21:52:52.696 [DEBUG] [] - 2 * Sending client request on thread upnp-main-85
2 > GET

21:52:52.703 [ERROR] [ry.upnp.internal.UpnpDiscoveryService] - Participant '' threw an exception

(Johfeu) #574
2019-03-02 22:24:33.458 [hingStatusInfoChangedEvent] - 'sony:ircc:5c93a28d920e' changed from UNINITIALIZED (DISABLED) to UNINITIALIZED (HANDLER_REGISTERING_ERROR): SonyHandlerFactory could not create a handler for the thing 'sony:ircc:5c93a28d920e'.
2019-03-02 22:24:33.453 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while calling thing handler factory '': SonyHandlerFactory could not create a handler for the thing 'sony:ircc:5c93a28d920e'.
java.lang.IllegalStateException: SonyHandlerFactory could not create a handler for the thing 'sony:ircc:5c93a28d920e'.
	at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.registerHandler( ~[110:org.eclipse.smarthome.core.thing:0.10.0.oh240]
	at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.doRegisterHandler( [110:org.eclipse.smarthome.core.thing:0.10.0.oh240]
	at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.registerHandler( [110:org.eclipse.smarthome.core.thing:0.10.0.oh240]
	at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.registerAndInitializeHandler( [110:org.eclipse.smarthome.core.thing:0.10.0.oh240]
	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke( [173:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.ApplicationHandler.handle( [173:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle( [86:org.eclipse.jetty.servlet:9.4.11.v20180605]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle( [187:org.ops4j.pax.web.pax-web-jetty:7.2.3]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at []
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.clipse.jetty.server.handler.ScopedHandler.nextHandle( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.eclipse.jetty.servlet.ServletHandler.doScope( [86:org.eclipse.jetty.servlet:9.4.11.v20180605]
	at org.eclipse.jetty.server.session.SessionHandler.doScope( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle( [85:org.eclipse.jetty.server:9.4.11.v20180605]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle( [187:org.ops4j.pax.web.pax-web-jetty:7.2.3]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle( [85:org.eclipse.jetty.server:9.4.11.v20180605]

(Thomas Kleemann) #576

When I copy the jar-file to the addons-folder I get the following error:

Error while starting bundle: file:/usr/share/openhab2/addons/
org.osgi.framework.BundleException: Could not resolve module: [253]
  Unresolved requirement: Import-Package: org.eclipse.jdt.annotation; resolution:="optional"
  Unresolved requirement: Import-Package: org.eclipse.smarthome.config.discovery.upnp

Any suggestions which addons I need to install additionally?

(Koda) #577

Thank you for the gread binding.

I have only ip commands power, mute…, But i need right, up, left, down, ok. How can I add this? Under paperUI controls i find no of this commands

(Tim Roberts) #578

@johfeu @AV_HomeAuto
Just discovered that I accidentally made the MAP transformation service required. Prior to the debug messages you see - there should be one that says

08:22:12.348 [WARN ] [] - No transformation service found for 'MAP' type - cannot create a IrccHandler

Until I make a fix to make it optional - install the map transformation service and try it again.

What version of openhab are you using?

Depends on what service you are using. I’m guessing it’s the scalar one? If so, look in your transforms directory for a scalar*.map file - that should show you all the commands your device supports. Then send the name to the IRCCCommand channel. (example: send “Left” to the IRCCCommand channel should do a left - note that it is case sensitive so “LEFT” wouldn’t work).

(Thomas Kleemann) #579

What version of openhab are you using?
openHAB 2.4.0-1 (Release Build)

(Koda) #580

THank you. But I get allways this error for binding:
Status: UNINITIALIZED - HANDLER_REGISTERING_ERROR SonyHandlerFactory could not create a handler for the thing ‘sony:ircc:XXXXXXX’.
When I insert PIN Code he say error 500

(Tim Roberts) #581

Found the issue here: Creating a binding with UPNP discovery

Appears this only occurs when you drop it in (like we are doing until it’s merged). Try that feature install to see if it works for you (you’ll probably run into the map issue then the other have)

(Tim Roberts) #582


You are now hitting the map issue from above - install the map transformation and it should work (until I get out a new version - probably tomorrow)

(Tim Roberts) #583

Latest release:

Should fix the issue with the map transform service being required. Note: you should install the MAP transform ANYWAY if you plan on using the IRCC Command channel. If you don’t, you’ll need to send the raw commands (“AAAAAwAAHF…”) rather than the short cuts (“Left”)