paulw11 / homebridge-elkm1

Homebridge plugin for the Elk M1 alarm panel
MIT License
7 stars 6 forks source link

Timeout Occurred on Zone Status #38

Open jcalisi opened 2 years ago

jcalisi commented 2 years ago

Looks like this was addressed early on in 2017 but I'm getting timeouts. I have ~32 zones, two garage doors, and 2 contacts. I'm running Homebride v1.50 with the homebridge-elkm1 v3.0.7. Node.js Version v16.15.1 Debian GNU/Linux Buster (10)

[6/22/2022, 9:29:22 AM] [Elk] Attempting to connect to Elk M1 [6/22/2022, 9:29:29 AM] [Elk] Connected [6/22/2022, 9:29:34 AM] [Elk] Error retrieving data from M1 panel [6/22/2022, 9:29:34 AM] [Elk] Timout occured before Zone Status Report (zs) was received

kristiandg commented 2 years ago

I saw this happening (plugin version 3.0.x) while I was also connected to the M1XEP via RP. Once I'd disconnect, these errors seemed to disappear. Obviously not a network issue (all gig, and fiber-based internet with 100mb upload), so wondering if it's really this plugin with the issue, or more of a function of contention on the XEP and serial uplink (I would assume at 115200, the XEP simply queues requests and spits them out as the serial port becomes idle, but I don't know that side of it well at all).

jcalisi commented 2 years ago

That's what I saw in your release notes. I just made sure I wasn't connected via rp and bounced the m1 and homebridge but its still failing. I did see this new error in the log though.

[8/5/2022, 1:46:06 PM] [Elk] Connected (node:10761) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ZS listeners added to [Elk]. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created)