Sony Devices Binding for OH3

Hi,

The xml looks fine. Is this the first time you try to control your TV via network? If yes, than you might need to enable the control function and authentication

  • Go to Settings->Network->Home network setup->Renderer->Render Function and set it to “Enabled”.
  • Go to Settings->Network->Home network setup->IP Control->Authentication and set it to “Preshared”

The pre shared key must than be provided in the bindings configuration to get access to the services.

If this doesn’t work, it would help if you could provide the debug logs (see guide in the first post and set level=“DEBUG” in the logger section of the xml).

Your TV is a relatively new model, and it might be that Sony has changed the way on how to access the network services (which however seem still to exist)

Hi, I changed the settings on the TV and created a pre-shared key.

Log output is below. Anything else I can do to help diagnose?

2021-10-17 09:29:59.269 [DEBUG] [g.sony.internal.AbstractThingHandler] - Do reconnect for SONY XR-65A80CJ
2021-10-17 09:29:59.274 [DEBUG] [.internal.scalarweb.ScalarWebHandler] - Attempting connection to Scalar Web device...
2021-10-17 09:29:59.274 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/webapi/ssdp/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1c26a2 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.297 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/guide, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1997b99 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.350 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Service guide doesn't contain switchNotifications - ignoring notifications
2021-10-17 09:29:59.350 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/guide, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@5f015d with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.370 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/cec, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@af4a8 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.398 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/cec, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@5de5a with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.399 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.399 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/accessControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1296751 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.432 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/accessControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1b8ca7c with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.432 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.432 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/system, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@4766e6 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.467 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/system, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1d9e750 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.467 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.468 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/appControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@6bcf51 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.490 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/appControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1ee3fbe with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.490 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.491 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/encryption, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@527528 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.517 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/encryption, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1990ea4 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.517 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.518 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/dial/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@be6958 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.560 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Could not retrieve methods: Not Implemented
java.io.IOException: Not Implemented
        at org.openhab.binding.sony.internal.net.HttpResponse.createException(HttpResponse.java:244) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.ScalarWebResult.asArray(ScalarWebResult.java:237) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.api.SupportedApi.getSupportApiAlternate(SupportedApi.java:214) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.api.SupportedApi.getSupportedApi(SupportedApi.java:168) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebDeviceManager.<init>(ScalarWebDeviceManager.java:147) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebDeviceManager.create(ScalarWebDeviceManager.java:203) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.queryScalarWebSclient(ScalarWebClientFactory.java:212) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.get(ScalarWebClientFactory.java:103) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.get(ScalarWebClientFactory.java:80) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebHandler.connect(ScalarWebHandler.java:327) ~[?:?]
        at org.openhab.binding.sony.internal.AbstractThingHandler.doConnect(AbstractThingHandler.java:137) ~[?:?]
        at org.openhab.binding.sony.internal.AbstractThingHandler.lambda$1(AbstractThingHandler.java:341) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]
