normen / homebridge-bravia

Homebridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others)
139 stars 26 forks source link

TV needs regular authorization #121

Closed DJBenson closed 4 years ago

DJBenson commented 4 years ago

Is there a reason why a TV would need regular authorization, specifically when Homebridge is restarted? I've now split my Homebridge setup into six instances and put homebridge-bravia in an instance which doesn't need restarting so much but this seems an extreme workaround for the average user.

I had no idea until today when my TV told me I could no longer authorize new devices that Homebridge had been taking up new slots each time it has to re-pair with the TV.

Also am I imagining it (or confusing with another plugin) but didn't you used to be able to authenticate with the TV using a cookie? This was far more stable IMO.

EDIT: No, not imagining it, the code still references the cookie option but all reference to it are removed from the instructions for setting up the plugin. Is the cookie method still supported?

normen commented 4 years ago

Nothing much changed about that except that the UUID for each TV is unique now. Its stored in the accessory cache, so if you delete that then yes, the TV would have to re-authorize the new UUID. Under normal circumstances that should not be necessary.

On Wed Aug 19, 2020 at 9:21 PM CEST, DJBenson wrote:

Is there a reason why a TV would need regular authorization, specifically when Homebridge is restarted? I've now split my Homebridge setup into six instances and put homebridge-bravia in an instance which doesn't need restarting so much but this seems an extreme workaround for the average user.

I had no idea until today when my TV told me I could no longer authorize new devices that Homebridge had been taking up new slots each time it has to re-pair with the TV.

Also am I imagining it (or confusing with another plugin) but didn't you used to be able to authenticate with the TV using a cookie? This was far more stable IMO.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/normen/homebridge-bravia/issues/121

normen commented 4 years ago

I think you're misunderstanding the purpose of the cookie though, thats for the first connection in basic mode - to initialize the handshake with the UUID, registering that in your TV - after that the cookie isn't really used anymore.

Edit: It had to be stored on disk as you'd restart the plugin after entering the pin, deleting the cookie data from memory.