Sony Bravia plugin seems to be broken with Indigo 7.0

Posted on
Fri Dec 09, 2016 7:44 pm
brianlloyd offline
User avatar
Posts: 226
Joined: May 26, 2013
Location: San Antonio, TX, USA

Sony Bravia plugin seems to be broken with Indigo 7.0

From the log:

Sony Bravia Network Remote Plugin Debug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkPlugin.py", line 1153, in executeAction
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkIndigoAction.py", line 154, in generateActionCommands
TypeError: range() integer end argument expected, got float.


Library mismatch?

Posted on
Fri Dec 09, 2016 10:00 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

What version of the plugin are you running?

Posted on
Fri Dec 09, 2016 10:02 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

Never mind, I see that I never officially released the temporary version that fixes that... download it here:
https://github.com/RogueProeliator/IndigoPlugins-Sony-Network-Remote/archive/v2.3.1.zip

I think I updated to full I7 / Python 2.7 compatibility but haven't checked that in yet. I'll try to do that this weekend.

Posted on
Fri Dec 09, 2016 10:21 pm
brianlloyd offline
User avatar
Posts: 226
Joined: May 26, 2013
Location: San Antonio, TX, USA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

Aha! It works again! Thank you!

Posted on
Fri Dec 30, 2016 7:44 am
JaceJenkins offline
Posts: 50
Joined: Oct 16, 2015

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

I can get this paired with my TV just fine. I see it in Remote Devices. But when I try to initiatiate control, I get these errors:

Code: Select all
Sony Bravia Network Remote Plugin Debug Processing SOAP/JSON operation to http://192.168.1.246:80/sony/IRCC
   Sony Bravia Network Remote Plugin Debug Sending SOAP/JSON request:
<?xml version="1.0" encoding="UTF-8"?>
                  <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
                     <SOAP-ENV:Body>
                        <m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1">
                           <IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">AAAAAQAAAAEAAAASAw==</IRCCCode>
                        </m:X_SendIRCC>
                     </SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
   Sony Bravia Network Remote Plugin Error An error occurred processing the SOAP/JSON POST request: (Device: 1630289138): 500
   Sony Bravia Network Remote Plugin Error Error in plugin execution:


Also if I edit my TV Device, I start getting these errors until I reload the plugin

Code: Select all
 Sony Bravia Network Remote Plugin Debug Received an authentication command, attempting connection
   Sony Bravia Network Remote Plugin Debug Sending Auth Request: {"id":13, "method":"actRegister", "version":"1.0", "params": [{"clientid":"DuncanwareRemote:34c43339-af3d-40e7-b1b2-743331375368c", "nickname":"DuncanwareRemote (IndigoPlugin)"}, [{"clientid":"DuncanwareRemote:34c43339-af3d-40e7-b1b2-743331375368c", "value":"yes", "nickname":"DuncanwareRemote (IndigoPlugin)", "function":"WOL"}]]}
   Sony Bravia Network Remote Plugin Debug Response to Auth Request: [200] [('set-cookie', 'auth=77656F84C08158B45DFE641521FF83EDB0DCBCA8; Path=/sony/; Max-Age=1209600; Expires=Fri, 13 Jan 2017 03:54:00 GMT+00:00'), ('content-length', '21'), ('content-type', 'application/json'), ('connection', 'close')]

{"result":[],"id":13}
   Sony Bravia Network Remote Plugin Debug Obtained Auth Cookie: auth=77656F84C08158B45DFE641521FF83EDB0DCBCA8
   Sony Bravia Network Remote Plugin Debug Entering deviceStopComm for Sony 4k - 75inch; ID=1630289138
   Sony Bravia Network Remote Plugin Debug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
   Sony Bravia Network Remote Plugin Debug Initiating shutdown of communications with Sony 4k - 75inch
   Sony Bravia Network Remote Plugin Error Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoPluginHost.app/Contents/PlugIns/plugin_base.py", line 1172, in deviceUpdated
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkPlugin.py", line 638, in deviceStopComm
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkDevice.py", line 142, in terminateCommunications
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkThread.py", line 88, in terminate
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkThread.py", line 82, in raise_exc
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkThread.py", line 37, in _async_raise
ValueError: invalid thread id


Any help is appreciated. Great Plugin!

Posted on
Fri Dec 30, 2016 8:38 am
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

What versions of Indigo and the plugin are you running? That first block doesn't show any of the error details, seems to cut off before the error itself. You may need to turn on debug (or turn it up a bit higher) to get any additional details.

Posted on
Fri Dec 30, 2016 8:53 am
JaceJenkins offline
Posts: 50
Joined: Oct 16, 2015

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

