Sony Devices Binding

On vacation right now - will get back to you all on monday. Logs like the above would be muchly appreciated.

Jonas88 - I’m assuming you are using the IRCC service? The webscalar is the next generation protocol and provides much more control than the IRCC. The difference is that the scalar thing will dynamically create a bunch of channels - look in the log or in paperui to see which channels are created.

Hi! it is working now. Even the Scalar Server (got my amazon app up and running :wink: )
I am not using ircc. i am using the scalar thing you provided and now everything works like charm

enjoy your vacation and don’t browse the internet too much :wink:

Hi,

Thank you for reply.

  1. I have found Scalar-xx.map and SimpleIP-xx.map files.
    I can now send IRCC command from Scalar (previously it was stuck not opening where to input “AAA” commands).
    How to have embedded AAA commands into a button? My goal is to have dedicated buttons for Up, Down, Left, Right.

image

  1. Now to Volume control in scalar. It was working, then it stuck, and I could not edit Item, after restarting RPi its gone.
    I cant find it in Things section either. See picture. It was there at the beginning of the list.
    Where is it gone? How to look for it? Do I need to reinstall Scalar binding to get it back?


  1. I did create it, and other Items like follows:

Clicked Link Item and created new one (adding nothing):

image

So then, when I go to Items:
image

It appears like you saw Volume before.
image

Then I press Edit, and give it a understandable name. That is why awful string is not visible there.
Do I do it in correct order?

Hi tmrobert8,
I tried your binding and some basic stuff is already working. I can turn off my TV (BRAVIA KDL-60W605B from 2014) and control and mute volume. But sometimes it works unreliable and doesn’t recognize any commands. I just used the SCALAR channels.
Here are a few notes:

  1. After the TV was turned off and power cut a lot of Host unreachable messages were thrown in the log. The device also stayed Online in PaperUI
2017-09-06 03:14:32.594 [ERROR] [ome.core.thing.link.ThingLinkManager] - Exception occurred while informing handler:java.net.NoRouteToHostException: No route
 to host (Host unreachable)
javax.ws.rs.ProcessingException: java.net.NoRouteToHostException: No route to host (Host unreachable)
        at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:287)[157:org.glassfish.jersey.core.jersey-client:2.22.2]
        at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)[157:org.glassfish.jersey.core.jersey-client:2.22.2]
        at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:684)[157:org.glassfish.jersey.core.jersey-client:2.22.2]
        at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:681)[157:org.glassfish.jersey.core.jersey-client:2.22.2]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:228)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)[158:org.glassfish.jersey.core.jersey-common:2.22.2]
        at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:681)[157:org.glassfish.jersey.core.jersey-client:2.22.2]
       ...
  1. Is there a possiblity to show notification messages on the screen? I’ve seen that there is a “notification” service type for scalar, maybe this is what I was looking for?
  2. Do you think about publishing your binding on the Eclipse IoT Marketplace?
  3. There are a few more Errors and Exceptions in the log, do you want the whole logfile or just the interesting part?

Thanks for all your efforts!

Ozzy

Where does this long channel name come from?

Switch sonyPower "Virta" {channel="sony:scalar:03ef1f3a-98e3-4035-8350-a58ba4ed623e:system-powerstatus"}

Could the “:03ef1f3a-98e3-4035-8350-a58ba4ed623e” part only be tv’s mac address?

@Jankie_Dizzle you just need to download the binding and put it into your addons directory. You can find it near the bottom of https://github.com/openhab/openhab2-addons/pull/1249

@gitMiguel when - lotsa good information. I’ll take a look and get back to you…

@Jonas88
Glad to hear it’s working for you!

That’s the UUID that the device provides me. Unfortunately alot of the devices will not give me a MAC address to work with but UUID is always available. That’s why I use that. I’ll look into possibly using the MAC instead when I have one…

@Justas

  1. You can simply create a button that sends “Up” to the IRCC command channel (or whatever is shown in the .map file). The IRCC channel will take that string, look into the .map file and translate it to the appropriate “AAA…” command to send to the TV.
  2. Volume - you’ll need to turn on debug for the binding and give me some log files to be able to tell what’s going wrong.
  3. Hmm - the channels are dynamically recreated everything you restart the binding - I wonder if providing a linkage name breaks under that. Again, a debug log would help there.

@OzZy_HH

  1. Yep - that’s something I still need to take care of (life cycle management). That will be fixed eventually.
  2. Somewhere in the log - it should show the API for the notification service. Can you post that for me to see?
  3. Eventually yes - it’s not ready enough yet.
  4. Just the interesting parts - I’ll ask for more if I need it…

i had the issue that some commands were not working (volume, mute etc.) but i deleted the tv and added it again and it solved the problem.
i also noted that if i deactivate too many channels openhab crashes.

does it update the list automatically?
i installed spotify and it did not show up. do i have to restart openhab / the tv, both?

regards

i created buttons too for string commands (ircc) it works great! here is a list:

Ok I successfully installed binding in a fresh 2.1.0 install… Im stuck with a non specific communications error which I’m assuming is in the handshake procedure… Did anyone ever hear back if “bartus” ever got his 1060 working?

That’s the UUID that the device provides me. Unfortunately alot of the devices will not give me a MAC address to work with but UUID is always available. That’s why I use that. I’ll look into possibly using the MAC instead when I have one…

If I remember correctly the first part of the UUID is my tv’s mac address. I’ll confirm this as soon as I get a chance.

 “**03ef1f3a-98e3**-4035-8350-a58ba4ed623e”

Edit:
Just checked this and remembered totally wrong. The above 03ef… is not the mac address of my tv.

Hi,

have you implemented the IR Codes in SimpleIP mode?

Just fired up the Sony binding on my Bravia 2015, working a treat, I now have a power switch which both activates the TV and more importantly, reflects the TV state so I can use turning the TV on as a trigger. Excellent. I have no idea what use the other channels will be to me yet as I’ve yet to really investigate but as the TV is essentially only really used for Plex and a PS4, that’s probably enough for me already. Thanks for the work so far.

Hi!

Over time i am getting more and more issues.
i don’t know where to search for a solution.
it does take a very long time to get the actual status of my power for example.
i am using this in a rule to power my speakers so it’s really annoying.
if i send the command power on it’s working instantly.

can you please help me?

Hi! I am back from holiday now. my openhab server was running now for 10 days without any problems (i can still control everything) but the binding got stuck.
is there a way to restart the binding from time to time so it is more stable? did you maybe release an update or do you plan to?

maybe it’s my tv …

what changes did you make in the settings of your tv to make it run smoothly?

EDIT:
After i deleted the TV and added it again, it worked. But the Token is still set to RQST. Where can i see the token to add it manually (maybe it’s more stable then)