pai icon indicating copy to clipboard operation
pai copied to clipboard

Disconnection after new version

Open Stetocasa opened this issue 9 months ago • 9 comments

Alarm system

EVO192,, access mode P150 Panel Identified EVO192 version 7.52 build 1 Connection method IP50+ Module version 20, firmware: 5.6

Environment

HA RPI 3+

Describe the bug

Since new PAI release, I'm encoring in a multiples disconnection from the integration to my alarm. To re-establish the connection, I need to START manually from Home Assistant.

Logs

2025-02-13 01:38:02,799 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel 2025-02-13 01:38:02,947 - INFO - PAI.paradox.paradox - Clean Session 2025-02-13 01:38:02,949 - INFO - PAI.paradox.paradox - Cleaning previous session. Closing connection 2025-02-13 01:38:02,960 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2025-02-13 01:38:03,021 - ERROR - PAI.paradox.connections.connection - Connection was lost 2025-02-13 01:38:03,062 - INFO - PAI.paradox.paradox - Disconnected from the Alarm Panel 2025-02-13 01:38:03,652 - ERROR - PAI - Connection to panel lost: Not connected. Restarting 2025-02-13 01:38:06,681 - INFO - PAI - Starting... 2025-02-13 01:38:06,683 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel 2025-02-13 01:38:06,692 - INFO - PAI.paradox.paradox - Clean Session 2025-02-13 01:38:06,693 - INFO - PAI.paradox.paradox - Connecting to interface 2025-02-13 01:38:06,694 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 1/3 2025-02-13 01:38:06,742 - INFO - PAI.paradox.connections.connection - Connection established 2025-02-13 01:38:06,744 - INFO - PAI.paradox.connections.ip.commands - Authenticating with IP Module 2025-02-13 01:38:06,826 - INFO - PAI.paradox.connections.ip.commands - Authentication Success. IP(114) Module version 20, firmware: 5.6, serial: 7202e282 2025-02-13 01:38:06,876 - INFO - PAI.paradox.connections.ip.commands - Session successfully established with IP Module 2025-02-13 01:38:06,877 - INFO - PAI.paradox.paradox - Connecting to Panel 2025-02-13 01:38:06,937 - INFO - PAI.paradox.paradox - Panel Identified EVO192 version 7.52 build 1 2025-02-13 01:38:06,938 - INFO - PAI.paradox.paradox - Initiating panel connection 2025-02-13 01:38:07,030 - INFO - PAI.paradox.hardware.evo.panel - Installer login 2025-02-13 01:38:07,079 - INFO - PAI.paradox.hardware.evo.panel - Authentication Success 2025-02-13 01:38:07,080 - INFO - PAI.paradox.paradox - Connection OK 2025-02-13 01:38:07,081 - INFO - PAI.paradox.paradox - Loading data from panel memory 2025-02-13 01:38:07,084 - INFO - PAI.paradox.hardware.panel - Loading definitions 2025-02-13 01:38:07,085 - INFO - PAI.paradox.hardware.panel - Updating Definitions from Panel 2025-02-13 01:38:07,852 - INFO - PAI.paradox.hardware.panel - Zone definitions loaded (0.75s) 2025-02-13 01:38:07,894 - INFO - PAI.paradox.hardware.panel - Partition definitions loaded (0.04s) 2025-02-13 01:38:24,981 - INFO - PAI.paradox.hardware.panel - User definitions loaded (17.05s) 2025-02-13 01:38:26,371 - INFO - PAI.paradox.hardware.panel - Loading labels 2025-02-13 01:38:26,372 - INFO - PAI.paradox.hardware.panel - Updating Labels from Panel 2025-02-13 01:38:27,036 - INFO - PAI.paradox.hardware.panel - Zone labels loaded (0.66s): basculante, sirena, porta sala, anta porta sala, finestra sala, anta fin. sala, fin.bagno piccol, anta bagno picc., fin. cucina, anta fin. cucina, fin. cuoco, anta fin. cuoco, porta cucina, anta porta cucin, porta bagno, anta porta bagno, abbaino ing. sx, abbaino ing. dx, anta mansarda, anta mansarda, abbaino giard sx, abbaino giard dx, fin. sgabuzzino, anta sgabuzzino, porta Studio, anta Studio, finestra bagno, anta bagno, porta cam.Viola, anta cam. Viola, porta ingresso, tagliafuoco, riv. sala, riv.cuc.taverna, riv.scala tavern, riv. ingresso, riv. mansarda 2025-02-13 01:38:27,275 - INFO - PAI.paradox.hardware.panel - Pgm labels loaded (0.24s): PGM 01, PGM 02, PGM 03, PGM 04, PGM 05 2025-02-13 01:38:27,322 - INFO - PAI.paradox.hardware.panel - Partition labels loaded (0.05s): Viale Boscoverde 2025-02-13 01:38:27,492 - INFO - PAI.paradox.hardware.panel - User labels loaded (0.17s): Stefano, User 002, User 003, User 004, User 005, User 006, User 007, User 008, User 009, User 010 2025-02-13 01:38:27,494 - INFO - PAI.paradox.hardware.panel - Module labels loaded (0.0s): 2025-02-13 01:38:27,496 - INFO - PAI.paradox.hardware.panel - Door labels loaded (0.0s): 2025-02-13 01:38:27,498 - INFO - PAI.paradox.paradox - Running 2025-02-13 01:50:45,921 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel 2025-02-13 01:50:45,991 - INFO - PAI.paradox.paradox - Clean Session 2025-02-13 01:50:45,992 - INFO - PAI.paradox.paradox - Cleaning previous session. Closing connection 2025-02-13 01:50:46,066 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2025-02-13 01:50:46,199 - ERROR - PAI.paradox.connections.connection - Connection was lost 2025-02-13 01:50:46,206 - INFO - PAI.paradox.paradox - Disconnected from the Alarm Panel 2025-02-13 01:50:46,747 - ERROR - PAI - Connection to panel lost: Not connected. Restarting 2025-02-13 01:50:46,749 - INFO - PAI - Starting... 2025-02-13 01:50:46,750 - INFO - PAI.paradox.paradox - Disconnecting from the Alarm Panel 2025-02-13 01:50:46,752 - INFO - PAI.paradox.paradox - Clean Session 2025-02-13 01:50:46,753 - INFO - PAI.paradox.paradox - Connecting to interface 2025-02-13 01:50:46,754 - INFO - PAI.paradox.connections.ip.connection - Connecting. Try 1/3 2025-02-13 01:50:46,799 - INFO - PAI.paradox.connections.connection - Connection established 2025-02-13 01:50:46,802 - INFO - PAI.paradox.connections.ip.commands - Authenticating with IP Module 2025-02-13 01:50:46,890 - INFO - PAI.paradox.connections.ip.commands - Authentication Success. IP(114) Module version 20, firmware: 5.6, serial: 7202e282 2025-02-13 01:50:46,938 - INFO - PAI.paradox.connections.ip.commands - Session successfully established with IP Module 2025-02-13 01:50:46,939 - INFO - PAI.paradox.paradox - Connecting to Panel 2025-02-13 01:50:46,993 - INFO - PAI.paradox.paradox - Panel Identified EVO192 version 7.52 build 1 2025-02-13 01:50:46,993 - INFO - PAI.paradox.paradox - Initiating panel connection 2025-02-13 01:50:47,090 - INFO - PAI.paradox.hardware.evo.panel - Installer login 2025-02-13 01:50:47,131 - INFO - PAI.paradox.hardware.evo.panel - Authentication Success 2025-02-13 01:50:47,132 - INFO - PAI.paradox.paradox - Connection OK