2021-10-17 09:29:59.564 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Service dial/dd.xml doesn't contain switchNotifications - ignoring notifications
2021-10-17 09:29:59.565 [DEBUG] [al.transports.SonyWebSocketTransport] - Starting websocket connection to ws://192.168.1.39:10000/sony/dial/dd.xml
2021-10-17 09:29:59.578 [DEBUG] [al.transports.SonyWebSocketTransport] - Connection refused for ws://192.168.1.39:10000/sony/dial/dd.xml: Connection refused
2021-10-17 09:29:59.579 [DEBUG] [rnal.transports.SonyTransportFactory] - Exception occurred creating transport: java.net.ConnectException: Connection refused
2021-10-17 09:29:59.579 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/dial/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1d0eb0d with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.580 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.580 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/audio, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@123601d with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.614 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/audio, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@f8cf80 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.614 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.614 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/video, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@d97e25 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.638 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/video, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@962950 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.638 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.638 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/avContent, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@18d131b with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.661 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/avContent, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@d3ebc5 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.661 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.662 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/videoScreen, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@d8598 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.690 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/videoScreen, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@ae6077 with initial authorization cookie: auth="";Version=1
2021-10-17 09:29:59.691 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.691 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.691 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:29:59.692 [DEBUG] [web.protocols.ScalarWebLoginProtocol] - WOL packet is not supported - specify the IP address and mac address in config if you want a WOL packet sent
2021-10-17 09:30:00.023 [DEBUG] [web.protocols.ScalarWebLoginProtocol] - WebScalar System now connected
2021-10-17 09:30:00.450 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/webapi/ssdp/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@47a483 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:00.450 [DEBUG] [sony.internal.ircc.IrccClientFactory] - Querying IRCC client http://192.168.1.39:7579/sony/webapi/ssdp/dd.xml
2021-10-17 09:30:00.464 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.464 [DEBUG] [g.sony.internal.AbstractThingHandler] - Do reconnect for SONY XR-65A80CJ
2021-10-17 09:30:10.471 [DEBUG] [.internal.scalarweb.ScalarWebHandler] - Attempting connection to Scalar Web device...
2021-10-17 09:30:10.472 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/webapi/ssdp/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1554f54 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.488 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/guide, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@d1d367 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.528 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Service guide doesn't contain switchNotifications - ignoring notifications
2021-10-17 09:30:10.528 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/guide, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1bbcc2f with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.549 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/cec, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@15e46ef with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.580 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/cec, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@35f710 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.581 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.582 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/accessControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@aae0a with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.606 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/accessControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1c8f164 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.606 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.607 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/system, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1e9aa6 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.634 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/system, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1610f96 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.634 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.635 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/appControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@10b705 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.662 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/appControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1491d19 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.663 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.663 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/encryption, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@63af65 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.686 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/encryption, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@a3a708 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.686 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.687 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/dial/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@52c96b with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.747 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Could not retrieve methods: Not Implemented
java.io.IOException: Not Implemented
        at org.openhab.binding.sony.internal.net.HttpResponse.createException(HttpResponse.java:244) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.ScalarWebResult.asArray(ScalarWebResult.java:237) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.api.SupportedApi.getSupportApiAlternate(SupportedApi.java:214) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.api.SupportedApi.getSupportedApi(SupportedApi.java:168) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebDeviceManager.<init>(ScalarWebDeviceManager.java:147) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebDeviceManager.create(ScalarWebDeviceManager.java:203) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.queryScalarWebSclient(ScalarWebClientFactory.java:212) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.get(ScalarWebClientFactory.java:103) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.get(ScalarWebClientFactory.java:80) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebHandler.connect(ScalarWebHandler.java:327) ~[?:?]
        at org.openhab.binding.sony.internal.AbstractThingHandler.doConnect(AbstractThingHandler.java:137) ~[?:?]
        at org.openhab.binding.sony.internal.AbstractThingHandler.lambda$1(AbstractThingHandler.java:341) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]
2021-10-17 09:30:10.751 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Service dial/dd.xml doesn't contain switchNotifications - ignoring notifications
2021-10-17 09:30:10.752 [DEBUG] [al.transports.SonyWebSocketTransport] - Starting websocket connection to ws://192.168.1.39:10000/sony/dial/dd.xml
2021-10-17 09:30:10.756 [DEBUG] [al.transports.SonyWebSocketTransport] - Connection refused for ws://192.168.1.39:10000/sony/dial/dd.xml: Connection refused
2021-10-17 09:30:10.756 [DEBUG] [rnal.transports.SonyTransportFactory] - Exception occurred creating transport: java.net.ConnectException: Connection refused
2021-10-17 09:30:10.757 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/dial/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@8a8ac8 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.758 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.758 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/audio, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@142a903 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.782 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/audio, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@244180 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.783 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.783 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/video, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@4c97f5 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.807 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/video, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1024ebc with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.808 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.808 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/avContent, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1d73d8a with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.835 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/avContent, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@4efde2 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.836 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.836 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/videoScreen, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@5c0836 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.861 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/videoScreen, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@aea932 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:10.862 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.862 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.862 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:10.863 [DEBUG] [web.protocols.ScalarWebLoginProtocol] - WOL packet is not supported - specify the IP address and mac address in config if you want a WOL packet sent
2021-10-17 09:30:11.198 [DEBUG] [web.protocols.ScalarWebLoginProtocol] - WebScalar System now connected
2021-10-17 09:30:11.630 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/webapi/ssdp/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1315c94 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:11.631 [DEBUG] [sony.internal.ircc.IrccClientFactory] - Querying IRCC client http://192.168.1.39:7579/sony/webapi/ssdp/dd.xml
2021-10-17 09:30:11.655 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:20.190 [DEBUG] [l.providers.sources.SonyGithubSource] - Ignoring update from github  - processing is disabled
2021-10-17 09:30:21.656 [DEBUG] [g.sony.internal.AbstractThingHandler] - Do reconnect for SONY XR-65A80CJ
2021-10-17 09:30:21.672 [DEBUG] [.internal.scalarweb.ScalarWebHandler] - Attempting connection to Scalar Web device...
2021-10-17 09:30:21.672 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/webapi/ssdp/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1ba2106 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.739 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/guide, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@132aa8 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.784 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Service guide doesn't contain switchNotifications - ignoring notifications
2021-10-17 09:30:21.785 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/guide, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@d39c7c with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.802 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/cec, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1a2b823 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.830 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/cec, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@71d01c with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.830 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:21.831 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/accessControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@6a4f32 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.870 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/accessControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@19e24b3 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.871 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:21.871 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/system, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@730491 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.899 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/system, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@6cb514 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.900 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:21.900 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/appControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@75cfe0 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.927 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/appControl, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1462644 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.928 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:21.928 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/encryption, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@1cd607b with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.951 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/encryption, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@136f857 with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.951 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client
2021-10-17 09:30:21.952 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/dial/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@707c4d with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:21.996 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Could not retrieve methods: Not Implemented
java.io.IOException: Not Implemented
        at org.openhab.binding.sony.internal.net.HttpResponse.createException(HttpResponse.java:244) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.ScalarWebResult.asArray(ScalarWebResult.java:237) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.api.SupportedApi.getSupportApiAlternate(SupportedApi.java:214) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.models.api.SupportedApi.getSupportedApi(SupportedApi.java:168) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebDeviceManager.<init>(ScalarWebDeviceManager.java:147) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebDeviceManager.create(ScalarWebDeviceManager.java:203) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.queryScalarWebSclient(ScalarWebClientFactory.java:212) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.get(ScalarWebClientFactory.java:103) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebClientFactory.get(ScalarWebClientFactory.java:80) ~[?:?]
        at org.openhab.binding.sony.internal.scalarweb.ScalarWebHandler.connect(ScalarWebHandler.java:327) ~[?:?]
        at org.openhab.binding.sony.internal.AbstractThingHandler.doConnect(AbstractThingHandler.java:137) ~[?:?]
        at org.openhab.binding.sony.internal.AbstractThingHandler.lambda$1(AbstractThingHandler.java:341) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]