Im running 7.02. I have debug on high.

Here it is again, when I try to control the volume:

Code: Select all
Action Group                    Living Room TV - Volume Up
   Sony Bravia Network Remote Plugin Debug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
   Sony Bravia Network Remote Plugin Debug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
   Sony Bravia Network Remote Plugin Debug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
   Sony Bravia Network Remote Plugin Debug Command queue has 1 command(s) waiting
   Sony Bravia Network Remote Plugin Debug Received SOAP/JSON command request:
                  /sony/ircc
                  urn:schemas-sony-com:service:IRCC:1#X_SendIRCC
                  <?xml version="1.0" encoding="UTF-8"?>
                  <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
                     <SOAP-ENV:Body>
                        <m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1">
                           <IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">AAAAAQAAAAEAAAASAw==</IRCCCode>
                        </m:X_SendIRCC>
                     </SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
                  
   Sony Bravia Network Remote Plugin Debug Processing SOAP/JSON operation to http://192.168.1.246:80/sony/ircc
   Sony Bravia Network Remote Plugin Debug Sending SOAP/JSON request:
<?xml version="1.0" encoding="UTF-8"?>
                  <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
                     <SOAP-ENV:Body>
                        <m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1">
                           <IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">AAAAAQAAAAEAAAASAw==</IRCCCode>
                        </m:X_SendIRCC>
                     </SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
   Sony Bravia Network Remote Plugin Error An error occurred processing the SOAP/JSON POST request: (Device: 1630289138): 500
   Sony Bravia Network Remote Plugin Error Error in plugin execution:

None


Thanks again

Posted on
Fri Dec 30, 2016 9:02 am
JaceJenkins offline
Posts: 50
Joined: Oct 16, 2015

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

If it matters, I have a XBR-75X850D running PKG3.531.0108NAB version of the software

Posted on
Thu Jan 12, 2017 11:53 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

