Bubba8291 / homebridge-sharkiq

A Homebridge plugin to connect your Shark Vacuum to homebridge.
Apache License 2.0
9 stars 1 forks source link

Plugin slows down Homebridge #8

Closed ellisvalentiner closed 1 year ago

ellisvalentiner commented 1 year ago

Describe The Bug:

Homebridge logs show this message repeatedly:

This plugin slows down Homebridge. The read handler for the characteristic 'Active' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info

To Reproduce:

Install and configure plugin.

Expected behavior:

The plugin should not slow down Homebridge.

Logs:

[10/2/2023, 3:54:16 PM] [homebridge-sharkiq] This plugin slows down Homebridge. The read handler for the characteristic 'Active' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.
[10/2/2023, 3:54:22 PM] [homebridge-sharkiq] This plugin slows down Homebridge. The read handler for the characteristic 'Active' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[10/2/2023, 3:54:28 PM] [homebridge-sharkiq] This plugin slows down Homebridge. The read handler for the characteristic 'Active' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.

Plugin Config:

{
    "bridge":
    {
        "name": "Homebridge",
        "username": "<redacted>",
        "port": 51877,
        "pin": "<redacted>"
    },
    "accessories":
    [],
    "platforms":
    [
        {
            "name": "Config",
            "port": 8561,
            "platform": "config"
        },
        {
            "name": "SharkIQ",
            "email": "<redacted>",
            "password": "<redacted>",
            "vacuums":
            [
                "<redacted>",
                "<redacted>"
            ],
            "invertDockedStatus": false,
            "platform": "SharkIQ"
        }
    ]
}

Screenshots:

Environment:

Bubba8291 commented 1 year ago

I haven't had a lot of time to look at it this week, but I think it has to do with the http client that it is using.

Bubba8291 commented 1 year ago

Just pushed v1.1.0. It should fix this issue.