normen / homebridge-bravia

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

Need to authenticate with TV! #126

Closed diegoweb100 closed 4 years ago

diegoweb100 commented 4 years ago

HI,

I have 2 TVs so I've set-up both the TVs as externalAccessory. Even if the TV was authenticated correctly the first time, each time that I restart homebridge I need to reenter the pin. I don't know if this is correct or not and if can help Home app Setup code is equal for each TVs.

Any idea? I'm doing something wrong?

Schermata 2020-09-18 alle 08 13 22 Schermata 2020-09-18 alle 08 05 36 Schermata 2020-09-18 alle 08 05 07
    {
        "platform": "BraviaPlatform",
        "tvs": [
            {
                "name": "TV 55",
                "ip": "192.168.1.14",
                "externalaccessory": true,
                "channelupdaterate": "30000",
                "updaterate": "5000",
                "soundoutput": "speaker",
                "tvsource": "tv:dvbt",
                "serverPort": "8980",
                "applications": [
                    {
                        "title": "Netflix"
                    }
                ]
            },
            {
                "name": "TV 43",
                "ip": "192.168.1.16",
                "externalaccessory": true,
                "channelupdaterate": "30000",
                "updaterate": "5000",
                "soundoutput": "speaker",
                "tvsource": "tv:dvbt",
                "serverPort": "8981",
                "applications": [
                    {
                        "title": "Netflix"
                    }
                ]
            }
        ]
    }
normen commented 4 years ago

Seems like your homebridge forgets the cached accessories for some reason.

normen commented 4 years ago

Meh, actually homebridge doesn't store the external accessory context.. wtf.

normen commented 4 years ago

Okay, I disabled external accessory mode for now as its broken, the TV doesn't get stored in the homebridge cache, as soon as I find out how to achieve that I'll add it again - any info is very welcome.

diegoweb100 commented 4 years ago

Well if it can help, homebridge is storing the accessory, in fact after the restart, I had to delete them from the UI in the external accessory sessions (Unpair Bridges / Cameras / TVs / External Accessories) not into the "Remove Single Cached Accessory"

normen commented 4 years ago

Well its actually homekit itself that stored that "version" of the device. Anyway, the latest version 2.4.2 has a working external accessory mode but it needs to re-scan the TV channels on each homebridge boot.