2021-10-17 09:30:22.000 [DEBUG] [nal.scalarweb.ScalarWebDeviceManager] - Service dial/dd.xml doesn't contain switchNotifications - ignoring notifications
2021-10-17 09:30:22.001 [DEBUG] [al.transports.SonyWebSocketTransport] - Starting websocket connection to ws://192.168.1.39:10000/sony/dial/dd.xml
2021-10-17 09:30:22.006 [DEBUG] [al.transports.SonyWebSocketTransport] - Connection refused for ws://192.168.1.39:10000/sony/dial/dd.xml: Connection refused
2021-10-17 09:30:22.007 [DEBUG] [rnal.transports.SonyTransportFactory] - Exception occurred creating transport: java.net.ConnectException: Connection refused
2021-10-17 09:30:22.007 [DEBUG] [y.internal.transports.SonyAuthFilter] - Created SonyAuthFilter for host: 192.168.1.39, baseUri: /sony/dial/dd.xml, autoAuth: org.openhab.binding.sony.internal.transports.SonyHttpTransport$$Lambda$1197/0xb5977828@6b377f with initial authorization cookie: auth="";Version=1
2021-10-17 09:30:22.007 [DEBUG] [nternal.transports.SonyHttpTransport] - Closing http client

Unfortunately the log output isn’t very informative regarding the identification of the root cause of your issue. My suggestions/requests for further analysis are

  • Thing status error as displayed on the openHAB thing configuration page
  • Details of the thing configuration
  • Contents of thing capabilities file (should be found under userdata/sony/definitions/capabilities)

If the thing capabilities file exists, you can also try to directly access your TV via the url http://your_openhab_server:8080\sony, e.g. http://raspberrypi4:8080/sony.
The page offers the function to load the capabilities file and to select a method for issuing a request.

Example requests:

1.) No authentication required
Service: avContent
Command: getSourceList
Params: {"scheme":"tv"} (no authentication required’)

2.) Authentication required
Service: avContent
Command: getPlayingContentInfo

