Sony Devices Binding

good evening,
can´t help anyone here? I would like to use this binding.
Why does the binding lose the mac address every time?

edit: if the thing is offline and enter the mac address, the TV goes on automatically and the mac address is lose again
then i try to control the TV via IRCC, for example volume up, the following message appears in the log:
`2019-11-04 20:33:13.912 [ERROR] [ding.sony.internal.ircc.IrccProtocol] - Bad return code from X_SendIRCC: 500 (<s:Envelope xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/” s:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance/” xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>

<s:Body>

    <s:Fault>

        <faultcode>s:Client</faultcode> 

        <faultstring>UPnPError</faultstring> 

        <detail>

            <UPnPError xmlns="urn:schemas-upnp-org:control-1-0">

                <errorCode>606</errorCode>

                <errorDescription>Action not authorized</errorDescription>

            </UPnPError>

        </detail>

    </s:Fault>

</s:Body>

</s:Envelope>)`

Alright - just swinging back to this now…

@andirs - maybe next week I can get a new version out
@monopohl - is this still an issue for you?
@scorpion83 - I’m pretty sure the next version fixes this
@vanja - the maps should appear in the conf/transform and it’s a bug that it overwrites the map name. Should be fixed in the next version however (the map name overwrite that is)
@JohnnyX - give it a try but I don’t think beamer implement any of this. However, there is a sony beamer addon that you could hopefully use (look for it on github or the latest snapshot)
@skydiverscott - should be supported - have you given it a try?
@winni - your tv must be deactivating the ethernet port when off. Look around in power settings or network settings (I forget the name of the setting that says to keep the ethernet port powered).
@winni - the mac address replacement will be fixed in the next version but mac address should only be used to power on the tv - everything else should work once powered on.

1 Like

Hi @tmrobert8,

thanks for your answer. binding works so far. Unfortunately the binding does not find a simple ip. If I enter it manually, it won’t work online. At the moment I use ircc. Maybe someone has an example for the sitemap, because I can’t solve it properly with VolumeUp and Down via a switch.

i can pre test again if you want me to.

Hi @Jonas88,

what do you want to test?

simple ip or an example for the sitemap?

@winni
For simple ip - it’s easy to see if your TV supports it or not (assuming you found the menu option to turn it on). Bring up a console somewhere and do the following:

telnet  (ipaddress) 20060

(use netcat if on linux). If this doesn’t connect, then your TV doesn’t have simple ip enabled (OR it’s not capable of simpleip).

If it does connect, try the following (power on tv command):

*SCPOWR0000000000000001

(include the * and hit enter after you’ve typed it - change the 1 to a 0 if you want to test power off).

As for volume up/down - I really need to see not only the response but the request before it (preferably the whole sony log [see first post how to narrow it down to just the sony stuff])

Hey @tmrobert8,

do I simply enter SCPOWR000000000000000001 into the console?

Louder and quieter works with VolumeUp and VolumeDown.
It just can’t be displayed so nicely in the sitemap. I created a String item IRCC command over the channel and in the sitemap a switch with mappings that looks like this:

Switch item= IrccCommand mappings=[VolumeeDown=“Down”, VolumeUp=“Up”]

Unfortunately I can’t switch the switch properly without rule.

Maybe there is a better solution that I don’t know yet.

Enter *SCPOWR0000000000000001 into the console (the asterisk is important)

When I enter telnet (ipaddress) 20060,
there’s a connection but I can’t make an entry.

Just a status update - I’ve almost got the next version tested. Unfortunately I leave on vacation tomorrow until sunday - so either I will release it today (doubtful) or will release it next week.

2 Likes

hmm - I’ll test a bit around this but it really sounds like your TV has some simple ip issue (might simply be a corruption issue in the firmware). Have you tried doing a full power down (unplug for about 15 minutes) and if that doesn’t work, maybe factor reset on it (that may clear out the issue)? Likewise, I’d check to see if you are running the latest firmware on it from sony…

Does anyone have a thing definition?

I do not, since i can’t. My discovery port changes regularly so a static thing definition via text file is not possible for me because the thing will go offline as soon as my TV changes the discovery port. @tmrobert8 was thinking about a solution described in his post here but i am not sure if this fix will come in the version he intended to release this week?!

Yeah - the port thing I haven’t figured out yet (what I’d like to do is just point to an ip address and have the addon figure everything out - but that’s a fairly big step). I still hope to release this week but am not positive on that yet - I’ll let you all know later.

I turned off the device and reset it. The latest software is installed. Unfortunately the binding does not find a simple ip. Could it be that it is a port problem?

Don’t know - I’ll be testing with mine later today and will get back to you

New release is definitely not happening this week. Still have quite a few issues that have popped up that I’m trying to address…

Hey - I can use a few of the international people help. If you have a TV - do the following:

  1. Bring up the sony page: https://yourpaperuiip:8080/sony (change port if different also). Example: http://localhost:8080/sony. EDIT: if you are on 2.4 - I think it’s https://yourpaperui:8080/sony/index.html
  2. On the definitions page - fill in the following (these are case sensitive):
    a. BaseURL: http://sonytvipaddress/sony. Example: http://192.168.1.104/sony
    b. Transport: http
    c. Service: avContent
    d. Command: getSourceList
    e. Version: 1.0
    f. Parms: {"scheme":"tv"}
  3. Press the “Execute button”

In the results box- you should see something like:
[[{"source":"tv:analog"},{"source":"tv:atsct"}]]

Let me know if you have anything OTHER than tv:analog or tv:atsct. I’m assuming we’ll find stuff related to DVB-T or ISDB-T - what I need to know is how sony is representing those standards (like NTSC = tv:analog, ATSC = tv:asct)

NOTE: ONLY DO THIS IF YOU ALREADY HAVE THE ASSOCIATED TV ONLINE IN OPENHAB - if it isn’t online, this will not work

I’ll need to know this information to have a better release next week…

Thanks,
Tim

Here my output:

[[{"source":"tv:dvbt"}]]

Here my getSystemInformation()

  "result": [
    {
      "product": "TV",
      "region": "XEU",
      "language": "ger",
      "model": "KD-49XD7005",
      "name": "BRAVIA",
      "generation": "5.2.0",
      "area": "DEU",
    }
  ]
1 Like

@andirs THANKS!

For others - only post if you have something other than analog, atsct and dvbt