Sony Devices Binding

@igi

Sorry it took me a bit to reply. Make sure your refresh parameter is a non-zero (and something reasonable - it’s specified in seconds). Basically with TVs - the values will only be updated on a refresh…

If you do have a good value, I’ll likely need a debug log from you to see what’s happening…

Tim

Refresh interval ist set to 30. I will prepare the system for debugging…

New release (also updated the first post): https://github.com/tmrobert8/openhab-addons/releases/tag/2.5-0413-1

Fixes:

  1. A rather glaring bug in refreshing state. In fact, so glaring I completely overlooked it. Thanks to @igi, @Nils_Rietveld and @11178 for noticing the issue…
2 Likes

Thank you @tmrobert8, it works now

Is it possible to display the title being played on Prime, Netflix and Google Play? There are some channels like title or data (in addition to status and icon) but no iformation. Should the channel display the information or do I get it wrong?

1 Like

Unfortunately no - the title is the title of the application (should have said “Netflix” or “Amazon Prime” etc) and data is part of the DIAL standard but looks to be unused by sony (was suppose to be a way to launch an application with specific data - like “launch netflix with data ‘walking dead’” to go to content directly - something you see apple tv doing).

That is really a pity.
But it seems to be possible to launch an application from outside, like “Play Walking Dead on Netflix” from my Google Home. Then Netflix is startig on TV and launch Walking Dead. Works also with Youtube vidos. I’m just not able to start Google Play but maybe i haven’t figured out the right command yet.

Interesting - if you’re any good with wireshark, be interesting to see the http traffic between google home and your sony tv when it launches with a specific title…

Sure. Any idea how to do that? I have a TL-SG105E tp-link switch. Here is TV connected, also Linux PC with OpenHAB and Unifi AP AC Pro. Google Home is connected to Unifi. How to capture in this scenario?

You’d need to wireshark over ssh to your router (kinda like https://kaischroed.wordpress.com/2013/01/28/howto-use-wireshark-over-ssh/). Won’t be easy and unless you know what you’re doing - fraught with potential issues. Let me know if you’re successful

Ok, I was able to capture with tcpdump on AP but the communication seems to be encrypted.

thanks for fixing that. i used the power status update to trigger lighting routines (going to bed, turn on lights on the way to the bedroom) and it was sorely missed.

Could it be possible as part of the Binding code to give IDs to each App and get a Channel that shows which App is currently on and can launch the correct App?

Of course it could also be done in a rule outside of the binding. But would be great to have inside :slight_smile:

@SpaceGlider

Unless I misunderstand you - both DIAL and SCALAR already give you this (with the exception of the status - the channels are there for the status but sony’s broke that ability awhile back).

New Release: https://github.com/tmrobert8/openhab-addons/releases/tag/2.5-0420-1

Changes:

  1. Changed to 2.5.5 (supports all 2.5.x systems)
  2. Added new volume support for NON-SONY AVRs/Soundbars using HDMI/CEC/ARC (thanks @11178)

Support for HDMI/CEC/ARC…
Please view the scalar README (first post) for details. Essentially, if you set a specific volume let and you have a non-sony AVR/Soundbar - the volume would only increase/decrease by 1 due to HDMI/CEC protocol. This version adds support to issue multiple increase/decrease command to get to the proper volume level.

Note that this logic is DISABLED by default (as it causes Sony AVRs/soundbars issues) - the scalar README will show you how to enable this logic and customize it (detection and timings).

1 Like

I’m using SCALAR and I have added all items of all channels, but I do not see one where it shows me the name of the app currently in use. Could you point me out which one it is?

I have a KD49XF9005, latest firmware.

@SpaceGlider as I said in the response, sony broke it’s implementation so it’s impossible to determine the status of any app (and thus impossible to get what is current in use). The API is there, we call it just fine but sony’s firmware always will return false (been broken for about 3 years now). Basically look for any of the app channels - you’ll see a “status” version that would be true or false. Unless you had a really, really old firmware - they will all be false because sony broke the api (both on dial and scalar)

Ah I misunderstood. Well then lets hope Sony fixes this in a SW Update! Thanks!

Hi

Thank you for the great binding. At this moment, I try to debug an other binding, and I found a few error message from this binding. I don’t know if this are normal errors. (The binding work)emby.log (249.4 KB)

What version of OH are you running?

That build of the binding looks recent so may not work with an older version of OH.

bundle org.openhab.binding.sony:2.5.5.202004201157 (269)[org.openhab.binding.sony.internal.SonyHandlerFactory(336)] :  Error during instantiation of the implementation object
java.lang.IllegalArgumentException: argument type mismatch