iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
150 stars 52 forks source link

This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all #182

Closed home-automate closed 4 months ago

home-automate commented 1 year ago

Describe The Bug: I am getting a lot of "This plugin slows down Homebridge messages. I realize the is another method of using WebHook, but wondering if this is just something that can be fixed. I ran into this issue with the Xfinity Home plug in and it was fixed there.

not sure if the plugin code can return the callback() instantly, and call characteristic.updateValue once the action has completed.

To Reproduce:

  1. Install homebridge-smartthings plug-in
  2. only use Access Token
  3. I am using only 3 devices attached to the Smartthings
  4. examine the logfile and observe the messages that this plugin slows down HomeBridge

Expected behavior: No logs littered with messages indicating it slowing down Homebridge

Logs: [28/06/2023, 18:02:29] [homebridge-smartthings-ik] This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info.

Plugin Config: "name": "Smartthings Plug (IK)", "BaseURL": "https://api.smartthings.com/v1/", "AccessToken": "xxxxxxxxxxxxx" "GarageDoorMaxPoll": 40, "PollLocksSeconds": 5, "PollDoorsSeconds": 0, "PollSensorsSeconds": 5, "PollSwitchesAndLightsSeconds": 5, "PollWindowShadesSeconds": 0, "IgnoreDevices": [ ], "platform": "HomeBridgeSmartThings" Screenshots:

Environment:

iklein99 commented 11 months ago

You can reduce the amount of polling by changing the various settings. That may help.

jkal4712 commented 11 months ago

I have the same error message. It looks to be related to the smart bulbs and changing colors or brightness. Can you elaborate more on what various settings to change?

iklein99 commented 11 months ago

Try PollSwitchesAndLightsSeconds". Change it to 10 or something. The issue is with all of the polling, it can slow down the responses. Depending upon how many devices you have, you may need to increase the polling interval (time between checks) to reduce the amount of polling. Or sign up for the webhook service to eliminate the polling.

jkal4712 commented 11 months ago

Looks like it is already set to 10. I am not familiar with the webhook service? Where can I find out more information about that? I do have a lot of devices connected.

Screenshot 2023-07-25 at 8 40 38 AM
iklein99 commented 11 months ago

You can find that here: https://github.com/iklein99/homebridge-smartthings/discussions/141

iklein99 commented 4 months ago

Closing due to lack of activity