Stetocasa avatar Feb 13 '25 09:02 Stetocasa

It's not PAI release. PAI internals were not changed for some years now. It is IP150+ or panel firmware.

yozik04 avatar Feb 16 '25 11:02 yozik04

I'm experiencing the same on MG5050 since the recent HA update.

No change to my IP150 module, same one I've been using for 9 years.

defusiondev avatar Feb 20 '25 05:02 defusiondev

I'm experiencing the same on MG5050 since the recent HA update.

No change to my IP150 module, same one I've been using for 9 years.

I unplugged the ip150 and plugged it in again earlier today and it's been stable again. Will update it it happens again but so far so good.

defusiondev avatar Feb 20 '25 17:02 defusiondev

I'm experiencing the same on MG5050 since the recent HA update. No change to my IP150 module, same one I've been using for 9 years.

I unplugged the ip150 and plugged it in again earlier today and it's been stable again. Will update it it happens again but so far so good.

you mean turn off the power or the LAN?

Stetocasa avatar Feb 20 '25 20:02 Stetocasa

I disconnected the IP150 module from the MG5050 board so it powered off and then reconnected it again. I did also re-plug in the LAN cables while I was there. Previously the log was giving a lot of exceptions for code 5 (I am paraphrasing but it was an unhandled exception for code/message/error 5)

