Sony Devices Binding

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

Only contains reviewer changes:

  1. Some refactoring of the code
  2. Most importantly - a few potentially (very small chance however) of endless loops

Let me know if you have any issues…

Why OH 2.5.1-2 does discover only Scalar Web things?

There was a change and the addresses in part

central.maven

should be replaced by

search.maven

e.g.

bundle:install http://search.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar

That’s the preferred service and I’d rather people start using it as the others will slowly go away. You can reenable the other discoveries (see the README)

Thanks - I’ll update the post

1 Like

hello,

i had the Sony BDV-N7200W.

i installed the binding and he founds the the BDV player. but now my question how can I control audio volume or HDMI ? there is no channel with this info?

I want to use it with my Alexa

thx

The BDV-7200 series has very limited scalar support (a few system preferences if I remember). I recommend also using IRCC and DIAL services. IRCC will allow you to send remote presses (allowing you to control the volume and inputs - basically anything your remote can do) and DIAL will allow you to start installed applications directly.

1 Like

special thx for your reply and work.

perhaps can you help me ?
how must I configure the IRCC ?

in tried in paperui to add manually a IRCC device, but he wants a “Ircc URL”, only the ip of the device don’t works.

or must I do it a other way?

Special thx to you

Take a look at the readme (link in first post) to see how to enable discovery for the other services (and remember to turn the device on prior to doing a discovery). If that still doesn’t work - I’ll need to see some log files…

1 Like

okay now he founds it, he says in paperui I had version 1.3

then I restarted the openhabian, but I don’t have any .map file under “openHAB-conf/transform/”
the thing is ONLINE

he don’t create a file.
what can I do?

Check the configuration - there should be a map config item. If it’s empty - put one in (no path - just a name like ‘ircc.map’. If it is not empty - like a permission issue (whatever is running openhab has to have write permission to that directory). I don’t use openhabian so I can’t help you on that one…

under settings of the IRCC is

Discovered Commands Map File (READONLY)
ircc-38184c6178cc.map

but I can’t find this file anywhere.

then I add by

Commands Map File
test.map

and restarts, but he don’t creates any file, but openhabian is there not the problem, all of my other stuff works well with the transform folder.

perhaps any ideas ?
i test it here since over 4 hrs and now this … :frowning:

I’m guessing it’s a permission issue then. I’d turn debug on for sony (see first post again), then restart openhab. Search the resulting log file for ‘test.map’ and you should see debug messages stating where it’s writing it to and any issues it had…

1 Like

hey

I check the log there is nothing about test.map, and nothing about .map

here the log file
https://paste.kodi.tv/kuquqative.kodi

EDIT
i installed the map transformation, now I had the file with the commands in it.

Yep - I should have thought about that. I’ll add that to the readme file (that the map transformation is needed for support)

From you log file - this was the important line:

20-Feb-2020 16:30:17.691 [DEBUG] [rg.openhab.binding.sony.internal.ircc.IrccProtocol] - No MAP transformation service - skipping writing a map file

BTW - if you install scalar, you’ll get power switch, sound settings, illumination settings as well

1 Like

yeah now I had 2 map files, first test.map and scalar-38184c6178cc.map.

I make 2 items

String SCAR_Command "Command [%s]" { channel="sony:scalar:38184c6178cc:system#sysCmd" } 
String IRCC_Command "Command [%s]" { channel="sony:ircc:38184c6178cc:primary#command" }

then I make in my habpanel 2 buttons, one with scalar and one with the IRCC command item. I test both, with “VolumeUp” but the volume doesn’t change.

here is the log where I press the two buttons

https://paste.kodi.tv/xuhiwacime.kodi

is it because I get a 403 error?
403 (http reason: Forbidden)

under my thing there stands
Registration Mode 3 , is this the preshared key method?

the problem is my player don’t has the setting to configure the authentification method under settings.
I searched for a hour but I don’t find anything in the player.

perhaps you have a idea?

THX

Thanks for the log - yours is responding slightly differently to detecting whether registration is needed or not. Give me a day and I’ll create a fix for it…

1 Like

this would be perfekt. thank you

Hey tmrobert8

don’t want to stress you or annoy you.

but maybe you have already found something?

Still working on it - I’ll probably be sending you a PM with a testing version soon…

1 Like

okay great, I test immediately