Sorry for the delay - I had this flagged and completely forgot about it after a reboot which closed my saved tabs :-(

From the previous post, the first thing to do is try the latest version of the plugin... it is a beta version but been fine:
[ur]https://github.com/RogueProeliator/IndigoPlugins-Sony-Network-Remote/archive/v2.3.1.zip[/url]

This eliminates, at a minimum, one of the errors you were seeing -- then we can tackle the other if it persists with this latest plugin version.

Adam

Posted on
Sun Jan 15, 2017 10:53 am
Shutter offline
Posts: 345
Joined: Mar 07, 2014
Location: London, UK

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

FYI - I'm running 2.3.1 and I can't get it to work either.

Get this error when I load the plugin:
Code: Select all
   Sony Bravia Network Remote Plugin Error exception in deviceStopComm(AV - Sony Bravia 4K TV): invalid thread id


And this when I try to send a command:
Code: Select all
Sony Bravia Network Remote Plugin Error An error occurred processing the SOAP/JSON POST request: (Device: 627899879): 500
   Sony Bravia Network Remote Plugin Error Error in plugin execution:

None


When you have time let me know if there's anything I could do to try and debug the issue.

Thanks,

Simon

Posted on
Mon Jan 16, 2017 10:48 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

I have not experienced any of these and am unable to duplicate... but I am running with some slightly updated and improved code. SO, I have just released v2.4.0 -- would you guys experiencing problems please pull down that version and we shall debug from there if it is not fixed.

https://github.com/RogueProeliator/IndigoPlugins-Sony-Network-Remote/archive/v2.4.0.zip

Adam

Posted on
Tue Jan 17, 2017 10:04 am
brianlloyd offline
User avatar
Posts: 226
Joined: May 26, 2013
Location: San Antonio, TX, USA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

OK, I was working but just last night I noticed that I was not able to control some of my TVs. I installed V2.4.0 and now cannot pair to most of my TVs but can pair and control one of them. One of my TVs is older an not running Android. The non-Android TV is the one I can still control.

I seem to be seeing the same thing Simon was seeing.

So, let's start with pairing to one of the offending TVs:

Sony Bravia Network Remote Plugin Threaddebug Received an authentication command, attempting connection
Sony Bravia Network Remote Plugin Threaddebug Sending Auth Request: {"id":13, "method":"actRegister", "version":"1.0", "params": [{"clientid":"DuncanwareRemote:34c43339-af3d-40e7-b1b2-743331375368c", "nickname":"DuncanwareRemote (IndigoPlugin)"}, [{"clientid":"DuncanwareRemote:34c43339-af3d-40e7-b1b2-743331375368c", "value":"yes", "nickname":"DuncanwareRemote (IndigoPlugin)", "function":"WOL"}]]}
Sony Bravia Network Remote Plugin Threaddebug Response to Auth Request: [200] [('set-cookie', 'auth=CA59D707252F2B0D82B3302E5A36148AB8AA7EC1; Path=/sony/; Max-Age=1209600; Expires=Tue, 31 Jan 2017 16:00:53 GMT+00:00'), ('content-length', '21'), ('content-type', 'application/json'), ('connection', 'close')]

{"result":[],"id":13}
Sony Bravia Network Remote Plugin Debug Obtained Auth Cookie: auth=CA59D707252F2B0D82B3302E5A36148AB8AA7EC1
Sony Bravia Network Remote Plugin Debug Entering deviceStopComm for TV-Office-bench; ID=1472374932
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Debug Initiating shutdown of communications with TV-Office-bench
Sony Bravia Network Remote Plugin Debug Command thread ending processing
Sony Bravia Network Remote Plugin Debug Shutdown of communications with TV-Office-bench complete
Sony Bravia Network Remote Plugin Debug Exiting deviceStopComm for TV-Office-bench
Sony Bravia Network Remote Plugin Debug Entering deviceStartComm for TV-Office-bench; ID=1472374932
Sony Bravia Network Remote Plugin Debug Concurrent Processing Thread started for device 1472374932
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:updateStatusPollerIntervalProperty
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:updateStatusPollerActionId
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:emptyQueueReducedWaitCycles
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:databaseConnectionEnabled
Sony Bravia Network Remote Plugin Threaddebug Database access enabled:
Sony Bravia Network Remote Plugin Threaddebug Database access has been disabled, skipping connection
Sony Bravia Network Remote Plugin Threaddebug Command queue has 1 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Create connection command de-queued
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:updateStatusPollerStartupDelay
Sony Bravia Network Remote Plugin Threaddebug Command queue has 2 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Initiating sleep of 3.0 seconds from command.
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Debug Exiting deviceStartComm for TV-Office-bench
Sony Bravia Network Remote Plugin Threaddebug Command queue has 1 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Ignoring status update request, no action specified to update device status

Now let's issue a command to turn the TV off.:

Jan 17, 2017, 10:02:37 AM
Action Group Office TV Bench off
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Command queue has 2 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Received SOAP/JSON command request:
/sony/IRCC
urn:schemas-sony-com:service:IRCC:1#X_SendIRCC
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1">
<IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">AAAAAQAAAAEAAAAvAw==</IRCCCode>
</m:X_SendIRCC>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Sony Bravia Network Remote Plugin Debug Processing SOAP/JSON operation to http://172.16.48.32:80/sony/IRCC
Sony Bravia Network Remote Plugin Threaddebug Sending SOAP/JSON request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1">
<IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">AAAAAQAAAAEAAAAvAw==</IRCCCode>
</m:X_SendIRCC>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sony Bravia Network Remote Plugin Error An error occurred processing the SOAP/JSON POST request: (Device: 1472374932): 500
Sony Bravia Network Remote Plugin Threaddebug Command queue has 1 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Received SOAP/JSON command request:
/sony/IRCC
urn:schemas-sony-com:service:IRCC:1#X_SendIRCC
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1">
<IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">AAAAAQAAAAEAAAAvAw==</IRCCCode>
</m:X_SendIRCC>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Sony Bravia Network Remote Plugin Debug Processing SOAP/JSON operation to http://172.16.48.32:80/sony/IRCC
Sony Bravia Network Remote Plugin Threaddebug Sending SOAP/JSON request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1">
<IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">AAAAAQAAAAEAAAAvAw==</IRCCCode>
</m:X_SendIRCC>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sony Bravia Network Remote Plugin Error An error occurred processing the SOAP/JSON POST request: (Device: 1472374932): 500

Hopefully that helps you.

Brian

Posted on
Tue Jan 17, 2017 11:11 am
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

Brian:

From the debug it looks like you successfully paired that TV -- is this the one you said was expected to still pair? What is interesting is that the pairing code hasn't been touched in a LONG time, definitely not in the last 3 or more versions of the plugin.

Have you deleted/re-created any of these devices? Just wondering what possibly could have changed. I may need to add a couple of more logging statements and have you update to get some more detail.

These Sony's have been a PITA to code/debug remotely as there is little consistency in operation TV to TV. Seems like the big corporations could use just one freaking programmer to oversee all their embedded APIs -- these feel like the applications I used to have to fix after electrical engineers wrote crappy code they played off as "programming".

Posted on
Tue Jan 17, 2017 11:31 am
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

One other thing, do your TVs show in the list when editing a device (in the drop down of devices found)? If so, try selecting it and clicking the button to use that device... see if the path to the service happens to change.

Posted on
Tue Jan 17, 2017 12:43 pm
brianlloyd offline
User avatar
Posts: 226
Joined: May 26, 2013
Location: San Antonio, TX, USA

Re: Sony Bravia plugin seems to be broken with Indigo 7.0

Starting from the beginning, no, I haven't recreated my devices for a long time. I think I am at least 3 versions on of the plugin since I created the devices. I would estimate it has been about 6 months.

As for which one, I worked with one of the TVs that I cannot get to work, i.e. one that throws an error when I try to communicate with it. I figured the one that is working is much less interesting than one that is not.

When I bring up one of the devices by clicking on it in the devices pane, the device pops up (working with one I have labeled TV-GBR in the guest bed room), and I can click on "Edit Device Settings". When I do that and click on "Devices Found", nothing shows up. But I think that has always been the case. I have always had to manually insert the IP address and MAC address of each device. All of my TV's have fixed IP addresses and even DHCP-assigned IP addresses appear in my local DNS. Regardless, I cannot use a domain name. I have to hard-code the addresses, which works because of the fixed address assignments. (That's another problem that is annoying but not critical.)

