Sony Bravia plugin seems to be broken with Indigo 7.0

Posted on
Sat Feb 04, 2017 6:12 pm
brianlloyd offline
User avatar
Posts: 198
Joined: May 26, 2013
Location: San Antonio, TX, USA

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

RogueProeliator wrote:
HOWEVER, based on that last detailed logging enabled, I may have found an issue -- the response from the TV is slightly different than previous models that we have seen but close enough that I think it is trying to tell the plugin to re-authenticate. Just that the plugin isn't recognizing it as a re-authentication command. Technically Sony is using an incorrect code here (they are using an HTTP error code, but the text you sent includes an HTTP re-auth request code), but I digress.

Give THIS one a try and see how it goes...
https://github.com/RogueProeliator/IndigoPlugins-Sony-Network-Remote/archive/v2.4.3.zip

Adam


Nope. No SOAP yet. ;-)

(I hate Sony. First their rootkit in CDs and now this. I am so sorry I bought their TVs. Once we get this working I plan to block them from the net and from ever getting updates again.)

Action Group Office TV Bench HDMI1
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 Concurrent Processing Thread started for device 1587352776
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 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 Threaddebug Using headers:
{'Content-type': 'text/xml; charset="UTF-8"', 'Host': u'172.16.48.32', 'Cookie': u'auth=795DE16CFFAB2C26411FB354DC0DF550AFA71DE2', 'SOAPAction': 'urn:schemas-sony-com:service:IRCC:1#X_SendIRCC', 'User-Agent': 'DuncanwareRemote (IndigoPlugin)'}
Sony Bravia Network Remote Plugin Received an authentication request, attempting now...
Sony Bravia Network Remote Plugin Received an authentication request, attempting now...
Sony Bravia Network Remote Plugin Error Error in plugin execution:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkRESTfulDevice.py", line 362, in concurrentCommandProcessingThread
self.handleRESTfulError(command, e, responseObj)
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/sonyTvNetworkRemoteDevice.py", line 159, in handleRESTfulError
self.commandQueue.put(RPFrameworkCommand.RPFrameworkCommand(CMD_AUTHENTICATE_TO_DEVICE, commandPayload=rpCommand.commandPayload))
NameError: global name 'RPFrameworkCommand' is not defined

Sony Bravia Network Remote Plugin Debug Command thread ending processing

Posted on
Sun Feb 05, 2017 12:47 pm
Shutter offline
Posts: 344
Joined: Mar 07, 2014
Location: London, UK

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

Hi Adam,

Tried the latest version and attempted to send a volume up command and I see the following error in the logs:

Code: Select all
 Action Group                    sony test
   Sony Bravia Network Remote Plugin Debug Concurrent Processing Thread started for device 550923843
   Sony Bravia Network Remote Plugin Debug Processing SOAP/JSON operation to http://192.168.0.28:80/sony/ircc
   Sony Bravia Network Remote Plugin Received an authentication request, attempting now...
   Sony Bravia Network Remote Plugin Received an authentication request, attempting now...
   Sony Bravia Network Remote Plugin Error Error in plugin execution:

Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkRESTfulDevice.py", line 362, in concurrentCommandProcessingThread
    self.handleRESTfulError(command, e, responseObj)
  File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Sony Bravia Network Remote.indigoPlugin/Contents/Server Plugin/sonyTvNetworkRemoteDevice.py", line 159, in handleRESTfulError
    self.commandQueue.put(RPFrameworkCommand.RPFrameworkCommand(CMD_AUTHENTICATE_TO_DEVICE, commandPayload=rpCommand.commandPayload))
NameError: global name 'RPFrameworkCommand' is not defined

   Sony Bravia Network Remote Plugin Debug Command thread ending processing


I did first delete the device, deregister on the Sony TV, and paired again. When I do that I see this:

