kuestess / homebridge-platform-insteonlocal

Homebridge platform plugin for local Insteon control
Other
76 stars 26 forks source link

Slowing to a Halt #8

Closed NexGen-3D-Printing closed 5 years ago

NexGen-3D-Printing commented 6 years ago

Hi,

This plugin appears to have the same issue as the Home Assistant Insteon Local plugin.

As you add more devices, the slower it goes, and if you try to turn on and off more than 2 lights one after the other, it slows right down and can either take minutes to activate a light or not at all.

I have tried several platforms, win10, win7, Debian, Mint, same result on them all.

Its shame as this was exactly what I was looking for, I'm currently using the HCA-Tech Homebridge plugin and the ridiculously expensive HCA software in trial mode to control my Insteon HUB, and this software is fast, never fails at all.

Is there something in common with this plugin and the HASS one? I've tried everything, Homebridge receives the commands instantly, but the hub and lights just stop responding.

My Hub is the 2242 AU version, if you get a chance grab a trial copy of Home Control Assistant (HCATECH) and give it a shot, its freakishly fast in response time, even when its iphone -> VM Debian Homebridge -> VM Windows 7 -> Insteon Hub - > Light Bulb, it really is insteon.

Cheers

KFK

scourchesne commented 6 years ago

[2018-9-4 23:11:28] Salon is running on port 43003. [2018-9-4 23:11:28] Entree is running on port 41223. [2018-9-4 23:11:28] Homebridge is running on port 51826. [2018-9-4 23:12:00] [Insteon Local Platform] Got updated status for Dimmer Sous-sol [2018-9-4 23:12:05] [Insteon Local Platform] Got updated status for Venmar [2018-9-4 23:13:12] [Insteon Local Platform] Got on event for Keypad Sous-sol [2018-9-4 23:13:12] [Insteon Local Platform] Got updated status for Sous-Sol ON [2018-9-4 23:13:12] [Insteon Local Platform] Getting status for Sous-Sol ON [2018-9-4 23:13:12] [Insteon Local Platform] Event not for correct group (group: 0) [2018-9-4 23:13:13] [Insteon Local Platform] Getting brightness for Sous-Sol ON /usr/lib/node_modules/homebridge-platform-insteonlocal/index.js:845 self.light.level(function(error, level) {

^

TypeError: Cannot read property 'level' of undefined at InsteonLocalAccessory.getBrightnessLevel (/usr/lib/node_modules/homebridge-platform-insteonlocal/index.js:845:16) at Timeout._onTimeout (/usr/lib/node_modules/homebridge-platform-insteonlocal/index.js:472:70) at ontimeout (timers.js:475:11) at tryOnTimeout (timers.js:310:5) at Timer.listOnTimeout (timers.js:270:5)

kuestess commented 6 years ago

@scourchesne Definitely a strange error. Made a slight tweak and uploaded to npm - see if that works for you.

scourchesne commented 6 years ago

@kuestess Quick report after some tests with 3.10 We are almost there ! 1) The change to home-controller index.js for the timeout was overwritten, so I put it back after update to 3.10. That solved the timeout issue in homekit as we already know. 2) Controls (Power on, off and scene) works perfectly from Homekit (Home app) ! 3) Manual Power ON : Don't work for Dimmer and Keypad. (For Dimmer it goes to ON, 0% and OFF in Home App). For Keypad, zero feedback in Home App. 4) Manual Power OFF : Works for Dimmer, Not for Keypad.

Hope that helps. Thanks for your hard work.

kuestess commented 6 years ago

@scourchesne Thanks for the feedback! I've opened an issue for home-controller so that fix will persist updates, but haven't gotten any response yet. Can you post some logs capturing 3 and 4 above?

shereefalkady commented 5 years ago

@kuestess help....

Mar 06 14:58:47 beaglebone homebridge[1429]: [3/6/2019, 2:58:47 PM] [Insteon Local Platform] Setting power state of Pool to off Mar 06 14:58:49 beaglebone homebridge[1429]: [3/6/2019, 2:58:49 PM] [Insteon Local Platform] Event not for correct group (group: 41) Mar 06 14:58:50 beaglebone homebridge[1429]: [3/6/2019, 2:58:50 PM] [Insteon Local Platform] Got updated status for Pool Mar 06 14:58:50 beaglebone homebridge[1429]: [3/6/2019, 2:58:50 PM] [Insteon Local Platform] Getting status of scene members (group: 41)...

what is the "event not correct for group"? scenes keep crashing my system

kuestess commented 5 years ago

@shereefalkady The 'event not for correct group' is related to scenes and keypads. The code parses the Insteon message and determines the group number so that only the devices that are part of the scene are updated (rather than updating all devices). Can you post a crash log and I'll look into it.

kuestess commented 5 years ago

Spring cleaning - closing due to inactivity.