If you cannot find a capabilities file, you should still be able to use the page by editing the request fields. Getting a non-error response (e.g. [[{"source":"tv:dvbc"},{"source":"tv:dvbs"},{"source":"tv:dvbt"}]]would be a good indicator that the binding should in principle work with your TV.

If you are familiar with curl/REST, I could provide some more test queries in order to check if something has been broken in the version of your TV.

Capabilities folder is empty, so nothing on the openhabian:8080/sony page

I found the Sony page (backslash sony)…

Which version should I use?

If I use 1, I get a 500 error

Using the URL from the Thing page gives

Hi,

I’ve send you a PM with more information.

First of all, thanks for the continued development!

I believe this should be bundle:uninstall org.openhab.binding.sony, correct?

Thank you for spotting this typo which I’ve now corrected in the original post.

1 Like

hi,

I made an update to Openhab 3.2 and now I only get an error message on my TV Thing:
"Unhandled exception connecting to Scalar Web device (may need to turn it on manually): org.openhab.binding.sony.internal.ircc.models.IrccRoot"

then also did the update to Sony 3.1.1 but the error message remains. Can someone give me a hint what else I can do?

Thanks!

What was your last functioning OH/binding version combination and which OH3.2 version are you using?

@mjcumming: Your reported issue produces the same error message. Which OH version are you using (maybe I’ve overlooked this information)?

Hello,
thanks for the quick feedback. So last it was the 3.1 Stabel (updated the day before yesterday). Today I installed the 3.2.0 SNAPSHOT (#2534) and directly got the error message. Do I maybe just need to reinstall the TV as Thing concerns? Thanks!

You might try to clear the cache if not already done.

I any case I will test against the latest OH 3.2 version and will fix any issues that potentially might be caused by some breaking changes in the latest OH 3.2 versions.

Version 3.2M3

Cash emptying did not help.

I’ve found the root cause of the issue reported by @Sebastian1 and @mjcumming.
It is related to a recent dependency upgrade in OH 3.2 to the XStream 1.4.18 library that handles XML messaging for the IRCC service.

I’ve created a new binding version 3.1.3 which I hope will fix the issue
Release openhab-addons-sony-3.1.3 · andan67/openhab-addons (github.com)

@Sebastian1 /@mjcumming Please try this version and let me know if the issue is resolved for you.

Thank you for the quick help. Until everything works great and gives no error message.

Works great - thank you!!

I have successfully declared my Sony X8500E in the textual format as below:

// Things file
Thing sony:scalar:KD-55X8500E "Sony KD-55X8500E" @ "Livingroom" [ 
  deviceAddress="http://192.168.0.215:35224/sony/webapi/ssdp/dd.xml", 
  irccURL="http://192.168.0.215:35224/sony/webapi/ssdp/dd.xml", 
  accessCode="RQST" 
]

// Items file
Switch Livingroom_TV_Power "Power [%s]" <switch> (gLivingroom_TV) { channel="sony:scalar:KD-55X8500E:system#powerstatus" }
String Livingroom_TV_IRCC_Command "IRCC Command" (gLivingroom_TV) { channel="sony:scalar:KD-55X8500E:system#sysCmd" }
Dimmer Livingroom_TV_Volume "Volume [%d]" <soundvolume> (gLivingroom_TV) { channel="sony:scalar:KD-55X8500E:audio#volume-speaker" }

Now I can turn the TV on/off and adjust the volume, but I don’t know how to switch the inputs (HDMI1, HDMI2, TV…). Can someone tell me how to do that please?

The input can be selected by setting the playing content in form of an uri that denotes the (physical) type of input source and further parameters like HDMI port or tv channel.

There are various channels that allow setting the content uri and thus switching the input:

avContent#tm_source-main

This channel can be used to directly switch to a specific input source. It internally holds state options for all avaiblable input sources along with title name if available (used as UI labels). Examples state values are:

extInput:hdmi?port=1 (HDMI 1)
extInput:scart?port=3 (AV)
tv:dvbs

avContent#cn_cmd select

This channel command selects the content (uri) defined by a browing process through the channels: avContent#cn_parenturi, avContent#cn_childcount, avContent#cn_idx, avContent#cn_uri as follows:

  • Set the of main type of the source (the parent uri) through the channel avContent#cn_parenturi (e.g. tv:dvbs, extInput:hdmi)
  • The channel avContent#cn_childcount will show the number of contents (channels, ports) for this source
  • The desired content can be set by a (0-based) index through avContent#cn_idx
  • avContent#cn_uri will then show the uri for that index
  • Sending select command to avContent#cn_cmd will actually switch to the selected content (e.g. extInput:hdmi?port=1for the HDMI 1 port

avContent#ps_channel-{tv_source}

These are preset channels for the various tv sources that allow an easy switching to tv channels (plus filtering and ordering options) that are preset.

I hope this info helps to get started. Please also have a look into the README file for the scalar service which provides much more details (see new documentation section in initiial post).

1 Like