paulw11 / homebridge-elkm1

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

Connects to M1, Fails to retrieve information #12

Closed 2765827892 closed 3 years ago

2765827892 commented 3 years ago

Hello,

I am running the following versions: Homebridge: 1.1.6 Node.js: 14.15.0 Elk Plugin: 1.1.10

The module successfully connects to the panel, however it can't retrieve data or text descriptions.

[12/6/2020, 9:00:49 PM] [ElkM1] Initializing ElkM1 platform... [12/6/2020, 9:00:49 PM] [ElkM1] Connecting to M1 [12/6/2020, 9:00:49 PM] [ElkM1] Connected [12/6/2020, 9:00:49 PM] [ElkM1] Requesting area description [12/6/2020, 9:00:49 PM] [ElkM1] Area description:[object Object] [12/6/2020, 9:00:49 PM] [ElkM1] Requesting zone descriptions [12/6/2020, 9:00:49 PM] [ElkM1] Connection is not secure [12/6/2020, 9:01:04 PM] [ElkM1] Error retrieving data from M1 panel [12/6/2020, 9:01:04 PM] [ElkM1] Timout occured before Text Description (sd) was received.

Config:

{ "platform": "ElkM1", "name": "ElkM1", "elkAddress": "x.x.x.x", "elkPort": "2101", "area": "1", "keypadCode": "XXXX", "zoneTypes": { "15": "contact", "16": "contact", "17": "contact", "18": "motion", "25": "contact", "26": "contact", "27": "contact", "28": "contact", "29": "contact", "30": "contact", "31": "contact", "37": "contact", "38": "contact", "39": "contact", "40": "contact", "41": "contact", "42": "contact", "43": "contact", "194": "contact" } }

Do you have any thoughts?

Thanks for all of the amazing work you did for this plugin!

paulw11 commented 3 years ago

This appears to be a duplicate of #10.

The problem in that instance is inside the elkmon package that this package depends upon. Can you run home bridge in DEBUG mode and share the debug log? That might provide more information

2765827892 commented 3 years ago

Thanks for the quick response!

So, I actually enabled debugging and copy and pasted all of the relevant logs when I posted. Is there someplace else you want me to look? I can confirm that there are more items when debugging is enabled.

Thanks again!

paulw11 commented 3 years ago

I can see from the log that it looks like it had a problem getting the zone descriptions. I have updated the plugin with a bit more debug logging. Can you try it and provide the [elkm1] logs?

paulw11 commented 3 years ago

Root cause determined in #20