Tertiush / ParadoxIP150v2

Python-based IP150 'middle-ware' that uses the IP module's software port for monitoring and control of the alarm via an MQTT Broker.
Eclipse Public License 1.0
73 stars 35 forks source link

3rd Party Connections - disconnect not working? #28

Open BrettWa opened 6 years ago

BrettWa commented 6 years ago

I'm using a MG5050 panel - everything seems to be working fine, except the disconnects with 3rd Party Connections (AlarmIn).

I see this in the log when I try to connect from Alarmin:

2018-02-11 10:56:17,876 DEBUG 32<- 0xaa 0x3 0x0 0x1 0x72 0xf6 0x0 0x0 0x0 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0x42 0x14 0x0 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 2018-02-11 10:56:17,878 DEBUG Event data: 0x42 0x14 0x0 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee

On the Alarmin side I almost immediately get: Error with login - Internal error: Cannot read property 'split' of undefined. OR Internal error: Error: Request for alarm data timed out.

(I repeatedly try to connect for about 2min)

saba01 commented 5 years ago

Thanks for this great addon that allows me to control my alarm!

Same thing happens with Alarmin and web connection

Software currently connected Please wait while requesting your connection to the software...

in my config.ini

Auto_Logoff = True

set debug mode to 2

2019-04-07 16:46:03,414 DEBUG 32<- 0xaa 0x3 0x0 0x1 0x72 0xf6 0x0 0x0 0x0 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0x25 0x89 0x0 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 2019-04-07 16:46:03,416 DEBUG Event data: 0x25 0x89 0x0 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee 0xee

log when starting

2019-04-07 16:56:44,496 INFO config.ini file read successfully: 1 2019-04-07 16:56:44,497 INFO State01:Attempting connection to MQTT Broker: xxx.xxx.xxx.xxx 2019-04-07 16:56:44,505 INFO Connected to MQTT broker with result code 0 2019-04-07 16:56:44,506 INFO State01:MQTT client subscribed to control messages on topic: Paradox/C/# 2019-04-07 16:56:44,509 INFO State02:Connecting to IP Module 2019-04-07 16:56:44,512 INFO Connecting to xxx.xxx.xxx.xxx 2019-04-07 16:56:44,520 INFO Logging into alarm system... 2019-04-07 16:56:44,773 INFO Login to alarm panel successful 2019-04-07 16:56:46,780 INFO State02: Logged into IP modeule successfully 2019-04-07 16:56:46,785 INFO State03:Listening for events... 2019-04-07 16:57:46,377 INFO Setting retries back to 3 after a couple of errors 2019-04-07 16:57:46,381 DEBUG Event:Special (Partition 1);SubEvent:Software log off 2019-04-07 16:57:47,635 DEBUG Event: "Area 1" 2019-04-07 16:57:47,638 DEBUG Event:Partition status;SubEvent:Report confirmation

how to fix this issue?