alexmohr / sonyapilib

Contains a python api to control sony devices.
MIT License
20 stars 11 forks source link

2011 device - Register Type 2 - auth request not sent #52

Closed PaulWebster closed 4 years ago

PaulWebster commented 4 years ago

In send_authentication if ewgistration_action.mode < 3 then there is no HTTP connection to the device to start the authentication process. For my 2011 TV this (mode 2) this does not work. The request has to be sent (PIN not needed) and this results in a pop-up on the TV that has to be acknowledged within 20 or so seconds to allow the registration to happen (subject to a maximum of 5 registered controllers). I made a quick hack to change the test from "< 3" to "< 2" and it worked. Still need to enter a PIN into the HA UI to make this happen but that is not really an issue (and even less if documented).

Note - there is another issue that stops things working after registration - and I'll open a new ticket on that.