Code: Select all
Sony Bravia Network Remote Plugin Debug Obtained Auth Cookie: auth=03D8C492B070820FDD2E6E3BCE47D8074FADDBD7
   Sony Bravia Network Remote Plugin Debug Entering deviceStopComm for Sony 4K TV; ID=550923843
   Sony Bravia Network Remote Plugin Debug Initiating shutdown of communications with new device
   Sony Bravia Network Remote Plugin Debug Command thread ending processing
   Sony Bravia Network Remote Plugin Debug Shutdown of communications with new device complete
   Sony Bravia Network Remote Plugin Debug Exiting deviceStopComm for Sony 4K TV
   Sony Bravia Network Remote Plugin Debug Entering deviceStartComm for Sony 4K TV; ID=550923843
   Sony Bravia Network Remote Plugin Debug Concurrent Processing Thread started for device 550923843
   Sony Bravia Network Remote Plugin Debug Exiting deviceStartComm for Sony 4K TV

5 Feb 2017, 6:39:31 pm
   Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://192.168.0.28:34780/sony/webapi/ssdp/dd.xml, urn:schemas-sony-com:service:IRCC:1, uuid:fa263662-1b6e-409f-b8a5-399554ccd0ba::urn:schemas-sony-com:service:IRCC:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:fa263662-1b6e-409f-b8a5-399554ccd0ba::urn:schemas-sony-com:service:IRCC:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://192.168.0.28:34780/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://192.168.0.1:1900/rootDesc.xml, uuid:02ef72ca-eb20-11e6-8e38-e4f4c6caf3fc, uuid:02ef72ca-eb20-11e6-8e38-e4f4c6caf3fc, FedoraCore/6 UPnP/1.1 MiniUPnPd/1.7)>[('opt', '"http://schemas.upnp.org/upnp/1/0/"; ns=01'), ('usn', 'uuid:02ef72ca-eb20-11e6-8e38-e4f4c6caf3fc'), ('st', 'uuid:02ef72ca-eb20-11e6-8e38-e4f4c6caf3fc'), ('ext', ''), ('location', 'http://192.168.0.1:1900/rootDesc.xml'), ('cache-control', 'max-age=120'), ('bootid.upnp.org', '1'), ('server', 'FedoraCore/6 UPnP/1.1 MiniUPnPd/1.7'), ('configid.upnp.org', '1337'), ('01-nls', '1')]</SSDPResonse>
   Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://192.168.0.28:32390/dd.xml, urn:dial-multiscreen-org:service:dial:1, uuid:6a454942-4697-4c00-a81d-e60488f34000::urn:dial-multiscreen-org:service:dial:1, FedoraCore/2 UPnP/1.0 MINT-X/1.8.1)>[('usn', 'uuid:6a454942-4697-4c00-a81d-e60488f34000::urn:dial-multiscreen-org:service:dial:1'), ('server', 'FedoraCore/2 UPnP/1.0 MINT-X/1.8.1'), ('ext', ''), ('location', 'http://192.168.0.28:32390/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://192.168.0.28:52323/MediaRenderer.xml, urn:schemas-rvualliance-org:service:StreamSplicing:1, uuid:23456789-1234-1010-8000-104fa8a87b48::urn:schemas-rvualliance-org:service:StreamSplicing:1, Android/1.6 UPnP/1.0 Huey Sample DMR/0.1)>[('usn', 'uuid:23456789-1234-1010-8000-104fa8a87b48::urn:schemas-rvualliance-org:service:StreamSplicing:1'), ('server', 'Android/1.6 UPnP/1.0 Huey Sample DMR/0.1'), ('ext', ''), ('location', 'http://192.168.0.28: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>


Thanks,

Simon

Posted on
Sun Feb 05, 2017 2:11 pm
RogueProeliator offline
User avatar
Posts: 2244
Joined: Nov 13, 2012
Location: Baton Rouge, LA

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

Believe it or not guys, we are making progress -- now we have both of your TVs attempting an authentication request. This new version should get us a step closer...

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

BTW, @Shutter - did your TV show up in the drop down list when recreating it? I see it in the UPnP list now so curious if it was listed as a selection...

Adam

Posted on
Sun Feb 05, 2017 3:37 pm
Shutter offline
Posts: 344
Joined: Mar 07, 2014
Location: London, UK

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

Hi Adam,

No, it never has shown up in the drop down list.

Here's the output now when I try volume up.