But, no, I have not created any new devices.

So, I created a new device for TV-GBR, calling it TV-GBR-new. The device was not found automatically. I entered IP address and MAC address and created the device. That went OK. (I have not deleted the old device yet.) Here:

Jan 17, 2017, 12:38:24 PM
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceUPNPSeachCacheTime
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.31:31905/sony/webapi/ssdp/dd.xml, urn:schemas-sony-com:service:IRCC:1, uuid:47ec9b34-3491-41da-9d95-9a42cb01d8e7::urn:schemas-sony-com:service:IRCC:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:47ec9b34-3491-41da-9d95-9a42cb01d8e7::urn:schemas-sony-com:service:IRCC:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.31:31905/sony/webapi/ssdp/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:schemas-sony-com:service:IRCC:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.35:41419/dd.xml, urn:dial-multiscreen-org:service:dial:1, uuid:6e9570ea-8431-47e4-9be6-590ab5015855::urn:dial-multiscreen-org:service:dial:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:6e9570ea-8431-47e4-9be6-590ab5015855::urn:dial-multiscreen-org:service:dial:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.35:41419/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:dial-multiscreen-org:service:dial:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.31:22982/dd.xml, urn:dial-multiscreen-org:service:dial:1, uuid:d9614747-1e5d-4596-a3f8-5f031e3c4adb::urn:dial-multiscreen-org:service:dial:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:d9614747-1e5d-4596-a3f8-5f031e3c4adb::urn:dial-multiscreen-org:service:dial:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.31:22982/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:dial-multiscreen-org:service:dial:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.33:58314/dd.xml, urn:dial-multiscreen-org:service:dial:1, uuid:3a196db1-a472-44e3-930c-535160e253f2::urn:dial-multiscreen-org:service:dial:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:3a196db1-a472-44e3-930c-535160e253f2::urn:dial-multiscreen-org:service:dial:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.33:58314/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:dial-multiscreen-org:service:dial:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.32:58849/sony/webapi/ssdp/dd.xml, urn:schemas-sony-com:service:IRCC:1, uuid:cf124702-2846-4ca1-8c85-9652bc5556c5::urn:schemas-sony-com:service:IRCC:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:cf124702-2846-4ca1-8c85-9652bc5556c5::urn:schemas-sony-com:service:IRCC:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.32:58849/sony/webapi/ssdp/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:schemas-sony-com:service:IRCC:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.34:64673/dd.xml, urn:dial-multiscreen-org:service:dial:1, uuid:b5db5d39-bcfd-4da1-a862-8756670d7ac6::urn:dial-multiscreen-org:service:dial:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:b5db5d39-bcfd-4da1-a862-8756670d7ac6::urn:dial-multiscreen-org:service:dial:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.34:64673/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:dial-multiscreen-org:service:dial:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.34:13470/sony/webapi/ssdp/dd.xml, urn:schemas-sony-com:service:IRCC:1, uuid:40dfe81c-fc70-48df-aaa0-8dfa6078a228::urn:schemas-sony-com:service:IRCC:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:40dfe81c-fc70-48df-aaa0-8dfa6078a228::urn:schemas-sony-com:service:IRCC:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.34:13470/sony/webapi/ssdp/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:schemas-sony-com:service:IRCC:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.35:5288/sony/webapi/ssdp/dd.xml, urn:schemas-sony-com:service:IRCC:1, uuid:9684e47c-610b-4419-8db6-a9e4f2f27759::urn:schemas-sony-com:service:IRCC:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:9684e47c-610b-4419-8db6-a9e4f2f27759::urn:schemas-sony-com:service:IRCC:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.35:5288/sony/webapi/ssdp/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:schemas-sony-com:service:IRCC:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.33:61908/sony/webapi/ssdp/dd.xml, urn:schemas-sony-com:service:IRCC:1, uuid:48a12ff1-c223-49b5-a829-2f60c0a15c64::urn:schemas-sony-com:service:IRCC:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:48a12ff1-c223-49b5-a829-2f60c0a15c64::urn:schemas-sony-com:service:IRCC:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.33:61908/sony/webapi/ssdp/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:schemas-sony-com:service:IRCC:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.32:38070/dd.xml, urn:dial-multiscreen-org:service:dial:1, uuid:bfb7f35a-3611-4109-8a54-a36b00bd0e9b::urn:dial-multiscreen-org:service:dial:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:bfb7f35a-3611-4109-8a54-a36b00bd0e9b::urn:dial-multiscreen-org:service:dial:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://172.16.48.32:38070/dd.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:dial-multiscreen-org:service:dial:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.21:8080/description.xml, urn:schemas-upnp-org:service:AVTransport:1, uuid:5f9ec1b3-ff59-19bb-8530-0005cd94c75d::urn:schemas-upnp-org:service:AVTransport:1, KnOS/3.2 UPnP/1.0 DMP/3.5)>[('usn', 'uuid:5f9ec1b3-ff59-19bb-8530-0005cd94c75d::urn:schemas-upnp-org:service:AVTransport:1'), ('server', 'KnOS/3.2 UPnP/1.0 DMP/3.5'), ('ext', ''), ('location', 'http://172.16.48.21:8080/description.xml'), ('cache-control', 'max-age=1800'), ('st', 'urn:schemas-upnp-org:service:AVTransport:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://172.16.48.32:52323/MediaRenderer.xml, urn:schemas-rvualliance-org:service:StreamSplicing:1, uuid:23456789-1234-1010-8000-104fa826dae8::urn:schemas-rvualliance-org:service:StreamSplicing:1, Android/1.6 UPnP/1.0 Huey Sample DMR/0.1)>[('usn', 'uuid:23456789-1234-1010-8000-104fa826dae8::urn:schemas-rvualliance-org:service:StreamSplicing:1'), ('server', 'Android/1.6 UPnP/1.0 Huey Sample DMR/0.1'), ('ext', ''), ('location', 'http://172.16.48.32:52323/MediaRenderer.xml'), ('cache-control', 'max-age=1800'), ('x-av-server-info', 'av=5.0; hn=""; cn="Sony Corporation"; mn="Huey Sample DMR"; mv="0.1";'), ('st', 'urn:schemas-rvualliance-org:service:StreamSplicing:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Threaddebug Setting address of 489574350 to 172. 16.48.33:80
Sony Bravia Network Remote Plugin Debug Entering deviceStartComm for TV-GBR-new; ID=489574350
Sony Bravia Network Remote Plugin Debug Concurrent Processing Thread started for device 489574350
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:updateStatusPollerIntervalProperty
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:updateStatusPollerActionId
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:emptyQueueReducedWaitCycles
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:databaseConnectionEnabled
Sony Bravia Network Remote Plugin Threaddebug Database access enabled:
Sony Bravia Network Remote Plugin Threaddebug Database access has been disabled, skipping connection
Sony Bravia Network Remote Plugin Threaddebug Command queue has 1 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Create connection command de-queued
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:updateStatusPollerStartupDelay
Sony Bravia Network Remote Plugin Threaddebug Command queue has 2 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Initiating sleep of 3.0 seconds from command.
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Debug Exiting deviceStartComm for TV-GBR-new
Sony Bravia Network Remote Plugin Threaddebug Command queue has 1 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Ignoring status update request, no action specified to update device status

I then attempted to pair to the new device and got this:

Jan 17, 2017, 12:39:34 PM
Sony Bravia Network Remote Plugin Threaddebug Received an authentication command, attempting connection
Sony Bravia Network Remote Plugin Error Error authenticating device: 489574350 - the plugin is not able to act as a remote until this is corrected; turn on debug for more details.
Sony Bravia Network Remote Plugin Error Authentication error
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/sonyTvNetworkRemoteDevice.py", line 93, in handleUnmanagedCommandInQueue
conn.connect()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 832, in connect
self.timeout, self.source_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 557, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno 8] nodename nor servname provided, or not known

So we are back to where we started.

Brian

Who is online

Users browsing this forum: No registered users and 1 guest