On Thu, 20 Feb 2025, 22:33 Stetocasa, @.***> wrote:

I'm experiencing the same on MG5050 since the recent HA update. No change to my IP150 module, same one I've been using for 9 years.

I unplugged the ip150 and plugged it in again earlier today and it's been stable again. Will update it it happens again but so far so good.

you mean turn off the power or the LAN?

— Reply to this email directly, view it on GitHub https://github.com/ParadoxAlarmInterface/pai/issues/536#issuecomment-2672618065, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMGJREJB3A5IWBWZ7E2UAT2QY3YXAVCNFSM6AAAAABXBXN6BGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZSGYYTQMBWGU . You are receiving this because you commented.Message ID: @.***> [image: Stetocasa]Stetocasa left a comment (ParadoxAlarmInterface/pai#536) https://github.com/ParadoxAlarmInterface/pai/issues/536#issuecomment-2672618065

I'm experiencing the same on MG5050 since the recent HA update. No change to my IP150 module, same one I've been using for 9 years.

I unplugged the ip150 and plugged it in again earlier today and it's been stable again. Will update it it happens again but so far so good.

you mean turn off the power or the LAN?

— Reply to this email directly, view it on GitHub https://github.com/ParadoxAlarmInterface/pai/issues/536#issuecomment-2672618065, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMGJREJB3A5IWBWZ7E2UAT2QY3YXAVCNFSM6AAAAABXBXN6BGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZSGYYTQMBWGU . You are receiving this because you commented.Message ID: @.***>

defusiondev avatar Feb 21 '25 05:02 defusiondev

just fyi (i am the same as defusiondev), logs:

2025-02-20 13:20:50,245 - INFO     - PAI.paradox.connections.connection - Connection established
2025-02-20 13:20:50,245 - INFO     - PAI.paradox.connections.ip.commands - Authenticating with IP Module
2025-02-20 13:20:50,252 - INFO     - PAI.paradox.connections.ip.commands - Authentication Success. IP(IP150) Module version 20, firmware: 1.34, serial: 710292c9
2025-02-20 13:20:50,266 - INFO     - PAI.paradox.connections.ip.commands - Session successfully established with IP Module
2025-02-20 13:20:50,266 - INFO     - PAI.paradox.paradox - Connecting to Panel
2025-02-20 13:20:50,409 - INFO     - PAI.paradox.paradox - Panel Identified MG5050 version 4.91 build 11
2025-02-20 13:20:50,409 - INFO     - PAI.paradox.paradox - Initiating panel connection
2025-02-20 13:20:50,557 - INFO     - PAI.paradox.hardware.spectra_magellan.panel - Installer login
2025-02-20 13:20:50,916 - INFO     - PAI.paradox.hardware.spectra_magellan.panel - Authentication Success
2025-02-20 13:20:50,916 - INFO     - PAI.paradox.paradox - Connection OK
2025-02-20 13:20:50,916 - INFO     - PAI.paradox.paradox - Loading data from panel memory
2025-02-20 13:20:50,917 - INFO     - PAI.paradox.hardware.panel - Loading definitions
2025-02-20 13:20:50,917 - INFO     - PAI.paradox.hardware.panel - Updating Definitions from Panel
2025-02-20 13:20:51,574 - INFO     - PAI.paradox.hardware.panel - Zone definitions loaded (0.66s)
2025-02-20 13:20:52,943 - INFO     - PAI.paradox.hardware.panel - Pgm definitions loaded (1.37s)
2025-02-20 13:20:52,951 - INFO     - PAI.paradox.hardware.panel - Loading labels
2025-02-20 13:20:52,951 - INFO     - PAI.paradox.hardware.panel - Updating Labels from Panel
....
2025-02-20 13:21:00,094 - INFO     - PAI.paradox.paradox - Running
2025-02-20 13:21:40,124 - ERROR    - PAI.paradox.lib.handlers - No handler for message 5
Detail: Container: 
    fields = Container: 
        data = b"R\x00\x80\x01\xa0!A\x00\x00\x00\x00\x00\x00\x80'A"... (truncated, total 36)
        value = Container: 
            po = Container: 
                command = 5
                status = Container: 
                    reserved = False
                    alarm_reporting_pending = False
                    Winload_connected = True
                    NeWare_connected = False
            validation = 128
            address = 1
            data = b"\xa0!A\x00\x00\x00\x00\x00\x00\x80'A\x00\x00\x04\x00"... (truncated, total 32)
        offset1 = 0
        offset2 = 36
        length = 36
    checksum = b'\xc1' (total 1)