Code: Select all
 Sony Bravia Network Remote Plugin Debug Obtained Auth Cookie: auth=B949ADA5E082ECC70827B954D28F9E0B9B24765E
   Sony Bravia Network Remote Plugin Debug Processing SOAP/JSON operation to http://192.168.0.28:80/sony/ircc
   Sony Bravia Network Remote Plugin Debug Entering deviceStopComm for Sony 4K TV; ID=550923843
   Sony Bravia Network Remote Plugin Debug Initiating shutdown of communications with Sony 4K TV
   Sony Bravia Network Remote Plugin Debug Command thread ending processing
   Sony Bravia Network Remote Plugin Debug Shutdown of communications with Sony 4K TV complete
   Sony Bravia Network Remote Plugin Debug Exiting deviceStopComm for Sony 4K TV
   Sony Bravia Network Remote Plugin Debug Entering deviceStartComm for Sony 4K TV; ID=550923843
   Sony Bravia Network Remote Plugin Debug Concurrent Processing Thread started for device 550923843
   Sony Bravia Network Remote Plugin Debug Exiting deviceStartComm for Sony 4K TV


Thanks for looking into this.

Simon

Posted on
Sun Feb 05, 2017 5:15 pm
RogueProeliator offline
User avatar
Posts: 2244
Joined: Nov 13, 2012
Location: Baton Rouge, LA

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

Good, like I said - one step closer as now it is obtaining the authorization cookie properly... however, it looks like that wasn't run with Debug set to High -- would you mind setting it to High and re-trying?

Posted on
Mon Feb 06, 2017 1:00 pm
Shutter offline
Posts: 344
Joined: Mar 07, 2014
Location: London, UK

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

Sorry about that. Here you go.

Code: Select all
Action Group                    sony test
   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 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">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.0.28: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">AAAAAQAAAAEAAAASAw==</IRCCCode>
                        </m:X_SendIRCC>
                     </SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
   Sony Bravia Network Remote Plugin Threaddebug Using headers:
{'Content-type': 'text/xml; charset="UTF-8"', 'Host': u'192.168.0.28', 'Cookie': u'auth=5074ED352A7A2A831F16F5349FD7F8FBF24F93EE', 'SOAPAction': 'urn:schemas-sony-com:service:IRCC:1#X_SendIRCC', 'User-Agent': 'DuncanwareRemote (IndigoPlugin)'}
   Sony Bravia Network Remote Plugin Received an authentication request, attempting now...
   Sony Bravia Network Remote Plugin Threaddebug Command queue has 1 command(s) waiting
   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=D5BD8A08433ED62EFD3C723ED744569804299D3B; Path=/sony/; Max-Age=1209600; Expires=Mon, 20 Feb 2017 18:52:19 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=D5BD8A08433ED62EFD3C723ED744569804299D3B
   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">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.0.28:80/sony/ircc
   Sony Bravia Network Remote Plugin Debug Entering deviceStopComm for Sony 4K TV; ID=550923843
   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">AAAAAQAAAAEAAAASAw==</IRCCCode>
                        </m:X_SendIRCC>
                     </SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
   Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
   Sony Bravia Network Remote Plugin Threaddebug Using headers:
{'Content-type': 'text/xml; charset="UTF-8"', 'Host': u'192.168.0.28', 'Cookie': u'auth=D5BD8A08433ED62EFD3C723ED744569804299D3B', 'SOAPAction': 'urn:schemas-sony-com:service:IRCC:1#X_SendIRCC', 'User-Agent': 'DuncanwareRemote (IndigoPlugin)'}
   Sony Bravia Network Remote Plugin Debug Initiating shutdown of communications with Sony 4K TV
   Sony Bravia Network Remote Plugin Debug Command thread ending processing
   Sony Bravia Network Remote Plugin Debug Shutdown of communications with Sony 4K TV complete
   Sony Bravia Network Remote Plugin Debug Exiting deviceStopComm for Sony 4K TV
   Sony Bravia Network Remote Plugin Debug Entering deviceStartComm for Sony 4K TV; ID=550923843
   Sony Bravia Network Remote Plugin Debug Concurrent Processing Thread started for device 550923843
   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 Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
   Sony Bravia Network Remote Plugin Threaddebug Database access has been disabled, skipping connection
   Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
   Sony Bravia Network Remote Plugin Debug Exiting deviceStartComm for Sony 4K TV
   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 Command queue has 1 command(s) waiting
   Sony Bravia Network Remote Plugin Threaddebug Ignoring status update request, no action specified to update device status


