RaresAil/homebridge-levoit-air-purifier

A number of messages related to "This plugin slows down homebridge"

d3adc0de opened this issue · 4 comments

Describe The Bug

Only recently I've been seeing this in the logs. It's entirely possible it's coincidental; however, the automations I have configured stopped working around the time this started showing up.

Expected behavior

No errors about homebridge being slowed down (it has it's own bridge, but still).

Logs

[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] 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.
[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'Current Air Purifier State' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'Target Air Purifier State' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'Lock Physical Controls' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'Rotation Speed' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'Filter Change Indication' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'Filter Life Level' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'Air Quality' was slow to respond! See https://homebridge.io/w/JtMGR for more info.
[11/17/2022, 9:06:43 PM] [homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'PM2.5 Density' was slow to respond! See https://homebridge.io/w/JtMGR for more info.

Plugin Config

{
"name": "Levoit Air Purifiers",
"email": "nah",
"password": "nah",
"platform": "LevoitAirPurifiers",
"_bridge": {
"username": "0E:58:6F:A5:6C:D8",
"port": 47894
}
}

Plugin Version

1.2.0

Homebridge Version

1.5.0

Node.js Version

v18.12.1

NPM Version

unknown

Operating System

Docker - using this: https://hub.docker.com/r/oznu/homebridge/

Hey, is the plugin running as a child bridge?

Yep yep. All of my plugins have their own child bridge.

I've been troubleshooting this for a few days now, as well. I reset my instance and removed all other plugins and saw no change. In debug mode, I did notice that the queries to Levoit for info were sporadic, between 8 and 14 minutes apart from each other.

I do not see any significant hangs when setting device info via this integration. So I think it may just be the query side of things. But I'm not an expert. :-)

I do not see any similar hangs in device state when using the Home Assistant integration as a comparison point.

Log lines read:
[homebridge-levoit-air-purifier] This plugin slows down Homebridge. The read handler for the characteristic 'Lock Physical Controls' was slow to respond! See https://homebridge.io/w/JtMGR for more info.

I think is just something related to the response time from the VeSync servers, i will close this issue since there is not much that i can do for it.