2025-02-20 13:21:54,561 - ERROR    - PAI.paradox.lib.handlers - No handler for message 5
Detail: Container: 
    fields = Container: 
        data = b"R\x00\x80\x01\xa0!A\x00\x00\x00\x00\x00\x00\x80'A"... (truncated, total 36)
        value = Container: 
            po = Container: 
                command = 5
                status = Container: 
                    reserved = False
                    alarm_reporting_pending = False
                    Winload_connected = True
                    NeWare_connected = False
            validation = 128
            address = 1
            data = b"\xa0!A\x00\x00\x00\x00\x00\x00\x80'A\x00\x00\x04\x00"... (truncated, total 32)
        offset1 = 0
        offset2 = 36
        length = 36
    checksum = b'\xc1' (total 1)
2025-02-20 13:21:54,656 - ERROR    - PAI.paradox.lib.handlers - No handler for message 5
Detail: Container: 
    fields = Container: 
        data = b'R\x00\x80\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'... (truncated, total 36)
        value = Container: 
            po = Container: 
                command = 5
                status = Container: 
                    reserved = False
                    alarm_reporting_pending = False
                    Winload_connected = True
                    NeWare_connected = False
            validation = 128
            address = 2
            data = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'... (truncated, total 32)
        offset1 = 0
        offset2 = 36
        length = 36
    checksum = b'T' (total 1)
2025-02-20 13:24:51,009 - ERROR    - PAI.paradox.lib.handlers - No handler for message 5
Detail: Container: 
    fields = Container: 
        data = b'R\x00\x80\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'... (truncated, total 36)
        value = Container: 
            po = Container: 
                command = 5
                status = Container: 
                    reserved = False
                    alarm_reporting_pending = False
                    Winload_connected = True
                    NeWare_connected = False
            validation = 128
            address = 2
            data = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'... (truncated, total 32)
        offset1 = 0
        offset2 = 36
        length = 36
    checksum = b'T' (total 1)
2025-02-20 13:24:51,131 - ERROR    - PAI.paradox.lib.handlers - No handler for message 5
Detail: Container: 
    fields = Container: 
        data = b'R\x00\x80\x03\n\n\n\n\n\n\n\x04\n\x08\n\n'... (truncated, total 36)
        value = Container: 
            po = Container: 
                command = 5
                status = Container: 
                    reserved = False
                    alarm_reporting_pending = False
                    Winload_connected = True
                    NeWare_connected = False
            validation = 128
            address = 3
            data = b'\n\n\n\n\n\n\n\x04\n\x08\n\n\n\n\n\n'... (truncated, total 32)
        offset1 = 0
        offset2 = 36
        length = 36
    checksum = b'\r' (total 1)
2025-02-20 13:25:26,458 - ERROR    - PAI.paradox.hardware.spectra_magellan.panel - ChecksumError Error in path (parsing) -> checksum
wrong checksum, read b'00', computed b'30', message: b'008001a021410000000000008027410000040000000000000000000000000000000000c100'
2025-02-20 13:26:54,755 - ERROR    - PAI.paradox.lib.handlers - No handler for message 5
Detail: Container: 
    fields = Container: 
        data = b'R\x00\x80\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'... (truncated, total 36)
        value = Container: 
            po = Container: 
                command = 5
                status = Container: 
                    reserved = False
                    alarm_reporting_pending = False
                    Winload_connected = True
                    NeWare_connected = False
            validation = 128
            address = 2
            data = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'... (truncated, total 32)
        offset1 = 0
        offset2 = 36
        length = 36
    checksum = b'T' (total 1)
