ParadoxAlarmInterface / pai

Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
https://gitter.im/paradox-alarm-interface
Eclipse Public License 2.0
347 stars 92 forks source link

Serial Over IP (ESP32) not working but Babyware is working ... #289

Closed tasosstr closed 2 years ago

tasosstr commented 2 years ago

Something happens with the config file, I have replaced with the bellow

Should be at /etc/pai/pai.conf

import logging

LOGGING_LEVEL_CONSOLE: 20 LOGGING_LEVEL_FILE: 40 CONNECTION_TYPE = 'IP' IP_CONNECTION_HOST = '192.168.1.109' IP_CONNECTION_PORT = 23 IP_CONNECTION_PASSWORD = 'paradox' IP_CONNECTION_BARE: True KEEP_ALIVE_INTERVAL: 10 PASSWORD = 'xxxx' MQTT_ENABLE: True MQTT_HOST = '192.168.1.xx' MQTT_PORT = 1883 MQTT_USERNAME = 'admin' MQTT_PASSWORD = 'xxxx' MQTT_BASE_TOPIC = 'paradox' MQTT_KEEPALIVE: 60 KEEP_ALIVE_INTERVAL: 10

and now I have the bellow log

2022-03-31 23:23:36,478 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): 2022-03-31 23:23:38,527 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 2/3): 2022-03-31 23:23:40,574 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 3/3): 2022-03-31 23:23:40,575 - ERROR - PAI.paradox.paradox - Failed to connect to interface 2022-03-31 23:23:40,575 - ERROR - PAI - Unable to connect to alarm 2022-03-31 23:23:45,594 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): 2022-03-31 23:23:45,643 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-03-31 23:23:45,643 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-03-31 23:23:47,638 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 2/3): 2022-03-31 23:23:47,696 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-03-31 23:23:47,697 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-03-31 23:23:49,694 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 3/3): 2022-03-31 23:23:49,694 - ERROR - PAI.paradox.paradox - Failed to connect to interface 2022-03-31 23:23:49,694 - ERROR - PAI - Unable to connect to alarm 2022-03-31 23:23:49,738 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-03-31 23:23:49,739 - ERROR - PAI.paradox.connections.connection - Connection was lost

It looks like now use the IP ( yes it does, I change the port number and then said I can't connect to IP and Port number) What it is wrong on config file ?

Also when I was trigger an input an paradox SP7000 then the log are

2022-04-01 02:35:56 | stdout | 2022-04-01 02:35:56,528 - INFO     - PAI.paradox.connections.ip.connection - Connecting. Try 2/3 -- | -- | -- 2022-04-01 02:35:56 | stdout | 2022-04-01 02:35:56,528 - ERROR    - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,819 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,816 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,811 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,808 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,804 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,799 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,795 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,792 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,787 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,783 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,779 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,776 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,772 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,767 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,762 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,760 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,038 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,033 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,025 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,022 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,018 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'6e652030312020202020202020200000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,012 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'6e652030312020202020202020200000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,009 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'6e652030312020202020202020200000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,005 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'6e652030312020202020202020200000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,000 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c26010000000000005a6f' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,996 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c26010000000000005a6f' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,993 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c26010000000000005a6f' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,988 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c26010000000000005a6f' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,984 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,979 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,976 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,972 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,923 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'007c' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,919 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'007c' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,915 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'007c' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,911 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'007c' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,906 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'20303120202020202020202000000000' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,903 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'20303120202020202020202000000000' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,898 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'20303120202020202020202000000000' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,894 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'20303120202020202020202000000000' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,891 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c00010000000000005a6f6e65' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,888 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c00010000000000005a6f6e65' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,882 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c00010000000000005a6f6e65' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,878 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c00010000000000005a6f6e65' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,874 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,869 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,866 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,862 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:54 | stdout | 2022-04-01 02:35:54,532 - ERROR    - PAI.paradox.connections.connection - Connection was lost
tasosstr commented 2 years ago

https://github.com/ParadoxAlarmInterface/pai/issues/259#issuecomment-965802376

How can I check if this are accepted ?

Also I found this https://github.com/ParadoxAlarmInterface/pai/issues/259#issuecomment-941938497

But without this, but with direct connection Rx and Tx pins from Paradox to ESP32 the BabyWare are working and I can read or Program the board, why pai is not working ?

tasosstr commented 2 years ago

I have add a Level converter from 3.3V to 5V for Rx and Tx (like this https://www.ebay.com/itm/221919114584?mkevt=1&mkcid=1&mkrid=711-53200-19255-0&campid=5338179998&toolid=10019&customid=MakerAdvisorT), again Babyware it is working with Creating TCP/IP Serial port (Virtual) but the PAI is not connecting at all ! ! !

I thing the problem are here: IP_CONNECTION_BARE: True ?

Could be the BaudRate ?

2022-04-02 04:15:02,823 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-04-02 04:15:02,824 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-04-02 04:15:04,819 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): 2022-04-02 04:15:04,870 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-04-02 04:15:04,871 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-04-02 04:15:06,867 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 2/3): 2022-04-02 04:15:06,917 - ERROR - PAI.paradox.connections.protocols - Connection was closed: None 2022-04-02 04:15:06,917 - ERROR - PAI.paradox.connections.connection - Connection was lost 2022-04-02 04:15:08,914 - ERROR - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 3/3): 2022-04-02 04:15:08,915 - ERROR - PAI.paradox.paradox - Failed to connect to interface 2022-04-02 04:15:08,915 - ERROR - PAI - Unable to connect to alarm

