apatsufas / homebridge-tapo-p100

Homebridge TP-LINK Tapo P100 Platform Plugin
Apache License 2.0
64 stars 14 forks source link

Homebridge logs full of Error Code: 9999, Session Timeout #28

Open antonme opened 2 years ago

antonme commented 2 years ago

Describe The Bug: Everything works, but homebridge logs is full of 9999 Session Timeout errors all the time. Always about the same p100 plug (which is working fine at the same time, both via homebridge and tapo app).

To Reproduce: For me it's reproduceable as long as that plug is in the config.

Expected behavior: No errors in logs when everything works fine.

Logs:

[1/10/2022, 5:24:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:24:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:24:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:24:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:25:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:25:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:25:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:25:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:25:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:26:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:26:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:26:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:26:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:26:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:27:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:27:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:27:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:27:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:27:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:28:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:28:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:28:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:28:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:28:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:29:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:29:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:29:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:29:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:29:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:30:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:30:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:30:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:30:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:30:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:31:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:31:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:31:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:31:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:31:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:32:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:32:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:32:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:32:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:32:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:33:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:33:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:33:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:33:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:33:57 PM] [Tapo Smart Platform] 326 Error Code: 9999, Session Timeout 192.168.20.135
[1/10/2022, 5:34:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:34:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:34:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout
[1/10/2022, 5:34:57 PM] [Tapo Smart Platform]  Error Code: 9999, Session Timeout

Plugin Config:

"name": "Tapo Smart Platform",
            "username": "(removed)",
            "password": "(removed)",
            "devices": [
                {
                    "name": "Filament Dryer",
                    "host": "192.168.20.128",
                    "type": "Plug",
                    "updateInterval": 60
                },
                {
                    "name": "Big Red Purifier",
                    "host": "192.168.20.135",
                    "type": "Plug",
                    "updateInterval": 60
                },
                {
                    "name": "Christmas tree",
                    "host": "192.168.20.138",
                    "type": "Plug",
                    "updateInterval": 60
                }
            ],
            "platform": "TapoP100"
        }

Screenshots:

Screen Shot 2022-01-10 at 17 38 49

Environment:

AATTARD03 commented 2 years ago

I got this issue today and I can’t even control them my lights (p100 eu plugs) from Homebridge. Adding the platform bridge to HomeKit does add the accessories but they all say “no response”. I can only assume Tapo have changed something on there end as even previous/beta versions of the plug-in are broken now :/

Cylus7 commented 2 years ago

I have the same issue (but can’t control the plug at all), just installed the plugin but no ability to control p100 plugs

joshrdavis commented 2 years ago

Really odd but I've found removing the timeout value for each of the devices it resolves this.

just-get-it-done commented 2 years ago

Really odd but I've found removing the timeout value for each of the devices it resolves this.

Did you manually edit the config?

AATTARD03 commented 2 years ago

Really odd but I've found removing the timeout value for each of the devices it resolves this.

Did you manually edit the config?

I realise I ought to have mentioned this here but after my first experience of the issue in Jan this year, I left Homebridge running and after a day or two the Tapo lights (p100 plugs) just started working again.

I’ve rebooted Homebridge a few times since and haven’t had any issues until a few days ago. Having not updated or restarted anything on Homebridge in over two months I updated everything available including Homebridge itself. When it rebooted I was having the same issue as before - plugs show up in HomeKit but say no response in red.

I looked back through this forum to try and resolve the issue and after several reboots I did try removing the entire line mentioning time out from the config. This didn’t work right after rebooting but after a few hours the lights started working again - so it may or may not be from removing the variable entirely but the code runs fine without it present in the config.

joshrdavis commented 2 years ago

Really odd but I've found removing the timeout value for each of the devices it resolves this.

Did you manually edit the config?

Yes, I did.