Thanks,

Simon

Posted on
Tue Feb 14, 2017 1:32 pm
RogueProeliator offline
User avatar
Posts: 2244
Joined: Nov 13, 2012
Location: Baton Rouge, LA

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

Okay guys... I have added additional logging to the spot that is indicated by the logs you guys posted as being the best play to catch the error; unfortunately, I doubt this version will fix much despite a few tweaks, but I think we are narrowing in on the error details.

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

Adam

Posted on
Wed Feb 15, 2017 1:23 pm
Shutter offline
Posts: 344
Joined: Mar 07, 2014
Location: London, UK

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

Hope this helps.

Many thanks for working on this.

Simon

Code: Select all
 Action Group                    sony test
   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 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">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.0.28: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">AAAAAQAAAAEAAAASAw==</IRCCCode>
                        </m:X_SendIRCC>
                     </SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
   Sony Bravia Network Remote Plugin Threaddebug Using headers:
{'Content-type': 'text/xml; charset="UTF-8"', 'Host': '192.168.0.28', 'Cookie': 'auth=662D42CD6E30855D880AB1632952F791EA735C35', 'SOAPAction': 'urn:schemas-sony-com:service:IRCC:1#X_SendIRCC', 'User-Agent': 'DuncanwareRemote (IndigoPlugin)'}
   Sony Bravia Network Remote Plugin Threaddebug Command Response was not HTTP OK, handling RESTful error
   Sony Bravia Network Remote Plugin Received an authentication request, attempting now...
   Sony Bravia Network Remote Plugin Threaddebug Command queue has 1 command(s) waiting
   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=836F772AF70D35F47A90085D431F0178C7D35189; Path=/sony/; Max-Age=1209600; Expires=Wed, 01 Mar 2017 19:16:46 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=836F772AF70D35F47A90085D431F0178C7D35189
   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">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.0.28: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">AAAAAQAAAAEAAAASAw==</IRCCCode>
                        </m:X_SendIRCC>
                     </SOAP-ENV:Body>
                  </SOAP-ENV:Envelope>
   Sony Bravia Network Remote Plugin Threaddebug Using headers:
{'Content-type': 'text/xml; charset="UTF-8"', 'Host': '192.168.0.28', 'Cookie': 'auth=836F772AF70D35F47A90085D431F0178C7D35189', 'SOAPAction': 'urn:schemas-sony-com:service:IRCC:1#X_SendIRCC', 'User-Agent': 'DuncanwareRemote (IndigoPlugin)'}
   Sony Bravia Network Remote Plugin Debug Entering deviceStopComm for Sony 4K TV; ID=550923843
   Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
   Sony Bravia Network Remote Plugin Debug Initiating shutdown of communications with Sony 4K TV
   Sony Bravia Network Remote Plugin Debug Command thread ending processing
   Sony Bravia Network Remote Plugin Debug Shutdown of communications with Sony 4K TV complete
   Sony Bravia Network Remote Plugin Debug Exiting deviceStopComm for Sony 4K TV
   Sony Bravia Network Remote Plugin Debug Entering deviceStartComm for Sony 4K TV; ID=550923843
   Sony Bravia Network Remote Plugin Debug Concurrent Processing Thread started for device 550923843
   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 Debug Exiting deviceStartComm for Sony 4K TV
   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

Posted on
Mon May 01, 2017 11:42 pm
thumpinc offline
Posts: 24
Joined: May 11, 2013

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

Hi - I can't seem to get the plugin to work.