Any advice please ???????????

skkostas commented 2 years ago

Hello you have connected and the ground?

tasosstr commented 2 years ago

Hello Kostas, Thank you for the reply ! ! !

Yes I have connect the ground.

Καλημέρα φίλε μου, είδα ότι είσαι απο Ελλάδα και σου γράφω στην γλώσσα μας γιατί φοβάμαι ότι η μετάφραση στα Αγγλικά μου δεν είναι και η καλύτερη ...

Έχω κατεβάσει απο εδώ https://www.hhdsoftware.com/ το Virtual Serial Port Tools και κάνω Create TCP/IP Serial Port βάζω την IP του ESP32 192.168.1.109 και Port 23 και μετά τρέχω το BabyWare τότε έχω σύνδεση κανονικά με τον συναγερμό, μπορώ να δώ ή και να αλλάξω παραμέτρους, κάνω disconnect και τρέχο το PAI και έχω τα παραπάνω .

Για το αρχείο pai.conf έχω τα παρακάτω

import logging

LOGGING_LEVEL_CONSOLE: 20 LOGGING_LEVEL_FILE: 40

CONNECTION_TYPE = 'IP'

IP_CONNECTION_HOST = '192.168.1.109' IP_CONNECTION_PORT = 23 IP_CONNECTION_PASSWORD = 'paradox' IP_CONNECTION_BARE: True

PASSWORD = 'χχχ' LABEL_ENCODING = 'paradox-en'

KEEP_ALIVE_INTERVAL: 10

MQTT_ENABLE: True MQTT_HOST = '192.168.1.10' MQTT_PORT = 1883 MQTT_USERNAME = 'admin' MQTT_PASSWORD = 'χχχχ' MQTT_BASE_TOPIC = 'paradox' MQTT_KEEPALIVE: 60 KEEP_ALIVE_INTERVAL: 10**

Τι κάνω λάθος ?

Σε ευχαριστώ εκ των προτέρων.

yozik04 commented 2 years ago

If babyware connects then PAI should also connect the same way. From the provided log it is not possible to understand what is wrong.

yozik04 commented 2 years ago

Baud rate does not matter for ip connection

yozik04 commented 2 years ago

IP_CONNECTION_BARE Must be True

tasosstr commented 2 years ago

Hello Jevgeni, Thank you for the reply.