2025-02-20 13:26:57,919 - ERROR    - PAI.paradox.lib.handlers - No handler for message 5
Detail: Container: 
    fields = Container: 
        data = b'R\x00\x80\x04\n\x05\n\n\n\n\n\n\n\n\n\n'... (truncated, total 36)
        value = Container: 
            po = Container: 
                command = 5
                status = Container: 
                    reserved = False
                    alarm_reporting_pending = False
                    Winload_connected = True
                    NeWare_connected = False
            validation = 128
            address = 4
            data = b'\n\x05\n\n\n\n\n\n\n\n\n\n\n\n\n\n'... (truncated, total 32)
        offset1 = 0
        offset2 = 36
        length = 36
    checksum = b'\xfd' (total 1)
2025-02-20 13:29:19,896 - INFO     - PAI.paradox.interfaces.mqtt.basic - message topic=paradox/control/partitions/Garden, payload=arm_stay
2025-02-20 13:29:19,898 - INFO     - PAI.paradox.interfaces.mqtt.basic - Partition command: Garden=arm_stay user: None
2025-02-20 13:29:21,004 - WARNING  - PAI.paradox.paradox - Missing property squawk in partition/House
2025-02-20 13:29:23,316 - INFO     - PAI.paradox.interfaces.mqtt.basic - message topic=paradox/control/partitions/Garden, payload=disarm
2025-02-20 13:29:23,317 - INFO     - PAI.paradox.interfaces.mqtt.basic - Partition command: Garden=disarm user: None
2025-02-20 13:29:36,397 - INFO     - PAI.paradox.interfaces.mqtt.basic - message topic=paradox/control/partitions/Garden, payload=disarm
2025-02-20 13:29:36,399 - INFO     - PAI.paradox.interfaces.mqtt.basic - Partition command: Garden=disarm user: None

it would then stop responding.

since the disconnect+reconnect of IP150 + LAN, it's been fine.

mrdigittal avatar Feb 21 '25 06:02 mrdigittal

I have the same issue. I don't think its the PAI integration at all even though its the one that "crashes" . I suspect something has changed in HA that it causing the instability. Sometimes it runs for hours, sometimes minutes fine but when it goes down, need to manually start the add or worse restart.

I am also running a rasp Pi3B.

kosmikza avatar Mar 03 '25 07:03 kosmikza

I have the same issue with my MG5050. I started having problems after updating Home Assistant to version 2025.3.1, but I’m not sure if that’s the cause.

TheNickFury avatar Mar 19 '25 13:03 TheNickFury

After updating HA to 14.x I received the same messages. Disconnect and Reconnect of IP150 module fixed the error messages.

Bu I still geht checksum Errors: 2025-03-21 12:06:30,454 - ERROR - PAI.paradox.hardware.evo.panel - ChecksumError Error in path (parsing) -> checksum wrong checksum, read b'10', computed b'ce', message: b'4780000001061000000000000000000000000000000000141903

Has anyone the same messages? Should I ignore them?

jjreit avatar Mar 21 '25 11:03 jjreit

I have similar issue, my PAI connection was all good last year. Nowadays my paradox alarm interface add-ons are not working, it gets disconnected after a few hours (auto restart didn't help). I'm not sure when it starts, I would say sometime end of last year or early 2025. I've tried everything I can think of, downgrading PAI, restarting etc. Nothing works. If anyone found a solution, your help is really appreciated.

padiyoyo avatar Jul 05 '25 07:07 padiyoyo

PAI is not guilty here. We did not had any updates related to communication for years already.

yozik04 avatar Jul 05 '25 11:07 yozik04

PAI is not guilty here. We did not had any updates related to communication for years already.

I don't diasgree that its not PAI itself, I have seen similar behavior with other addons ( Ewelink, google drive backup ) are the two others that I run. Whatever the "plane" is that runs the addons seems unstable since way back then and the annoying thing is that there doesn't seem to be anything in the logs accordingly to track it down.

Just for clarity, my IP50 and board haven't been updated for years either, the only thing with regularity is the HA OS etc. Again mentioning the error is on a pi3b+, maybe its something in that kernel/build.

kosmikza avatar Jul 07 '25 09:07 kosmikza

Maybe Pi 3 is overloaded? Recent HA does more and is more resource hungry.

yozik04 avatar Jul 07 '25 11:07 yozik04

As well if you connect through Paradox Cloud then Paradox can influence your experience. Local connection to IP150 is very stable for me.

yozik04 avatar Jul 07 '25 11:07 yozik04

I'm experiencing a similar issue, which I'm documenting in the #555 discussion.

The only difference in my case is that I don't need to manually restart the service: PAI handles the reconnection automatically.

fdcastel avatar Jul 25 '25 11:07 fdcastel