It shows my Amp in the configure panel, but when I select it and hit PAIR I get the following:
---
Sony Bravia Network Remote Plugin Error Error authenticating device: 1157843158 - 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 114, in handleUnmanagedCommandInQueue
self.hostPlugin.logger.threaddebug(u'Response to Auth Request: [' + RPFramework.RPFrameworkUtils.to_unicode(responseToRegister.status) + u'] ' + RPFramework.RPFrameworkUtils.to_unicode(responseToRegister.getheaders()) + u'\n\n' + responseToRegister.read())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 593, in read
s = self.fp.read()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 355, in read
data = self._sock.recv(rbufsize)
error: [Errno 54] Connection reset by peer
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 Error Error authenticating device: 1157843158 - 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 114, in handleUnmanagedCommandInQueue
self.hostPlugin.logger.threaddebug(u'Response to Auth Request: [' + RPFramework.RPFrameworkUtils.to_unicode(responseToRegister.status) + u'] ' + RPFramework.RPFrameworkUtils.to_unicode(responseToRegister.getheaders()) + u'\n\n' + responseToRegister.read())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 593, in read
s = self.fp.read()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 355, in read
data = self._sock.recv(rbufsize)
error: [Errno 54] Connection reset by peer
---


When I attempt to edit a Device setting that is a Sony Remote Device I get this:
---