It has crazy me, I was try more than 2 days and not connect it yet :-(

Yes I have it IP_CONNECTION_BARE: True but I am feeling is not read it as true, is any other way to add more logs so we can see what create the problem ?

The other thing is when a zone change status I got in log the bellow

2022-04-01 02:35:56 | stdout | 2022-04-01 02:35:56,528 - ERROR    - PAI.paradox.connections.ip.connection - Timeout while establishing connection (try 1/3): -- | -- | -- 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,819 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,816 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,811 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,808 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'00007d' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,804 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,799 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,795 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,792 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'203031202020202020202020000000' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,787 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,783 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,779 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,776 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'1416031f060c01010000000000005a6f6e65' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,772 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,767 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,762 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,760 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'e0' 2022-04-01 02:35:55 | stdout | 2022-04-01 02:35:55,038 - WARNING  - PAI.paradox.connections.protocols - Dangling data in the receive buffer: b'000000a2'
tasosstr commented 2 years ago

The version I have on SP7000 are the 5.18 on compatibility you have the

SP7000 7.14.2

In Notes: Both USB to serial (FTDI) and serial via ESP32

Can someone please send me the firmware 7.14.2 to give a try just in case if this solve the problem, Program InField when I hit button Get latest From web Is not connected any more :-(

yozik04 commented 2 years ago

Dangling data usually means that PAI could not find start/end of the packet. for SP7000 packets should be 37 byte long (If I remember right). I was not developing SP/MG support. I recommend upgrading to 6.x-7.x version but below < 7.50. That might solve the problem.

tasosstr commented 2 years ago

Hello Jevgeni, Thank you for the reply.

It makes sense 🙂

You are correct, it 37 byte long, for this i am sure.

Thank you in advance

tasosstr commented 2 years ago

Finally I have found the firmware V7.14 and again nothing still the same, so I was move to investigate more.

I reset it to default (I have two panels one are active and one on bench for play ) but again not working ...

I disconnect the Power from the ESP32 and I see freeze on connecting, so the esp32 was connecting,then I was playing with the settings, something is not clue ... and start and change things.. finally it is working :-) I AM SO HAPPY ! ! ! YOU HAVE DONE FANTASTIC JOB ! ! ! WELL DONE GUYS ! ! !

here is the result

pai

date | stream | content -- | -- | -- 2022-04-03 03:42:10 | stdout | 2022-04-03 03:42:10,260 - INFO     - PAI.paradox.paradox - Running 2022-04-03 03:42:10 | stdout | 2022-04-03 03:42:10,260 - INFO     - PAI.paradox.hardware.panel - Siren labels loaded (0.19s): Wireless Siren 1, Wireless Siren 2, Wireless Siren 3 2022-04-03 03:42:10 | stdout | 2022-04-03 03:42:10,069 - INFO     - PAI.paradox.hardware.panel - Site labels loaded (0.1s): Your Alarm Site 2022-04-03 03:42:09 | stdout | 2022-04-03 03:42:09,972 - INFO     - PAI.paradox.hardware.panel - Keypad labels loaded (0.37s): Wireless Keyp 1, Wireless Keyp 2, Wireless Keyp 3, Wireless Keyp 4, Wireless Keyp 5, Wireless Keyp 6, Wireless Keyp 7, Wireless Keyp 8 2022-04-03 03:42:09 | stdout | 2022-04-03 03:42:09,605 - INFO     - PAI.paradox.hardware.panel - Repeater labels loaded (0.1s): Repeater 1, Repeater 2 2022-04-03 03:42:09 | stdout | 2022-04-03 03:42:09,508 - INFO     - PAI.paradox.hardware.panel - Module labels loaded (0.76s): Bus Module 01, Bus Module 02, Bus Module 03, Bus Module 04, Bus Module 05, Bus Module 06, Bus Module 07, Bus Module 08, Bus Module 09, Bus Module 10, Bus Module 11, Bus Module 12, Bus Module 13, Bus Module 14, Bus Module 15 2022-04-03 03:42:08 | stdout | 2022-04-03 03:42:08,750 - INFO     - PAI.paradox.hardware.panel - User labels loaded (1.48s): System Master, Master 1, Master 2, User 04, User 05, User 06, User 07, User 08, User 09, User 10, User 11, User 12, User 13, User 14, User 15, User 16, User 17, User 18, User 19, User 20, User 21, User 22, User 23, User 24, User 25, User 26, User 27, User 28, User 29, User 30, User 31, User 32 2022-04-03 03:42:07 | stdout | 2022-04-03 03:42:07,266 - INFO     - PAI.paradox.hardware.panel - Partition labels loaded (0.1s): Area 1, Area 2 2022-04-03 03:42:07 | stdout | 2022-04-03 03:42:07,169 - INFO     - PAI.paradox.hardware.panel - Pgm labels loaded (0.18s): Output 01, Output 02, Output 13, Output 14 2022-04-03 03:42:06 | stdout | 2022-04-03 03:42:06,985 - INFO     - PAI.paradox.hardware.panel - Zone labels loaded (0.09s): Zone 01, Zone 02 2022-04-03 03:42:06 | stdout | 2022-04-03 03:42:06,892 - INFO     - PAI.paradox.hardware.panel - Updating Labels from Panel 2022-04-03 03:42:06 | stdout | 2022-04-03 03:42:06,892 - INFO     - PAI.paradox.hardware.panel - Loading labels 2022-04-03 03:42:06 | stdout | 2022-04-03 03:42:06,888 - INFO     - PAI.paradox.hardware.panel - Pgm definitions loaded (0.37s) 2022-04-03 03:42:06 | stdout | 2022-04-03 03:42:06,514 - INFO     - PAI.paradox.hardware.panel - Zone definitions loaded (1.48s) 2022-04-03 03:42:05 | stdout | 2022-04-03 03:42:05,037 - INFO     - PAI.paradox.hardware.panel - Updating Definitions from Panel 2022-04-03 03:42:05 | stdout | 2022-04-03 03:42:05,037 - INFO     - PAI.paradox.hardware.panel - Loading definitions 2022-04-03 03:42:05 | stdout | 2022-04-03 03:42:05,037 - INFO     - PAI.paradox.paradox - Loading data from panel memory 2022-04-03 03:42:05 | stdout | 2022-04-03 03:42:05,037 - INFO     - PAI.paradox.paradox - Connection OK 2022-04-03 03:42:05 | stdout | 2022-04-03 03:42:05,036 - INFO     - PAI.paradox.hardware.spectra_magellan.panel - Authentication Success 2022-04-03 03:42:04 | stdout | 2022-04-03 03:42:04,795 - INFO     - PAI.paradox.hardware.spectra_magellan.panel - Installer login 2022-04-03 03:42:04 | stdout | 2022-04-03 03:42:04,622 - INFO     - PAI.paradox.paradox - Initiating panel connection 2022-04-03 03:42:04 | stdout | 2022-04-03 03:42:04,622 - INFO     - PAI.paradox.paradox - Panel Identified SP7000 version 7.14 build 2 2022-04-03 03:42:04 | stdout | 2022-04-03 03:42:04,516 - INFO     - PAI.paradox.paradox - Connecting to Panel 2022-04-03 03:42:04 | stdout | 2022-04-03 03:42:04,515 - INFO     - PAI.paradox.connections.connection - Connection established 2022-04-03 03:42:04 | stdout | 2022-04-03 03:42:04,394 - INFO     - PAI.paradox.connections.ip.connection - Connecting. Try 1/3 2022-04-03 03:42:03 | stdout | 2022-04-03 03:42:03,520 - INFO     - PAI.paradox.paradox - Using IP Connection 2022-04-03 03:42:03 | stdout | 2022-04-03 03:42:03,520 - INFO     - PAI.paradox.paradox - Connecting to interface 2022-04-03 03:42:03 | stdout | 2022-04-03 03:42:03,520 - INFO     - PAI - Starting... 2022-04-03 03:42:03 | stdout | 2022-04-03 03:42:03,519 - INFO     - PAI - Console Log level set to 20 2022-04-03 03:42:03 | stdout | 2022-04-03 03:42:03,519 - INFO     - PAI - Config loaded from /etc/pai/pai.conf 2022-04-03 03:42:03 | stdout | 2022-04-03 03:42:03,518 - INFO     - PAI - Starting Paradox Alarm Interface 3.0.0 2022-04-03 03:42:03 | stdout | Attempting to load configuration from /etc/pai/pai.conf

Wrong Setting import logging

LOGGING_LEVEL_CONSOLE: 20 LOGGING_LEVEL_FILE: 40

CONNECTION_TYPE = 'IP'

IP_CONNECTION_HOST = '192.168.1.109' IP_CONNECTION_PORT = 23 IP_CONNECTION_PASSWORD = 'paradox' IP_CONNECTION_BARE: True

PASSWORD = 'χχχ' LABEL_ENCODING = 'paradox-en'

KEEP_ALIVE_INTERVAL: 10

MQTT_ENABLE: True MQTT_HOST = '192.168.1.10' MQTT_PORT = 1883 MQTT_USERNAME = 'admin' MQTT_PASSWORD = 'χχχχ' MQTT_BASE_TOPIC = 'paradox' MQTT_KEEPALIVE: 60 KEEP_ALIVE_INTERVAL: 10**

_Correct Settings ! ! !

**import logging

LOGGING_LEVEL_CONSOLE = 20 LOGGING_LEVEL_FILE = 40

CONNECTION_TYPE = 'IP'

IP_CONNECTION_HOST = '192.168.1.109' IP_CONNECTION_PORT = 23 IP_CONNECTION_PASSWORD = 'paradox' IP_CONNECTION_BARE = True

PASSWORD = 'χχχ' LABEL_ENCODING = 'paradox-en'

MQTT_ENABLE = True MQTT_HOST = '192.168.1.10' MQTT_PORT = 1883 MQTT_USERNAME = 'admin' MQTT_PASSWORD = 'χχχχ' MQTT_BASE_TOPIC = 'paradox' MQTT_KEEPALIVE = 60 KEEP_ALIVEINTERVAL = 10**

tasosstr commented 2 years ago

So here https://github.com/ParadoxAlarmInterface/pai/wiki/Connection-methods#ip-module-connection-IP100-IP150

on Serial Over IP (ESP32)

------- This -------

Connection Type

CONNECTION_TYPE: IP # Serial or IP

IP Connection Details

IP_CONNECTION_HOST: '192.168.1.10' # Address of the ESP32 IP_CONNECTION_PORT: 23 # Port of the ESP32 IP_CONNECTION_PASSWORD: 'paradox' # IP Module password. "paradox" is factory default. IP_CONNECTION_BARE: true # Used this for base Serial over TCP tunnels

---- MUST BE CHANCHE TO THIS -----

Connection Type

CONNECTION_TYPE = 'IP' # Serial or IP

IP Connection Details

IP_CONNECTION_HOST = '192.168.1.10' # Address of the ESP32 IP_CONNECTION_PORT = 23 # Port of the ESP32 IP_CONNECTION_PASSWORD = 'paradox' # IP Module password. "paradox" is factory default. IP_CONNECTION_BARE = True # Used this for base Serial over TCP tunnels

This issue is ready to close.

I want to thank you, all people for the reply ! ! !

Have a nice day ! ! !

Best Regards, Tasos

yozik04 commented 2 years ago

@tasosstr If you have something to add to the wiki. Please do. Everybody has edit access. Glad that you solved it.

tasosstr commented 2 years ago

@yozik04 Thank you very much, so i will now close the comment and later today i will update the wiki and i will add the step i do it on docker for Synology