May 1, 2017, 10:41:26 PM
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceUPNPSeachCacheTime
Sony Bravia Network Remote Plugin Debug Performing uPnP search for: ssdp:all
Sony Bravia Network Remote Plugin Debug Found 7 devices
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(, , , )>[]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Skipped previous UPnP device due to parsing error<SSDPResponse(, , , )>[]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://10.8.0.1:9000/dev0/desc.xml, urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1, uuid:55076f6e-6b79-1d65-a4eb-00089bd90b1d::urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1, Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0, Twonky UPnP SDK/1.1)>[('content-length', '0'), ('usn', 'uuid:55076f6e-6b79-1d65-a4eb-00089bd90b1d::urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1'), ('server', 'Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0, Twonky UPnP SDK/1.1'), ('ext', ''), ('location', 'http://10.8.0.1:9000/dev0/desc.xml'), ('cache-control', 'max-age=1810'), ('date', 'Tue, 02 May 2017 05:41:29 GMT'), ('st', 'urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://192.168.86.33:52323/dmr.xml, urn:schemas-sony-com:service:ScalarWebAPI:1, uuid:00000000-0000-1010-8000-ac9b0af13e0a::urn:schemas-sony-com:service:ScalarWebAPI:1, Linux/3.10 UPnP/1.0 AV Receiver/2.0)>[('x-av-physical-unit-info', 'pa="STR-DN1060";'), ('usn', 'uuid:00000000-0000-1010-8000-ac9b0af13e0a::urn:schemas-sony-com:service:ScalarWebAPI:1'), ('server', 'Linux/3.10 UPnP/1.0 AV Receiver/2.0'), ('ext', ''), ('location', 'http://192.168.86.33:52323/dmr.xml'), ('cache-control', 'max-age=1800'), ('date', 'Tue, 02 May 2017 05:41:30 GMT'), ('x-av-server-info', 'av=5.0; cn="Sony Corporation"; mn="STR-DN1060"; mv="2.0";'), ('st', 'urn:schemas-sony-com:service:ScalarWebAPI:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Error Error parsing uPnp results
Traceback (most recent call last):
File "plugin.py", line 92, in parseUPNPDeviceList
displayName = re.match(r'^pa=\"(BRAVIA KDL\-[\w]+)\";$', networkDevice.allHeaders[nameIndex][1], re.I).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://192.168.86.1:5000/rootDesc.xml, urn:schemas-upnp-org:device:InternetGatewayDevice:1, uuid:c37b37c6-83ea-476b-ae5f-fb85da27a04e::urn:schemas-upnp-org:device:InternetGatewayDevice:1, Linux/3.11.0-26-generic UPnP/1.1 MiniUPnPd/1.9)>[('opt', '"http://schemas.upnp.org/upnp/1/0/"; ns=01'), ('usn', 'uuid:c37b37c6-83ea-476b-ae5f-fb85da27a04e::urn:schemas-upnp-org:device:InternetGatewayDevice:1'), ('st', 'urn:schemas-upnp-org:device:InternetGatewayDevice:1'), ('ext', ''), ('location', 'http://192.168.86.1:5000/rootDesc.xml'), ('cache-control', 'max-age=120'), ('bootid.upnp.org', '1'), ('server', 'Linux/3.11.0-26-generic UPnP/1.1 MiniUPnPd/1.9'), ('configid.upnp.org', '1337'), ('01-nls', '1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://192.168.86.225:9000/dev0/desc.xml, urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1, uuid:55076f6e-6b79-1d65-a4eb-00089bd90b1d::urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1, Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0, Twonky UPnP SDK/1.1)>[('content-length', '0'), ('usn', 'uuid:55076f6e-6b79-1d65-a4eb-00089bd90b1d::urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1'), ('server', 'Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0, Twonky UPnP SDK/1.1'), ('ext', ''), ('location', 'http://192.168.86.225:9000/dev0/desc.xml'), ('cache-control', 'max-age=1810'), ('date', 'Tue, 02 May 2017 05:41:30 GMT'), ('st', 'urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://192.168.86.33:50001/Ircc.xml, urn:schemas-sony-com:service:IRCC:1, uuid:00000003-0000-1010-8000-ac9b0af13e0a::urn:schemas-sony-com:service:IRCC:1, Linux/3.10 UPnP/1.0 Sony-AVR/2.0)>[('usn', 'uuid:00000003-0000-1010-8000-ac9b0af13e0a::urn:schemas-sony-com:service:IRCC:1'), ('server', 'Linux/3.10 UPnP/1.0 Sony-AVR/2.0'), ('ext', ''), ('location', 'http://192.168.86.33:50001/Ircc.xml'), ('cache-control', 'max-age=1800'), ('date', 'Tue, 02 May 2017 05:41:30 GMT'), ('st', 'urn:schemas-sony-com:service:IRCC:1')]</SSDPResonse>
Sony Bravia Network Remote Plugin Debug Found uPnP Device: <SSDPResponse(http://192.168.86.55:8178/description.xml, urn:schemas-upnp-org:device:basic:1, uuid:1c522b87-df40-11e6-b0f1-002608fd98da, FreeRTOS/7.4.2, UPnP/1.0, IpBridge/1.7.0)>[('usn', 'uuid:1c522b87-df40-11e6-b0f1-002608fd98da'), ('server', 'FreeRTOS/7.4.2, UPnP/1.0, IpBridge/1.7.0'), ('ext', ''), ('location', 'http://192.168.86.55:8178/description.xml'), ('cache-control', 'max-age=100'), ('st', 'urn:schemas-upnp-org:device:basic:1')]</SSDPResonse>
---
Any help is most appreciated. Thank you.

Posted on
Sun Feb 18, 2018 4:44 pm
rgesler offline
Posts: 2
Joined: Feb 18, 2018

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

Has anyone had any success with this plugin recently? I am trying to control an XBR-75X850C TV and am able to pair the device to this plugin, however the commands I send are always ignored. My logs look similar to what Shutter posted, where there is an authentication request, but then the command seems to be ignored by the tv.

Any ideas?

I'll post my debug log below.

WebServer request to execute "TV Controls" control #5 from 127.0.0.1
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 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">AAAAAgAAABoAAABaAw==</IRCCCode>
</m:X_SendIRCC>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Sony Bravia Network Remote Plugin Debug Processing SOAP/JSON operation to http://192.168.111.204: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">AAAAAgAAABoAAABaAw==</IRCCCode>
</m:X_SendIRCC>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sony Bravia Network Remote Plugin Threaddebug Using headers:
{'Content-type': 'text/xml; charset="UTF-8"', 'Host': '192.168.111.204', 'Cookie': 'auth=3CE192D855ADFC59D094BEC3C460A6439A0EF245', 'SOAPAction': 'urn:schemas-sony-com:service:IRCC:1#X_SendIRCC', 'User-Agent': 'DuncanwareRemote (IndigoPlugin)'}
Sony Bravia Network Remote Plugin Threaddebug Command Response was not HTTP OK, handling RESTful error
Sony Bravia Network Remote Plugin Received an authentication request, attempting now...
Sony Bravia Network Remote Plugin Threaddebug Command queue has 1 command(s) waiting
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=A6D00B1F6617A1D640365C25D8085E054227E5C1; Path=/sony/; Max-Age=1209600; Expires=Sun, 04 Mar 2018 22:44:02 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=A6D00B1F6617A1D640365C25D8085E054227E5C1
Sony Bravia Network Remote Plugin Debug Entering deviceStopComm for Living Room TV; ID=274705978
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Debug Initiating shutdown of communications with Living Room TV
Sony Bravia Network Remote Plugin Debug Command thread ending processing
Sony Bravia Network Remote Plugin Debug Shutdown of communications with Living Room TV complete
Sony Bravia Network Remote Plugin Debug Exiting deviceStopComm for Living Room TV
Sony Bravia Network Remote Plugin Debug Entering deviceStartComm for Living Room TV; ID=274705978
Sony Bravia Network Remote Plugin Debug Concurrent Processing Thread started for device 274705978
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:updateStatusPollerIntervalProperty
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:deviceIsChildDevice
Sony Bravia Network Remote Plugin Threaddebug Returning default GUIConfigValue for sonyTvRemoteDevice:updateStatusPollerActionId
Sony Bravia Network Remote Plugin Debug Exiting deviceStartComm for Living Room TV
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 Command queue has 1 command(s) waiting
Sony Bravia Network Remote Plugin Threaddebug Ignoring status update request, no action specified to update device status

Posted on
Tue Feb 20, 2018 7:52 pm
rgesler offline
Posts: 2
Joined: Feb 18, 2018

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

I was able to get this working for my TV (XBR-75X850C) by doing a minor adjustment to one of the headers in the request.

In Contents/Server Plugin/RPFramework/RPFrameworkRESTfulDevice.py I changed line 342 from
Code: Select all
customHeaders["SOAPAction"] = RPFrameworkUtils.to_str(soapAction)

to
Code: Select all
customHeaders["SOAPAction"] = '"' + RPFrameworkUtils.to_str(soapAction) + '"'


The extra quotes around the header value seems to make it work (for me at least). Posting it here in case it's helpful to anyone else or if the plugin author wants to add this into the code. Not sure if it would break anything with other models as I've only tested on mine.

Posted on
Fri May 25, 2018 12:42 pm
mike@hpk.nu offline
Posts: 5
Joined: Oct 25, 2015

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

Thanks! Worked for me! Finaly I can play with the plugin.

Posted on
Fri May 25, 2018 9:06 pm
RogueProeliator offline
User avatar
Posts: 2244
Joined: Nov 13, 2012
Location: Baton Rouge, LA

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

Can anyone else double check that this works for them? I don't mind making the change but I don't have the Sony TV right now - loaned it to the inlaws while they are still in the process of moving and have their stuff scattered around.

Adam

Posted on
Mon Nov 26, 2018 6:06 am
Seeker offline
Posts: 383
Joined: Aug 05, 2013

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

i decided to try this out with my 2017 Bravia. no luck yet, but need to make sure i'm configuring it properly.

basic question: what does the sony show up as in my router devices? the only unknown device i can find is android-ac163787f806120b at x.x.x.133. the plugin does list any devices by default, but manually entering this IP in the plugin does retrieve a MAC. power off does not work. is this device the sony? or how would it be listed. Sony is on my wifi network.

Posted on
Mon Nov 26, 2018 9:14 am
RogueProeliator offline
User avatar
Posts: 2244
Joined: Nov 13, 2012
Location: Baton Rouge, LA

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

basic question: what does the sony show up as in my router devices? the only unknown device i can find is android-ac163787f806120b at x.x.x.133. the plugin does list any devices by default, but manually entering this IP in the plugin does retrieve a MAC. power off does not work. is this device the sony? or how would it be listed. Sony is on my wifi network.

I'm not sure... I no longer own the Sony Bravia TV that I had so kind of hard to troubleshoot, but willing to try my best. IIRC, it shows up with something with "Media" in the title. Make sure the TV is powered on, that you have enabled the remote control within the TV's settings, and see if you can do a UPnP search from the Plugins -> Sony Bravia... menu. Note that it will pop up the results on the Indigo Server computer (not your remote client) within about 30 seconds.

Adam

Who is online

Users browsing this forum: No registered users and 1 guest