vanackej / risco-mqtt-local

Provide Risco alarm system integration to Home assistant using local TCP communication (no cloud required) and MQTT
MIT License
24 stars 11 forks source link

error on launch: TCP Socket Disconnected #15

Closed nonameboy007 closed 2 years ago

nonameboy007 commented 2 years ago

Hello @vanackej ,

First of all, thanks for your work.

So, to begin, i've found the installer password through Risco Configuration Sofware and i disabled the cloud part.

Then i try your code, but i encountered the error bellow:

` Loading config from: /usr/src/app/config.json
2/8/2022, 10:47:44 AM [debug] User config:
{
"log": "debug",
"panel": {
"panelIp": "192.168.100.182",
"panelPort": 1000,
"panelPassword": "5678",
"panelId": "0001",
"watchDogInterval": 10000
},
"mqtt": {
"url": "mqtt://192.168.100.235:1883"
},
"zones": {
"default": {
"off_delay": 30,
"name_prefix": "Sensor - "
}
}
}
2/8/2022, 10:47:44 AM [debug] Merged config:
{
"log": "debug",
"logColorize": false,
"ha_discovery_prefix_topic": "homeassistant",
"ha_discovery_include_nodeId": false,
"panel": {
"panelIp": "192.168.100.182",
"panelPort": 1000,
"panelPassword": "5678",
"panelId": "0001",
"watchDogInterval": 10000
},
"zones": {
"default": {
"off_delay": 30,
"device_class": "motion",
"name_prefix": "Sensor - "
}
},
"mqtt": {
"url": "mqtt://192.168.100.235:1883",
"reconnectPeriod": 5000,
"clientId": "risco-mqtt-37a0fd",
"will": {
"topic": "riscopanel/alarm/status",
"payload": "offline",
"qos": 1,
"retain": true,
"properties": {
"willDelayInterval": 30
}
}
}
}
2/8/2022, 10:47:44 AM [debug] Pseudo Buffer Created for Panel Id(0001):
[2,5,11,23,47,94,189,122,244,232,208,161,66,133,11,22,45,90,181,107,214,173,90,180,104,208,161,67,135,15,31,63,126,253,251,247,239,223,191,127,255,255,254,252,249,242,229,202,149,43,86,172,8 8,176,96,193,131,6,12,25,50,100,200,144,32,65,130,5,11,23,47,95,190,125,250,245,234,213,170,85,170,84,168,81,162,68,136,17,35,70,140,24,49,98,197,138,21,42,85,171,87,175,94,188,121,243,230,2 04,152,49,98,197,138,21,43,86,172,88,177,99,198,141,27,54,109,218,180,105,210,165,74,149,42,85,171,86,173,90,181,106,212,168,80,160,64,129,2,4,9,19,39,78,157,58,117,234,213,170,85,170,85,171 ,87,175,95,190,124,248,240,225,195,135,15,30,60,120,240,224,193,131,6,12,25,51,102,205,154,53,107,215,175,94,189,122,245,235,215,175,95,190,125,251,246,236,216,176,96,192,129,2,4,8,17,34,68, 137,19,39,78,156,56,113,227,199,143,30,61,122,245,234,213,171,86,172,89,179,102,205,154,53,107,215,174,92,185,115,231,207,158,61,123,247,239,223,191]
2/8/2022, 10:47:44 AM [debug] Local GMT Timezone is : +00:00
2/8/2022, 10:47:44 AM [info] autoConnect enabled, starting communication
2/8/2022, 10:47:44 AM [verbose] Start Connection to Panel
2/8/2022, 10:47:44 AM [debug] TCP Socket is not already created, Create It
2/8/2022, 10:47:44 AM [debug] TCP Socket must be created now
2/8/2022, 10:47:44 AM [info] Connecting to mqtt server: mqtt://192.168.100.235:1883
2/8/2022, 10:47:44 AM [info] Connected on mqtt server: mqtt://192.168.100.235:1883
2/8/2022, 10:47:44 AM [info] Panel is not connected, waiting
2/8/2022, 10:47:44 AM [verbose] Socket Connected, log in to panel
2/8/2022, 10:47:44 AM [verbose] Authenticating to the panel
2/8/2022, 10:47:44 AM [verbose] Command[1] Sending Command: RMT=5678
2/8/2022, 10:47:44 AM [debug] Command[1] Writing command buffer to socket: [2,48,49,82,77,84,61,53,54,55,56,23,66,48,70,56,3]
2/8/2022, 10:47:44 AM [debug] Command[1] Data Sent : RMT=5678
2/8/2022, 10:47:49 AM [warn] Command[1] 'RMT=5678' Timeout
2/8/2022, 10:47:49 AM [debug] Command[1] retrying with a new command Id
2/8/2022, 10:47:49 AM [verbose] Command[1] Sending Command: RMT=5678
2/8/2022, 10:47:49 AM [debug] Command[1] Writing command buffer to socket: [2,48,49,82,77,84,61,53,54,55,56,23,66,48,70,56,3]
2/8/2022, 10:47:49 AM [debug] Command[1] Data Sent : RMT=5678
2/8/2022, 10:47:49 AM [debug] Received data Buffer : [2,48,49,65,67,75,23,51,57,69,66,3]
2/8/2022, 10:47:49 AM [debug] Command[1] CRC Value : 39EB
2/8/2022, 10:47:49 AM [debug] Command[1] CRC Ok
2/8/2022, 10:47:49 AM [debug] Command[1] Command response from Panel
2/8/2022, 10:47:49 AM [debug] Command[1] Emitting expected command response
2/8/2022, 10:47:49 AM [verbose] Command[1] Received data from panel: ACK
2/8/2022, 10:47:49 AM [debug] Command[1] SendCommand receive this response : ACK
2/8/2022, 10:47:49 AM [verbose] Command[2] Sending Command: LCL
2/8/2022, 10:47:49 AM [debug] Command[2] Writing command buffer to socket: [2,48,50,76,67,76,23,65,53,65,70,3]
2/8/2022, 10:47:49 AM [debug] Command[2] Data Sent : LCL
2/8/2022, 10:47:49 AM [debug] Received data Buffer : [2,48,50,65,67,75,23,51,57,65,70,3]
2/8/2022, 10:47:49 AM [debug] Command[2] CRC Value : 39AF
2/8/2022, 10:47:49 AM [debug] Command[2] CRC Ok
2/8/2022, 10:47:49 AM [debug] Command[2] Command response from Panel
2/8/2022, 10:47:49 AM [debug] Command[2] Emitting expected command response
2/8/2022, 10:47:49 AM [verbose] Command[2] Received data from panel: ACK
2/8/2022, 10:47:49 AM [debug] Command[2] SendCommand receive this response : ACK
2/8/2022, 10:47:49 AM [debug] LCL command result OK
2/8/2022, 10:47:49 AM [verbose] Setting up encryption using Panel Id
2/8/2022, 10:47:49 AM [verbose] Command[3] Sending Command: CUSTLST?
2/8/2022, 10:47:49 AM [debug] Command[3] Writing command buffer to socket: [2,17,50,54,72,66,124,10,241,41,160,215,199,148,115,188,60,3]
2/8/2022, 10:47:49 AM [debug] Command[3] Data Sent : CUSTLST?
2/8/2022, 10:47:49 AM [debug] Received data Buffer : [2,17,50,54,69,39,26,73,132,76,192,217,3]
2/8/2022, 10:47:49 AM [debug] Command[3] CRC Value : 9641
2/8/2022, 10:47:49 AM [debug] Command[3] CRC Ok
2/8/2022, 10:47:49 AM [verbose] Command[3] inCryptTest enabled, emitting response without checks
2/8/2022, 10:47:49 AM [debug] Command[3] SendCommand receive this response : N05
2/8/2022, 10:47:49 AM [debug] cryptTableTester response: N05
2/8/2022, 10:47:49 AM [verbose] Command[4] Sending Command: CUSTLST?
2/8/2022, 10:47:49 AM [debug] Command[4] Writing command buffer to socket: [2,17,50,49,72,66,124,10,241,41,160,215,199,153,0,183,61,3]
2/8/2022, 10:47:49 AM [debug] Command[4] Data Sent : CUSTLST?
2/8/2022, 10:47:50 AM [debug] Received data Buffer : [2,17,50,49,69,39,26,73,136,76,178,220,3]
2/8/2022, 10:47:50 AM [debug] Command[4] CRC Value : 56F4
2/8/2022, 10:47:50 AM [debug] Command[4] CRC Ok
2/8/2022, 10:47:50 AM [verbose] Command[4] inCryptTest enabled, emitting response without checks
2/8/2022, 10:47:50 AM [debug] Command[4] SendCommand receive this response : N05
2/8/2022, 10:47:50 AM [debug] cryptTableTester response: N05
2/8/2022, 10:47:50 AM [verbose] Command[5] Sending Command: CUSTLST?
2/8/2022, 10:47:50 AM [debug] Command[5] Writing command buffer to socket: [2,17,50,48,72,66,124,10,241,41,160,215,199,149,7,178,60,3]
2/8/2022, 10:47:50 AM [debug] Command[5] Data Sent : CUSTLST?
2/8/2022, 10:47:50 AM [debug] Received data Buffer : [2,17,50,48,69,39,26,73,132,76,183,209,3]
2/8/2022, 10:47:50 AM [debug] Command[5] CRC Value : 96C9
2/8/2022, 10:47:50 AM [debug] Command[5] CRC Ok
2/8/2022, 10:47:50 AM [verbose] Command[5] inCryptTest enabled, emitting response without checks
2/8/2022, 10:47:50 AM [debug] Command[5] SendCommand receive this response : N05
2/8/2022, 10:47:50 AM [debug] cryptTableTester response: N05
2/8/2022, 10:47:50 AM [error] Unable to connect to the control panel.
2/8/2022, 10:47:50 AM [verbose] Command[6] Sending Command: DCN
2/8/2022, 10:47:50 AM [debug] Command[6] Writing command buffer to socket: [2,17,50,51,79,84,97,73,139,79,193,172,3]
2/8/2022, 10:47:50 AM [debug] Command[6] Data Sent : DCN
2/8/2022, 10:47:50 AM [debug] Received data Buffer : [2,17,50,51,74,84,100,73,251,67,193,173,3]
2/8/2022, 10:47:50 AM [debug] Command[6] CRC Value : F95E
2/8/2022, 10:47:50 AM [debug] Command[6] CRC Ok
2/8/2022, 10:47:50 AM [debug] Command[6] Command response from Panel
2/8/2022, 10:47:50 AM [debug] Command[6] Emitting expected command response
2/8/2022, 10:47:50 AM [verbose] Command[6] Received data from panel: ACK
2/8/2022, 10:47:50 AM [debug] Command[6] SendCommand receive this response : ACK
2/8/2022, 10:47:50 AM [debug] Socket Destroyed.
2/8/2022, 10:47:50 AM [info] TCP Socket Disconnected
2/8/2022, 10:47:50 AM [debug] Socket Disconnected.
` i dont understand why its not working, maybe my firmware is too old? (05 2018), or i missed something? Does i have to configure the ip of the machine wich contains your app instead of the risco cloud url?

Any clue?

Thanks for your return.

pergolafabio commented 2 years ago

Hey, make sure you have the latest update of this project, there were some improvemenst

but the socket destroyed issue, i have it too sometimes, just restart it, it should work on second or third attempt....

see also here : https://github.com/vanackej/risco-mqtt-local/issues/9

pergolafabio commented 2 years ago

sorry , disregard, you disabled the cloud, i still have cloud enabled, and i use the proxy method

vanackej commented 2 years ago

Well that's strange, I never encounter this error. Your panel is returning a N05 error code (invalid parameter) to the CUSTLST command, did not expect it to happen.

panelID is supposed to be an integer, not a string. Can you try to change panelId from "0001" to just 1 please ?

nonameboy007 commented 2 years ago

Well that's strange, I never encounter this error. Your panel is returning a N05 error code (invalid parameter) to the CUSTLST command, did not expect it to happen.

Thanks for your return.

here is the result with the "panel_id": 1 parameter

Loading config from: /root/risco/config.json 2022-2-8 13:35:21 [debug] User config: { "log": "debug", "panel": { "panelIp": "192.168.100.182", "panelPort": 1000, "panelPassword": "5678", "panelId": 1, "watchDogInterval": 10000 }, "mqtt": { "url": "mqtt://192.168.100.235:1883" }, "zones": { "default": { "off_delay": 30, "name_prefix": "Sensor - " } } } 2022-2-8 13:35:21 [debug] Merged config: { "log": "debug", "logColorize": false, "ha_discovery_prefix_topic": "homeassistant", "ha_discovery_include_nodeId": false, "panel": { "panelIp": "192.168.100.182", "panelPort": 1000, "panelPassword": "5678", "panelId": 1, "watchDogInterval": 10000 }, "zones": { "default": { "off_delay": 30, "device_class": "motion", "name_prefix": "Sensor - " } }, "mqtt": { "url": "mqtt://192.168.100.235:1883", "reconnectPeriod": 5000, "clientId": "risco-mqtt-8aa247", "will": { "topic": "riscopanel/alarm/status", "payload": "offline", "qos": 1, "retain": true, "properties": { "willDelayInterval": 30 } } } } 2022-2-8 13:35:21 [debug] Pseudo Buffer Created for Panel Id(1): [2,5,11,23,47,94,189,122,244,232,208,161,66,133,11,22,45,90,181,107,214,173,90,180,104,208,161,67,135,15,31,63,126,253,251,247,239,223,191,127,255,255,254,252,249,242,229,202,149,43,86,172,8 8,176,96,193,131,6,12,25,50,100,200,144,32,65,130,5,11,23,47,95,190,125,250,245,234,213,170,85,170,84,168,81,162,68,136,17,35,70,140,24,49,98,197,138,21,42,85,171,87,175,94,188,121,243,230,2 04,152,49,98,197,138,21,43,86,172,88,177,99,198,141,27,54,109,218,180,105,210,165,74,149,42,85,171,86,173,90,181,106,212,168,80,160,64,129,2,4,9,19,39,78,157,58,117,234,213,170,85,170,85,171 ,87,175,95,190,124,248,240,225,195,135,15,30,60,120,240,224,193,131,6,12,25,51,102,205,154,53,107,215,175,94,189,122,245,235,215,175,95,190,125,251,246,236,216,176,96,192,129,2,4,8,17,34,68, 137,19,39,78,156,56,113,227,199,143,30,61,122,245,234,213,171,86,172,89,179,102,205,154,53,107,215,174,92,185,115,231,207,158,61,123,247,239,223,191] 2022-2-8 13:35:21 [debug] Local GMT Timezone is : +01:00 2022-2-8 13:35:21 [info] autoConnect enabled, starting communication 2022-2-8 13:35:21 [verbose] Start Connection to Panel 2022-2-8 13:35:21 [debug] TCP Socket is not already created, Create It 2022-2-8 13:35:21 [debug] TCP Socket must be created now 2022-2-8 13:35:21 [info] Connecting to mqtt server: mqtt://192.168.100.235:1883 2022-2-8 13:35:21 [info] Connected on mqtt server: mqtt://192.168.100.235:1883 2022-2-8 13:35:21 [info] Panel is not connected, waiting 2022-2-8 13:35:21 [verbose] Socket Connected, log in to panel 2022-2-8 13:35:21 [verbose] Authenticating to the panel 2022-2-8 13:35:21 [verbose] Command[1] Sending Command: RMT=5678 2022-2-8 13:35:21 [debug] Command[1] Writing command buffer to socket: [2,48,49,82,77,84,61,53,54,55,56,23,66,48,70,56,3] 2022-2-8 13:35:21 [debug] Command[1] Data Sent : RMT=5678 2022-2-8 13:35:26 [warn] Command[1] 'RMT=5678' Timeout 2022-2-8 13:35:26 [debug] Command[1] retrying with a new command Id 2022-2-8 13:35:26 [verbose] Command[1] Sending Command: RMT=5678 2022-2-8 13:35:26 [debug] Command[1] Writing command buffer to socket: [2,48,49,82,77,84,61,53,54,55,56,23,66,48,70,56,3] 2022-2-8 13:35:26 [debug] Command[1] Data Sent : RMT=5678 2022-2-8 13:35:27 [debug] Received data Buffer : [2,48,49,65,67,75,23,51,57,69,66,3] 2022-2-8 13:35:27 [debug] Command[1] CRC Value : 39EB 2022-2-8 13:35:27 [debug] Command[1] CRC Ok 2022-2-8 13:35:27 [debug] Command[1] Command response from Panel 2022-2-8 13:35:27 [debug] Command[1] Emitting expected command response 2022-2-8 13:35:27 [verbose] Command[1] Received data from panel: ACK 2022-2-8 13:35:27 [debug] Command[1] SendCommand receive this response : ACK 2022-2-8 13:35:27 [verbose] Command[2] Sending Command: LCL 2022-2-8 13:35:27 [debug] Command[2] Writing command buffer to socket: [2,48,50,76,67,76,23,65,53,65,70,3] 2022-2-8 13:35:27 [debug] Command[2] Data Sent : LCL 2022-2-8 13:35:27 [debug] Received data Buffer : [2,48,50,65,67,75,23,51,57,65,70,3] 2022-2-8 13:35:27 [debug] Command[2] CRC Value : 39AF 2022-2-8 13:35:27 [debug] Command[2] CRC Ok 2022-2-8 13:35:27 [debug] Command[2] Command response from Panel 2022-2-8 13:35:27 [debug] Command[2] Emitting expected command response 2022-2-8 13:35:27 [verbose] Command[2] Received data from panel: ACK 2022-2-8 13:35:27 [debug] Command[2] SendCommand receive this response : ACK 2022-2-8 13:35:27 [debug] LCL command result OK 2022-2-8 13:35:27 [verbose] Setting up encryption using Panel Id 2022-2-8 13:35:27 [verbose] Command[3] Sending Command: CUSTLST? 2022-2-8 13:35:27 [debug] Command[3] Writing command buffer to socket: [2,17,50,54,72,66,124,10,241,41,160,215,199,148,115,188,60,3] 2022-2-8 13:35:27 [debug] Command[3] Data Sent : CUSTLST? 2022-2-8 13:35:27 [debug] Received data Buffer : [2,17,50,54,69,39,26,73,132,76,192,217,3] 2022-2-8 13:35:27 [debug] Command[3] CRC Value : 9641 2022-2-8 13:35:27 [debug] Command[3] CRC Ok 2022-2-8 13:35:27 [verbose] Command[3] inCryptTest enabled, emitting response without checks 2022-2-8 13:35:27 [debug] Command[3] SendCommand receive this response : N05 2022-2-8 13:35:27 [debug] cryptTableTester response: N05 2022-2-8 13:35:27 [verbose] Command[4] Sending Command: CUSTLST? 2022-2-8 13:35:27 [debug] Command[4] Writing command buffer to socket: [2,17,50,49,72,66,124,10,241,41,160,215,199,153,0,183,61,3] 2022-2-8 13:35:27 [debug] Command[4] Data Sent : CUSTLST? 2022-2-8 13:35:27 [debug] Received data Buffer : [2,17,50,49,69,39,26,73,136,76,178,220,3] 2022-2-8 13:35:27 [debug] Command[4] CRC Value : 56F4 2022-2-8 13:35:27 [debug] Command[4] CRC Ok 2022-2-8 13:35:27 [verbose] Command[4] inCryptTest enabled, emitting response without checks 2022-2-8 13:35:27 [debug] Command[4] SendCommand receive this response : N05 2022-2-8 13:35:27 [debug] cryptTableTester response: N05 2022-2-8 13:35:27 [verbose] Command[5] Sending Command: CUSTLST? 2022-2-8 13:35:27 [debug] Command[5] Writing command buffer to socket: [2,17,50,48,72,66,124,10,241,41,160,215,199,149,7,178,60,3] 2022-2-8 13:35:27 [debug] Command[5] Data Sent : CUSTLST? 2022-2-8 13:35:27 [debug] Received data Buffer : [2,17,50,48,69,39,26,73,132,76,183,209,3] 2022-2-8 13:35:27 [debug] Command[5] CRC Value : 96C9 2022-2-8 13:35:27 [debug] Command[5] CRC Ok 2022-2-8 13:35:27 [verbose] Command[5] inCryptTest enabled, emitting response without checks 2022-2-8 13:35:27 [debug] Command[5] SendCommand receive this response : N05 2022-2-8 13:35:27 [debug] cryptTableTester response: N05 2022-2-8 13:35:27 [error] Unable to connect to the control panel. 2022-2-8 13:35:27 [verbose] Command[6] Sending Command: DCN 2022-2-8 13:35:27 [debug] Command[6] Writing command buffer to socket: [2,17,50,51,79,84,97,73,139,79,193,172,3] 2022-2-8 13:35:27 [debug] Command[6] Data Sent : DCN 2022-2-8 13:35:28 [debug] Received data Buffer : [2,17,50,51,74,84,100,73,251,67,193,173,3] 2022-2-8 13:35:28 [debug] Command[6] CRC Value : F95E 2022-2-8 13:35:28 [debug] Command[6] CRC Ok 2022-2-8 13:35:28 [debug] Command[6] Command response from Panel 2022-2-8 13:35:28 [debug] Command[6] Emitting expected command response 2022-2-8 13:35:28 [verbose] Command[6] Received data from panel: ACK 2022-2-8 13:35:28 [debug] Command[6] SendCommand receive this response : ACK 2022-2-8 13:35:28 [debug] Socket Destroyed. 2022-2-8 13:35:28 [info] TCP Socket Disconnected 2022-2-8 13:35:28 [debug] Socket Disconnected.

nonameboy007 commented 2 years ago

sorry , disregard, you disabled the cloud, i still have cloud enabled, and i use the proxy method

hello @pergolafabio ,

i'm using this version; i think its the latest:

npm list | grep -i risco /root/risco ├─┬ @vanackej/risco-mqtt-local@0.3.4 │ ├─┬ @vanackej/risco-lan-bridge@0.12.2 └── risco-lan-bridge@0.10.5

does the proxy mode mean i have to change the default cloud url with the ip of my server with the risco-mqtt-local code? and enable the cloud parameter?

The alarm is a Agility4.

pergolafabio commented 2 years ago

yes, you have 2 ways:

on your risco panel, the www.riscocloud.be 33000 => should be changed to IP of your docker + 33333

OR , f you have an advanced router, you can make an IPTABLES rule, to forward OUTGOING traffic back to internal traffic, tahts what i did, thn i dont have to configure anything on the risco panel... (not the same as portforward = INCOMING)

make sure also to enable proxy in the json of this project, mine looks like below; the IP config is irrelevant

{
  "log": "info",
  "logColorize": true,
  "panel": {
    "panelIp": "192.168.1.150",
    "panelPort": 1000,
    "panelPassword": 1234,
    "panelId": "0001",
    "watchDogInterval": 10000,
    "guessPasswordAndPanelId": false,
    "Disable_RiscoCloud":  true,
    "Enable_RiscoCloud":  true,
    "autoDiscover":  false,
    "socketMode": "proxy",
    "listeningPort": 33000,
    "cloudPort": 33000,
    "cloudUrl": "www.riscocloud.com"    
  },
  "mqtt": {
    "url": "mqtt://homeassistant:1883",
    "username": "hassio",
    "password": "hassio"
  },
  "zones": {
    "default": {
      "off_delay": 0,
      "name_prefix": ""
    },
    "GARAGE": {
      "off_delay": 0,
      "device_class": "garage_door",
      "name": "Garage Door",
      "name_prefix": ""
    }
  }
}
nonameboy007 commented 2 years ago

yes, you have 2 ways:

on your risco panel, the www.riscocloud.be 33000 => should be changed to IP of your docker + 33333

OR , f you have an advanced router, you can make an IPTABLES rule, to forward OUTGOING traffic back to internal traffic, tahts what i did, thn i dont have to configure anything on the risco panel... (not the same as portforward = INCOMING)

make sure also to enable proxy in the json of this project, mine looks like below; the IP config is irrelevant

{
  "log": "info",
  "logColorize": true,
  "panel": {
    "panelIp": "192.168.1.150",
    "panelPort": 1000,
    "panelPassword": 1234,
    "panelId": "0001",
    "watchDogInterval": 10000,
  "guessPasswordAndPanelId": false,
  "Disable_RiscoCloud":  true,
  "Enable_RiscoCloud":  true,
  "autoDiscover":  false,
  "socketMode": "proxy",
  "listeningPort": 33000,
  "cloudPort": 33000,
  "cloudUrl": "www.riscocloud.com"    
  },
  "mqtt": {
    "url": "mqtt://homeassistant:1883",
    "username": "hassio",
    "password": "hassio"
  },
  "zones": {
    "default": {
      "off_delay": 0,
      "name_prefix": ""
    },
    "GARAGE": {
      "off_delay": 0,
      "device_class": "garage_door",
      "name": "Garage Door",
      "name_prefix": ""
    }
  }
}

Why ip of my docker + 33333, and not ip of my docker and 33000 for the cs configuration?

Thanks

pergolafabio commented 2 years ago

sorry, type error , its 33000, below is important:

"socketMode": "proxy",
"listeningPort": 33000,
"cloudPort": 33000,
"cloudUrl": "www.riscocloud.com"
nonameboy007 commented 2 years ago

sorry, type error , its 33000, below is important:

"socketMode": "proxy",
"listeningPort": 33000,
"cloudPort": 33000,
"cloudUrl": "www.riscocloud.com"

i will try this end of afternoon , no kids at home ^^

i 'll keep you informed.

Thanks again @pergolafabio

Another question, does someone have the upgrade password for a firmware update? (i sent an email to risco, but no response for the moment)

Cheers

pergolafabio commented 2 years ago

try : 97239637777

nonameboy007 commented 2 years ago

re,

so I was able to test right now. Indeed, it is better. However, I encountered the following error:

Loading config from: /root/risco/config.json
2022-2-8 18:41:22 [debug] User config:
{
  "log": "debug",
  "logColorize": true,
  "panel": {
    "panelIp": "192.168.100.182",
    "panelPort": 1000,
    "panelPassword": 5678,
    "panelId": "0001",
    "watchDogInterval": 10000,
    "guessPasswordAndPanelId": false,
    "Disable_RiscoCloud": true,
    "Enable_RiscoCloud": true,
    "autoDiscover": true,
    "socketMode": "proxy",
    "listeningPort": 33000,
    "cloudPort": 33000,
    "cloudUrl": "www.riscocloud.com"
  },
  "mqtt": {
    "url": "mqtt://homeassistant:1883"
  },
  "zones": {
    "default": {
      "off_delay": 0,
      "name_prefix": ""
    },
    "GARAGE": {
      "off_delay": 0,
      "device_class": "garage_door",
      "name": "Garage Door",
      "name_prefix": ""
    }
  }
}
2022-2-8 18:41:22 [debug] Merged config:
{
  "log": "debug",
  "logColorize": true,
  "ha_discovery_prefix_topic": "homeassistant",
  "ha_discovery_include_nodeId": false,
  "panel": {
    "panelIp": "192.168.100.182",
    "panelPort": 1000,
    "panelPassword": 5678,
    "panelId": "0001",
    "watchDogInterval": 10000,
    "guessPasswordAndPanelId": false,
    "Disable_RiscoCloud": true,
    "Enable_RiscoCloud": true,
    "autoDiscover": true,
    "socketMode": "proxy",
    "listeningPort": 33000,
    "cloudPort": 33000,
    "cloudUrl": "www.riscocloud.com"
  },
  "zones": {
    "default": {
      "off_delay": 0,
      "device_class": "motion",
      "name_prefix": ""
    },
    "GARAGE": {
      "off_delay": 0,
      "device_class": "garage_door",
      "name": "Garage Door",
      "name_prefix": ""
    }
  },
  "mqtt": {
    "url": "mqtt://homeassistant:1883",
    "reconnectPeriod": 5000,
    "clientId": "risco-mqtt-47ebe2",
    "will": {
      "topic": "riscopanel/alarm/status",
      "payload": "offline",
      "qos": 1,
      "retain": true,
      "properties": {
        "willDelayInterval": 30
      }
    }
  }
}
2022-2-8 18:41:22 [debug] Pseudo Buffer Created for Panel Id(0001): 
[2,5,11,23,47,94,189,122,244,232,208,161,66,133,11,22,45,90,181,107,214,173,90,180,104,208,161,67,135,15,31,63,126,253,251,247,239,223,191,127,255,255,254,252,249,242,229,202,149,43,86,172,88,176,96,193,131,6,12,25,50,100,200,144,32,65,130,5,11,23,47,95,190,125,250,245,234,213,170,85,170,84,168,81,162,68,136,17,35,70,140,24,49,98,197,138,21,42,85,171,87,175,94,188,121,243,230,204,152,49,98,197,138,21,43,86,172,88,177,99,198,141,27,54,109,218,180,105,210,165,74,149,42,85,171,86,173,90,181,106,212,168,80,160,64,129,2,4,9,19,39,78,157,58,117,234,213,170,85,170,85,171,87,175,95,190,124,248,240,225,195,135,15,30,60,120,240,224,193,131,6,12,25,51,102,205,154,53,107,215,175,94,189,122,245,235,215,175,95,190,125,251,246,236,216,176,96,192,129,2,4,8,17,34,68,137,19,39,78,156,56,113,227,199,143,30,61,122,245,234,213,171,86,172,89,179,102,205,154,53,107,215,174,92,185,115,231,207,158,61,123,247,239,223,191]
2022-2-8 18:41:22 [debug] Local GMT Timezone is : +01:00
2022-2-8 18:41:22 [info] autoConnect enabled, starting communication
2022-2-8 18:41:22 [verbose] Start Connection to Panel
2022-2-8 18:41:22 [debug] TCP Socket is not already created, Create It
2022-2-8 18:41:22 [debug] TCP Socket must be created now
2022-2-8 18:41:22 [info] Connecting to mqtt server: mqtt://homeassistant:1883
2022-2-8 18:41:22 [info] Listening on IP :: and Port 33000
2022-2-8 18:41:22 [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
2022-2-8 18:41:22 [info] MQTT close
2022-2-8 18:41:27 [info] MQTT reconnect
2022-2-8 18:41:27 [info] MQTT close
2022-2-8 18:41:32 [info] MQTT reconnect
2022-2-8 18:41:32 [info] MQTT close
2022-2-8 18:41:37 [info] MQTT reconnect
2022-2-8 18:41:37 [info] MQTT close
2022-2-8 18:41:42 [info] MQTT reconnect
2022-2-8 18:41:42 [info] MQTT close
2022-2-8 18:41:47 [info] MQTT reconnect
2022-2-8 18:41:47 [info] MQTT close
2022-2-8 18:41:52 [info] MQTT reconnect
2022-2-8 18:41:52 [info] MQTT close
2022-2-8 18:41:57 [info] MQTT reconnect
2022-2-8 18:41:57 [info] MQTT close
2022-2-8 18:42:02 [info] MQTT reconnect
2022-2-8 18:42:02 [info] MQTT close
2022-2-8 18:42:07 [info] MQTT reconnect
2022-2-8 18:42:07 [info] MQTT close
2022-2-8 18:42:12 [info] MQTT reconnect
2022-2-8 18:42:12 [info] MQTT close
2022-2-8 18:42:15 [info] Incoming connection from panel received
2022-2-8 18:42:15 [debug] RiscoCloud Socket: connect
2022-2-8 18:42:15 [info] RiscoCloud Socket: ready
2022-2-8 18:42:15 [info] Setting a timer for panel connection in 30000 ms
2022-2-8 18:42:17 [debug] [Panel => Cloud] Forwarding panel packet to cloud: [2,19,55,54,4,81,0,16,3,0,50,50,52,48,48,52,49,49,57,55,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,0,23,23,69,76,5,20,1,255,255,255,255,255,255,48,16,2,1,0,0,0,0,5,55,43,41,66,0,0,16,2,15,49,57,50,46,49,54,56,46,49,48,48,46,49,56,50,1,23,49,52,69,50,3]
2022-2-8 18:42:17 [info] MQTT reconnect
2022-2-8 18:42:17 [info] MQTT close
2022-2-8 18:42:19 [debug] [Cloud => Panel] Forwarding Cloud data Buffer to panel: [2,19,55,54,0,9,0,16,3,248,23,66,23,34,16,2,8,16,3,23,48,50,57,55,3]
2022-2-8 18:42:22 [info] MQTT reconnect
2022-2-8 18:42:22 [info] MQTT close
2022-2-8 18:42:27 [info] MQTT reconnect
2022-2-8 18:42:27 [info] MQTT close
2022-2-8 18:42:32 [info] MQTT reconnect
2022-2-8 18:42:32 [info] MQTT close
2022-2-8 18:42:37 [info] MQTT reconnect
2022-2-8 18:42:37 [info] MQTT close
2022-2-8 18:42:42 [info] MQTT reconnect
2022-2-8 18:42:42 [info] MQTT close
2022-2-8 18:42:45 [verbose] Authenticating to the panel
2022-2-8 18:42:45 [verbose] Command[1] Sending Command: RMT=5678
2022-2-8 18:42:45 [debug] Command[1] Writing command buffer to socket: [2,48,49,82,77,84,61,53,54,55,56,23,66,48,70,56,3]
2022-2-8 18:42:45 [debug] Command[1] Data Sent : RMT=5678
2022-2-8 18:42:45 [debug] [Panel => Bridge] Received unencrypted data Buffer from Panel : [2,48,49,65,67,75,23,51,57,69,66,3]
2022-2-8 18:42:45 [debug] Received data Buffer : [2,48,49,65,67,75,23,51,57,69,66,3]
2022-2-8 18:42:45 [debug] Command[1] CRC Value : 39EB
2022-2-8 18:42:45 [debug] Command[1] CRC Ok
2022-2-8 18:42:45 [debug] Command[1] Command response from Panel
2022-2-8 18:42:45 [debug] Command[1] Emitting expected command response
2022-2-8 18:42:45 [verbose] Command[1] Received data from panel: ACK
2022-2-8 18:42:45 [debug] Command[1] SendCommand receive this response : ACK
2022-2-8 18:42:45 [verbose] Command[2] Sending Command: LCL
2022-2-8 18:42:45 [debug] Command[2] Writing command buffer to socket: [2,48,50,76,67,76,23,65,53,65,70,3]
2022-2-8 18:42:45 [debug] Command[2] Data Sent : LCL
2022-2-8 18:42:45 [debug] [Panel => Bridge] Received unencrypted data Buffer from Panel : [2,48,50,65,67,75,23,51,57,65,70,3]
2022-2-8 18:42:45 [debug] Received data Buffer : [2,48,50,65,67,75,23,51,57,65,70,3]
2022-2-8 18:42:45 [debug] Command[2] CRC Value : 39AF
2022-2-8 18:42:45 [debug] Command[2] CRC Ok
2022-2-8 18:42:45 [debug] Command[2] Command response from Panel
2022-2-8 18:42:45 [debug] Command[2] Emitting expected command response
2022-2-8 18:42:45 [verbose] Command[2] Received data from panel: ACK
2022-2-8 18:42:45 [debug] Command[2] SendCommand receive this response : ACK
2022-2-8 18:42:45 [debug] LCL command result OK
2022-2-8 18:42:45 [verbose] Setting up encryption using Panel Id
2022-2-8 18:42:45 [verbose] Command[3] Sending Command: CUSTLST?
2022-2-8 18:42:45 [debug] Command[3] Writing command buffer to socket: [2,17,50,54,72,66,124,10,241,41,160,215,199,148,115,188,60,3]
2022-2-8 18:42:45 [debug] Command[3] Data Sent : CUSTLST?
2022-2-8 18:42:46 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,50,54,69,39,26,73,132,76,192,217,3]
2022-2-8 18:42:46 [debug] Received data Buffer : [2,17,50,54,69,39,26,73,132,76,192,217,3]
2022-2-8 18:42:46 [debug] Command[3] CRC Value : 9641
2022-2-8 18:42:46 [debug] Command[3] CRC Ok
2022-2-8 18:42:46 [verbose] Command[3] inCryptTest enabled, emitting response without checks
2022-2-8 18:42:46 [debug] Command[3] SendCommand receive this response : N05
2022-2-8 18:42:46 [debug] cryptTableTester response: N05
2022-2-8 18:42:46 [verbose] Command[4] Sending Command: CUSTLST?
2022-2-8 18:42:46 [debug] Command[4] Writing command buffer to socket: [2,17,50,49,72,66,124,10,241,41,160,215,199,153,0,183,61,3]
2022-2-8 18:42:46 [debug] Command[4] Data Sent : CUSTLST?
2022-2-8 18:42:46 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,53,88,68,123,10,128,87,217,197,253,140,111,168,38,59,0,119,152,70,251,128,77,128,44,228,224,3]
2022-2-8 18:42:46 [debug] Received data Buffer : [2,17,55,53,88,68,123,10,128,87,217,197,253,140,111,168,38,59,0,119,152,70,251,128,77,128,44,228,224,3]
2022-2-8 18:42:46 [debug] Command[50] CRC Value : 4D4A
2022-2-8 18:42:46 [debug] Command[50] CRC Ok
2022-2-8 18:42:46 [verbose] Command[50] inCryptTest enabled, emitting response without checks
2022-2-8 18:42:46 [debug] Command[4] SendCommand receive this response : SSTT=---------------
2022-2-8 18:42:46 [debug] cryptTableTester response: SSTT=---------------
2022-2-8 18:42:46 [verbose] Connection to the control panel successfully established.
2022-2-8 18:42:46 [debug] Risco Panel Connected.
2022-2-8 18:42:46 [verbose] Command[5] Sending Command: PNLCNF
2022-2-8 18:42:46 [debug] Command[5] Writing command buffer to socket: [2,17,50,48,91,89,99,29,243,60,227,216,226,229,118,3]
2022-2-8 18:42:46 [debug] Command[5] Data Sent : PNLCNF
2022-2-8 18:42:46 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,50,49,69,39,26,73,136,76,178,220,3]
2022-2-8 18:42:46 [debug] Received data Buffer : [2,17,50,49,69,39,26,73,136,76,178,220,3]
2022-2-8 18:42:46 [debug] Command[4] CRC Value : 56F4
2022-2-8 18:42:46 [debug] Command[4] CRC Ok
2022-2-8 18:42:46 [debug] Command[4] Command response from Panel
2022-2-8 18:42:46 [warn] Command[4] Command response was unexpected, ignoring. Data[N05]. sequenceId[5]
2022-2-8 18:42:46 [verbose] Command[4] Received data from panel: N05
2022-2-8 18:42:46 [warn] Command[4] Receipt of an error code: Invalid parameter
2022-2-8 18:42:46 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,50,48,91,89,99,29,243,60,201,186,135,145,113,183,49,32,28,98,227,44,155,228,77,241,80,147,151,3]
2022-2-8 18:42:46 [debug] Received data Buffer : [2,17,50,48,91,89,99,29,243,60,201,186,135,145,113,183,49,32,28,98,227,44,155,228,77,241,80,147,151,3]
2022-2-8 18:42:46 [debug] Command[5] CRC Value : E8C6
2022-2-8 18:42:46 [debug] Command[5] CRC Ok
2022-2-8 18:42:46 [debug] Command[5] Command response from Panel
2022-2-8 18:42:46 [debug] Command[5] Emitting expected command response
2022-2-8 18:42:46 [verbose] Command[5] Received data from panel: PNLCNF=RW032:618VGMI
2022-2-8 18:42:46 [debug] Command[5] SendCommand receive this response : PNLCNF=RW032:618VGMI
(node:20806) UnhandledPromiseRejectionWarning: Error: Unsupported panel type : RW032:618VGMI
    at RiscoComm.<anonymous> (/root/risco/node_modules/@vanackej/risco-lan-bridge/dist/RiscoComm.js:354:27)
    at Generator.next (<anonymous>)
    at fulfilled (/root/risco/node_modules/tslib/tslib.js:114:62)
(node:20806) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:20806) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2022-2-8 18:42:47 [info] MQTT reconnect
2022-2-8 18:42:47 [info] MQTT close
2022-2-8 18:42:48 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,52,91,68,123,10,140,71,217,197,253,140,111,168,38,59,127,119,240,70,251,186,30,240,90,147,3]
2022-2-8 18:42:48 [debug] Received data Buffer : [2,17,55,52,91,68,123,10,140,71,217,197,253,140,111,168,38,59,127,119,240,70,251,186,30,240,90,147,3]
2022-2-8 18:42:48 [debug] Command[51] CRC Value : DD2C
2022-2-8 18:42:48 [debug] Command[51] CRC Ok
2022-2-8 18:42:48 [debug] Command[51] Data from Panel, need to send an ACK.
2022-2-8 18:42:48 [debug] Command[51] Sending Ack.
2022-2-8 18:42:48 [verbose] Command[51] Received data from panel: PSTT1=--------R-E--
2022-2-8 18:42:48 [debug] Command[51] Data type: Partition Status
2022-2-8 18:42:49 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,55,91,68,123,10,143,71,217,197,253,140,111,168,38,59,0,119,152,70,251,186,24,132,92,232,3]
2022-2-8 18:42:49 [debug] Received data Buffer : [2,17,55,55,91,68,123,10,143,71,217,197,253,140,111,168,38,59,0,119,152,70,251,186,24,132,92,232,3]
2022-2-8 18:42:49 [debug] Command[52] CRC Value : B048
2022-2-8 18:42:49 [debug] Command[52] CRC Ok
2022-2-8 18:42:49 [debug] Command[52] Data from Panel, need to send an ACK.
2022-2-8 18:42:49 [debug] Command[52] Sending Ack.
2022-2-8 18:42:49 [verbose] Command[52] Received data from panel: PSTT2=-------------
2022-2-8 18:42:49 [debug] Command[52] Data type: Partition Status
2022-2-8 18:42:49 [error] Panel Socket Closed.
2022-2-8 18:42:49 [debug] RiscoCloud Socket Destroyed.
2022-2-8 18:42:49 [error] TCP Socket Disconnected
2022-2-8 18:42:52 [info] MQTT reconnect
2022-2-8 18:42:52 [info] MQTT close
2022-2-8 18:42:57 [info] MQTT reconnect
2022-2-8 18:42:57 [info] MQTT close
2022-2-8 18:42:59 [verbose] Start Connection to Panel
2022-2-8 18:42:59 [debug] TCP Socket is already created, Connect It
2022-2-8 18:42:59 [debug] TCP Socket must be created now
2022-2-8 18:42:59 [info] Listening on IP :: and Port 33000
2022-2-8 18:42:59 [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
2022-2-8 18:43:02 [info] MQTT reconnect
2022-2-8 18:43:02 [info] MQTT close
2022-2-8 18:43:04 [info] Incoming connection from panel received
2022-2-8 18:43:04 [debug] RiscoCloud Socket: connect
2022-2-8 18:43:04 [info] RiscoCloud Socket: ready
2022-2-8 18:43:04 [info] Setting a timer for panel connection in 30000 ms
2022-2-8 18:43:04 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,54,91,68,123,10,142,71,217,197,253,140,111,168,38,59,0,119,152,70,251,186,28,133,81,233,3]
2022-2-8 18:43:04 [debug] Received data Buffer : [2,17,55,54,91,68,123,10,142,71,217,197,253,140,111,168,38,59,0,119,152,70,251,186,28,133,81,233,3]
2022-2-8 18:43:04 [debug] Command[53] CRC Value : F199
2022-2-8 18:43:04 [debug] Command[53] CRC Ok
2022-2-8 18:43:04 [debug] Command[53] Data from Panel, need to send an ACK.
2022-2-8 18:43:04 [debug] Command[53] Sending Ack.
2022-2-8 18:43:04 [verbose] Command[53] Received data from panel: PSTT3=-------------
2022-2-8 18:43:04 [debug] Command[53] Data type: Partition Status
2022-2-8 18:43:06 [debug] [Panel => Cloud] Forwarding panel packet to cloud: [2,19,55,55,4,81,0,16,3,0,50,50,52,48,48,52,49,49,57,55,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,0,23,23,69,76,5,20,1,255,255,255,255,255,255,48,16,2,1,0,0,0,0,5,55,43,41,66,0,0,16,2,15,49,57,50,46,49,54,56,46,49,48,48,46,49,56,50,1,23,55,66,49,65,3]
2022-2-8 18:43:07 [info] MQTT reconnect
2022-2-8 18:43:07 [info] MQTT close
2022-2-8 18:43:12 [info] MQTT reconnect
2022-2-8 18:43:12 [info] MQTT close
2022-2-8 18:43:17 [info] MQTT reconnect
2022-2-8 18:43:17 [info] MQTT close
2022-2-8 18:43:22 [info] MQTT reconnect
2022-2-8 18:43:22 [info] MQTT close
2022-2-8 18:43:27 [info] MQTT reconnect
2022-2-8 18:43:27 [info] MQTT close
2022-2-8 18:43:32 [info] MQTT reconnect
2022-2-8 18:43:32 [info] MQTT close
2022-2-8 18:43:34 [verbose] Authenticating to the panel
2022-2-8 18:43:34 [verbose] Command[6] Sending Command: RMT=5678
2022-2-8 18:43:34 [debug] Command[6] Writing command buffer to socket: [2,17,50,51,89,90,123,99,136,76,195,208,199,151,16,3,177,50,3]
2022-2-8 18:43:34 [debug] Command[6] Data Sent : RMT=5678
2022-2-8 18:43:34 [debug] [Panel => Bridge] Received unencrypted data Buffer from Panel : [2,48,54,65,67,75,23,70,57,53,69,3]
2022-2-8 18:43:34 [debug] Received data Buffer : [2,48,54,65,67,75,23,70,57,53,69,3]
2022-2-8 18:43:34 [debug] Command[6] CRC Value : F95E
2022-2-8 18:43:34 [debug] Command[6] CRC Ok
2022-2-8 18:43:34 [debug] Command[6] Command response from Panel
2022-2-8 18:43:34 [debug] Command[6] Emitting expected command response
2022-2-8 18:43:34 [verbose] Command[6] Received data from panel: ACK
2022-2-8 18:43:34 [debug] Command[6] SendCommand receive this response : ACK
2022-2-8 18:43:34 [verbose] Command[7] Sending Command: LCL
2022-2-8 18:43:34 [debug] Command[7] Writing command buffer to socket: [2,48,55,76,67,76,23,65,53,54,51,3]
2022-2-8 18:43:34 [debug] Command[7] Data Sent : LCL
2022-2-8 18:43:34 [debug] [Panel => Bridge] Received unencrypted data Buffer from Panel : [2,48,55,65,67,75,23,51,57,54,51,3]
2022-2-8 18:43:34 [debug] Received data Buffer : [2,48,55,65,67,75,23,51,57,54,51,3]
2022-2-8 18:43:34 [debug] Command[7] CRC Value : 3963
2022-2-8 18:43:34 [debug] Command[7] CRC Ok
2022-2-8 18:43:34 [debug] Command[7] Command response from Panel
2022-2-8 18:43:34 [debug] Command[7] Emitting expected command response
2022-2-8 18:43:34 [verbose] Command[7] Received data from panel: ACK
2022-2-8 18:43:34 [debug] Command[7] SendCommand receive this response : ACK
2022-2-8 18:43:34 [debug] LCL command result OK
2022-2-8 18:43:34 [verbose] Setting up encryption using Panel Id
2022-2-8 18:43:34 [verbose] Command[8] Sending Command: CUSTLST?
2022-2-8 18:43:34 [debug] Command[8] Writing command buffer to socket: [2,17,50,61,72,66,124,10,241,41,160,215,199,227,118,192,61,3]
2022-2-8 18:43:34 [debug] Command[8] Data Sent : CUSTLST?
2022-2-8 18:43:35 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,50,61,69,39,26,73,136,77,177,220,3]
2022-2-8 18:43:35 [debug] Received data Buffer : [2,17,50,61,69,39,26,73,136,77,177,220,3]
2022-2-8 18:43:35 [debug] Command[8] CRC Value : 57E4
2022-2-8 18:43:35 [debug] Command[8] CRC Ok
2022-2-8 18:43:35 [verbose] Command[8] inCryptTest enabled, emitting response without checks
2022-2-8 18:43:35 [debug] Command[8] SendCommand receive this response : N05
2022-2-8 18:43:35 [debug] cryptTableTester response: N05
2022-2-8 18:43:35 [verbose] Command[9] Sending Command: CUSTLST?
2022-2-8 18:43:35 [debug] Command[9] Writing command buffer to socket: [2,17,50,60,72,66,124,10,241,41,160,215,199,150,115,199,60,3]
2022-2-8 18:43:35 [debug] Command[9] Data Sent : CUSTLST?
2022-2-8 18:43:35 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,49,81,68,123,10,140,71,217,197,253,140,111,168,38,59,0,119,162,83,148,235,107,3]
2022-2-8 18:43:35 [debug] Received data Buffer : [2,17,55,49,81,68,123,10,140,71,217,197,253,140,111,168,38,59,0,119,162,83,148,235,107,3]
2022-2-8 18:43:35 [debug] Command[54] CRC Value : 8BF1
2022-2-8 18:43:35 [debug] Command[54] CRC Ok
2022-2-8 18:43:35 [verbose] Command[54] inCryptTest enabled, emitting response without checks
2022-2-8 18:43:35 [debug] Command[9] SendCommand receive this response : ZSTT1=----------
2022-2-8 18:43:35 [debug] cryptTableTester response: ZSTT1=----------
2022-2-8 18:43:35 [verbose] Connection to the control panel successfully established.
2022-2-8 18:43:35 [debug] Risco Panel Connected.
2022-2-8 18:43:35 [verbose] Command[10] Sending Command: PNLCNF
2022-2-8 18:43:35 [debug] Command[10] Writing command buffer to socket: [2,17,51,53,91,89,99,29,243,60,227,169,148,144,123,3]
2022-2-8 18:43:35 [debug] Command[10] Data Sent : PNLCNF
2022-2-8 18:43:35 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,50,60,69,39,26,73,132,77,176,209,3]
2022-2-8 18:43:35 [debug] Received data Buffer : [2,17,50,60,69,39,26,73,132,77,176,209,3]
2022-2-8 18:43:35 [debug] Command[9] CRC Value : 97D9
2022-2-8 18:43:35 [debug] Command[9] CRC Ok
2022-2-8 18:43:35 [debug] Command[9] Command response from Panel
2022-2-8 18:43:35 [warn] Command[9] Command response was unexpected, ignoring. Data[N05]. sequenceId[10]
2022-2-8 18:43:35 [verbose] Command[9] Received data from panel: N05
2022-2-8 18:43:35 [warn] Command[9] Receipt of an error code: Invalid parameter
2022-2-8 18:43:35 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,51,53,91,89,99,29,243,60,201,186,135,145,113,183,49,32,28,98,227,44,155,228,77,128,42,233,228,3]
2022-2-8 18:43:35 [debug] Received data Buffer : [2,17,51,53,91,89,99,29,243,60,201,186,135,145,113,183,49,32,28,98,227,44,155,228,77,128,42,233,228,3]
2022-2-8 18:43:35 [debug] Command[10] CRC Value : 4B9E
2022-2-8 18:43:35 [debug] Command[10] CRC Ok
2022-2-8 18:43:35 [debug] Command[10] Command response from Panel
2022-2-8 18:43:35 [debug] Command[10] Emitting expected command response
2022-2-8 18:43:35 [verbose] Command[10] Received data from panel: PNLCNF=RW032:618VGMI
2022-2-8 18:43:35 [debug] Command[10] SendCommand receive this response : PNLCNF=RW032:618VGMI
(node:20806) UnhandledPromiseRejectionWarning: Error: Unsupported panel type : RW032:618VGMI
    at RiscoComm.<anonymous> (/root/risco/node_modules/@vanackej/risco-lan-bridge/dist/RiscoComm.js:354:27)
    at Generator.next (<anonymous>)
    at fulfilled (/root/risco/node_modules/tslib/tslib.js:114:62)
(node:20806) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
2022-2-8 18:43:36 [error] Panel Socket Closed.
2022-2-8 18:43:36 [debug] RiscoCloud Socket Destroyed.
2022-2-8 18:43:36 [error] TCP Socket Disconnected
2022-2-8 18:43:37 [info] MQTT reconnect
2022-2-8 18:43:37 [info] MQTT close
2022-2-8 18:43:42 [info] MQTT reconnect
2022-2-8 18:43:42 [info] MQTT close
2022-2-8 18:43:46 [verbose] Start Connection to Panel
2022-2-8 18:43:46 [debug] TCP Socket is already created, Connect It
2022-2-8 18:43:46 [debug] TCP Socket must be created now
2022-2-8 18:43:46 [info] Listening on IP :: and Port 33000
2022-2-8 18:43:46 [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
2022-2-8 18:43:47 [info] MQTT reconnect
2022-2-8 18:43:47 [info] MQTT close
2022-2-8 18:43:51 [info] Incoming connection from panel received
2022-2-8 18:43:51 [debug] RiscoCloud Socket: connect
2022-2-8 18:43:51 [info] RiscoCloud Socket: ready
2022-2-8 18:43:51 [info] Setting a timer for panel connection in 30000 ms
2022-2-8 18:43:52 [info] MQTT reconnect
2022-2-8 18:43:52 [info] MQTT close
2022-2-8 18:43:57 [info] MQTT reconnect
2022-2-8 18:43:57 [info] MQTT close
2022-2-8 18:43:58 [debug] [Panel => Cloud] Forwarding panel packet to cloud: [2,19,55,55,4,81,0,16,3,0,50,50,52,48,48,52,49,49,57,55,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,0,23,23,69,76,5,20,1,255,255,255,255,255,255,48,16,2,1,0,0,0,0,5,55,43,41,66,0,0,16,2,15,49,57,50,46,49,54,56,46,49,48,48,46,49,56,50,1,23,55,66,49,65,3]
2022-2-8 18:44:02 [info] MQTT reconnect
2022-2-8 18:44:02 [info] MQTT close
2022-2-8 18:44:07 [info] MQTT reconnect
2022-2-8 18:44:07 [info] MQTT close
2022-2-8 18:44:12 [info] MQTT reconnect
2022-2-8 18:44:12 [info] MQTT close
2022-2-8 18:44:17 [info] MQTT reconnect
2022-2-8 18:44:17 [info] MQTT close
2022-2-8 18:44:21 [verbose] Authenticating to the panel
2022-2-8 18:44:21 [verbose] Command[11] Sending Command: RMT=5678
2022-2-8 18:44:21 [debug] Command[11] Writing command buffer to socket: [2,17,51,52,89,90,123,99,136,76,195,208,199,149,1,195,72,3]
2022-2-8 18:44:21 [debug] Command[11] Data Sent : RMT=5678
2022-2-8 18:44:21 [debug] [Panel => Bridge] Received unencrypted data Buffer from Panel : [2,49,49,65,67,75,23,69,56,69,65,3]
2022-2-8 18:44:21 [debug] Received data Buffer : [2,49,49,65,67,75,23,69,56,69,65,3]
2022-2-8 18:44:21 [debug] Command[11] CRC Value : E8EA
2022-2-8 18:44:21 [debug] Command[11] CRC Ok
2022-2-8 18:44:21 [debug] Command[11] Command response from Panel
2022-2-8 18:44:21 [debug] Command[11] Emitting expected command response
2022-2-8 18:44:21 [verbose] Command[11] Received data from panel: ACK
2022-2-8 18:44:21 [debug] Command[11] SendCommand receive this response : ACK
2022-2-8 18:44:21 [verbose] Command[12] Sending Command: LCL
2022-2-8 18:44:21 [debug] Command[12] Writing command buffer to socket: [2,49,50,76,67,76,23,55,52,65,69,3]
2022-2-8 18:44:21 [debug] Command[12] Data Sent : LCL
2022-2-8 18:44:22 [debug] [Panel => Bridge] Received unencrypted data Buffer from Panel : [2,49,50,65,67,75,23,69,56,65,69,3]
2022-2-8 18:44:22 [debug] Received data Buffer : [2,49,50,65,67,75,23,69,56,65,69,3]
2022-2-8 18:44:22 [debug] Command[12] CRC Value : E8AE
2022-2-8 18:44:22 [debug] Command[12] CRC Ok
2022-2-8 18:44:22 [debug] Command[12] Command response from Panel
2022-2-8 18:44:22 [debug] Command[12] Emitting expected command response
2022-2-8 18:44:22 [verbose] Command[12] Received data from panel: ACK
2022-2-8 18:44:22 [debug] Command[12] SendCommand receive this response : ACK
2022-2-8 18:44:22 [debug] LCL command result OK
2022-2-8 18:44:22 [verbose] Setting up encryption using Panel Id
2022-2-8 18:44:22 [verbose] Command[13] Sending Command: CUSTLST?
2022-2-8 18:44:22 [debug] Command[13] Writing command buffer to socket: [2,17,51,54,72,66,124,10,241,41,160,215,199,224,6,188,56,3]
2022-2-8 18:44:22 [debug] Command[13] Data Sent : CUSTLST?
2022-2-8 18:44:22 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,49,81,68,123,10,140,71,217,197,253,140,111,168,38,59,0,119,162,83,148,235,107,3]
2022-2-8 18:44:22 [debug] Received data Buffer : [2,17,55,49,81,68,123,10,140,71,217,197,253,140,111,168,38,59,0,119,162,83,148,235,107,3]
2022-2-8 18:44:22 [debug] Command[54] CRC Value : 8BF1
2022-2-8 18:44:22 [debug] Command[54] CRC Ok
2022-2-8 18:44:22 [verbose] Command[54] inCryptTest enabled, emitting response without checks
2022-2-8 18:44:22 [debug] Command[13] SendCommand receive this response : ZSTT1=----------
2022-2-8 18:44:22 [debug] cryptTableTester response: ZSTT1=----------
2022-2-8 18:44:22 [verbose] Connection to the control panel successfully established.
2022-2-8 18:44:22 [debug] Risco Panel Connected.
2022-2-8 18:44:22 [verbose] Command[14] Sending Command: PNLCNF
2022-2-8 18:44:22 [debug] Command[14] Writing command buffer to socket: [2,17,51,49,91,89,99,29,243,60,227,221,149,144,122,3]
2022-2-8 18:44:22 [debug] Command[14] Data Sent : PNLCNF
2022-2-8 18:44:22 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,51,54,69,39,26,73,137,77,192,216,3]
2022-2-8 18:44:22 [debug] Received data Buffer : [2,17,51,54,69,39,26,73,137,77,192,216,3]
2022-2-8 18:44:22 [debug] Command[13] CRC Value : 4740
2022-2-8 18:44:22 [debug] Command[13] CRC Ok
2022-2-8 18:44:22 [debug] Command[13] Command response from Panel
2022-2-8 18:44:22 [warn] Command[13] Command response was unexpected, ignoring. Data[N05]. sequenceId[14]
2022-2-8 18:44:22 [verbose] Command[13] Received data from panel: N05
2022-2-8 18:44:22 [warn] Command[13] Receipt of an error code: Invalid parameter
2022-2-8 18:44:22 [info] MQTT reconnect
2022-2-8 18:44:22 [info] MQTT close
2022-2-8 18:44:22 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,51,49,91,89,99,29,243,60,201,186,135,145,113,183,49,32,28,98,227,44,155,228,77,246,80,148,227,3]
2022-2-8 18:44:22 [debug] Received data Buffer : [2,17,51,49,91,89,99,29,243,60,201,186,135,145,113,183,49,32,28,98,227,44,155,228,77,246,80,148,227,3]
2022-2-8 18:44:22 [debug] Command[14] CRC Value : B8DB
2022-2-8 18:44:22 [debug] Command[14] CRC Ok
2022-2-8 18:44:22 [debug] Command[14] Command response from Panel
2022-2-8 18:44:22 [debug] Command[14] Emitting expected command response
2022-2-8 18:44:22 [verbose] Command[14] Received data from panel: PNLCNF=RW032:618VGMI
2022-2-8 18:44:22 [debug] Command[14] SendCommand receive this response : PNLCNF=RW032:618VGMI
(node:20806) UnhandledPromiseRejectionWarning: Error: Unsupported panel type : RW032:618VGMI
    at RiscoComm.<anonymous> (/root/risco/node_modules/@vanackej/risco-lan-bridge/dist/RiscoComm.js:354:27)
    at Generator.next (<anonymous>)
    at fulfilled (/root/risco/node_modules/tslib/tslib.js:114:62)
(node:20806) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
2022-2-8 18:44:24 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,49,81,68,123,10,140,71,217,197,253,140,111,168,38,59,0,119,162,83,148,235,107,3]
2022-2-8 18:44:24 [debug] Received data Buffer : [2,17,55,49,81,68,123,10,140,71,217,197,253,140,111,168,38,59,0,119,162,83,148,235,107,3]
2022-2-8 18:44:24 [debug] Command[54] CRC Value : 8BF1
2022-2-8 18:44:24 [debug] Command[54] CRC Ok
2022-2-8 18:44:24 [debug] Command[54] Data from Panel, need to send an ACK.
2022-2-8 18:44:24 [debug] Command[54] Sending Ack.
2022-2-8 18:44:24 [verbose] Command[54] Received data from panel: ZSTT1=----------
2022-2-8 18:44:24 [debug] Command[54] Data type: Zone Status
2022-2-8 18:44:25 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,48,81,68,123,10,143,71,217,197,253,140,111,168,38,59,0,119,162,41,226,236,111,3]
2022-2-8 18:44:25 [debug] Received data Buffer : [2,17,55,48,81,68,123,10,143,71,217,197,253,140,111,168,38,59,0,119,162,41,226,236,111,3]
2022-2-8 18:44:25 [debug] Command[55] CRC Value : B4A5
2022-2-8 18:44:25 [debug] Command[55] CRC Ok
2022-2-8 18:44:25 [debug] Command[55] Data from Panel, need to send an ACK.
2022-2-8 18:44:25 [debug] Command[55] Sending Ack.
2022-2-8 18:44:25 [verbose] Command[55] Received data from panel: ZSTT2=----------
2022-2-8 18:44:25 [debug] Command[55] Data type: Zone Status
2022-2-8 18:44:25 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,51,81,68,123,10,142,71,217,197,253,140,111,168,38,59,0,119,162,92,231,152,109,3]
2022-2-8 18:44:25 [debug] Received data Buffer : [2,17,55,51,81,68,123,10,142,71,217,197,253,140,111,168,38,59,0,119,162,92,231,152,109,3]
2022-2-8 18:44:25 [debug] Command[56] CRC Value : 7157
2022-2-8 18:44:25 [debug] Command[56] CRC Ok
2022-2-8 18:44:25 [debug] Command[56] Data from Panel, need to send an ACK.
2022-2-8 18:44:25 [debug] Command[56] Sending Ack.
2022-2-8 18:44:25 [verbose] Command[56] Received data from panel: ZSTT3=----------
2022-2-8 18:44:25 [debug] Command[56] Data type: Zone Status
2022-2-8 18:44:25 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,50,81,68,123,10,137,71,217,197,253,140,111,168,38,59,0,119,162,40,151,157,30,3]
2022-2-8 18:44:25 [debug] Received data Buffer : [2,17,55,50,81,68,123,10,137,71,217,197,253,140,111,168,38,59,0,119,162,40,151,157,30,3]
2022-2-8 18:44:25 [debug] Command[57] CRC Value : CA0D
2022-2-8 18:44:25 [debug] Command[57] CRC Ok
2022-2-8 18:44:25 [debug] Command[57] Data from Panel, need to send an ACK.
2022-2-8 18:44:25 [debug] Command[57] Sending Ack.
2022-2-8 18:44:25 [verbose] Command[57] Received data from panel: ZSTT4=----------
2022-2-8 18:44:25 [debug] Command[57] Data type: Zone Status
2022-2-8 18:44:25 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,61,81,68,123,10,136,71,217,197,253,140,111,168,38,59,0,119,162,94,149,158,25,3]
2022-2-8 18:44:25 [debug] Received data Buffer : [2,17,55,61,81,68,123,10,136,71,217,197,253,140,111,168,38,59,0,119,162,94,149,158,25,3]
2022-2-8 18:44:25 [debug] Command[58] CRC Value : 5C3C
2022-2-8 18:44:25 [debug] Command[58] CRC Ok
2022-2-8 18:44:25 [debug] Command[58] Data from Panel, need to send an ACK.
2022-2-8 18:44:25 [debug] Command[58] Sending Ack.
2022-2-8 18:44:25 [verbose] Command[58] Received data from panel: ZSTT5=----------
2022-2-8 18:44:25 [debug] Command[58] Data type: Zone Status
2022-2-8 18:44:26 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,55,60,81,68,123,10,139,71,217,197,253,140,111,168,38,59,0,119,162,93,229,155,98,3]
2022-2-8 18:44:26 [debug] Received data Buffer : [2,17,55,60,81,68,123,10,139,71,217,197,253,140,111,168,38,59,0,119,162,93,229,155,98,3]
2022-2-8 18:44:26 [debug] Command[59] CRC Value : 6368
2022-2-8 18:44:26 [debug] Command[59] CRC Ok
2022-2-8 18:44:26 [debug] Command[59] Data from Panel, need to send an ACK.
2022-2-8 18:44:26 [debug] Command[59] Sending Ack.
2022-2-8 18:44:26 [verbose] Command[59] Received data from panel: ZSTT6=----------
2022-2-8 18:44:26 [debug] Command[59] Data type: Zone Status
2022-2-8 18:44:26 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,52,53,81,68,123,10,138,71,217,197,253,140,111,168,38,59,0,119,162,88,238,235,30,3]
2022-2-8 18:44:26 [debug] Received data Buffer : [2,17,52,53,81,68,123,10,138,71,217,197,253,140,111,168,38,59,0,119,162,88,238,235,30,3]
2022-2-8 18:44:26 [debug] Command[60] CRC Value : 38FD
2022-2-8 18:44:26 [debug] Command[60] CRC Ok
2022-2-8 18:44:26 [debug] Command[60] Data from Panel, need to send an ACK.
2022-2-8 18:44:26 [debug] Command[60] Sending Ack.
2022-2-8 18:44:26 [verbose] Command[60] Received data from panel: ZSTT7=----------
2022-2-8 18:44:26 [debug] Command[60] Data type: Zone Status
2022-2-8 18:44:26 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,52,52,81,68,123,10,133,71,217,197,253,140,111,168,38,59,0,119,162,40,148,239,98,3]
2022-2-8 18:44:26 [debug] Received data Buffer : [2,17,52,52,81,68,123,10,133,71,217,197,253,140,111,168,38,59,0,119,162,40,148,239,98,3]
2022-2-8 18:44:26 [debug] Command[61] CRC Value : CBB8
2022-2-8 18:44:26 [debug] Command[61] CRC Ok
2022-2-8 18:44:26 [debug] Command[61] Data from Panel, need to send an ACK.
2022-2-8 18:44:26 [debug] Command[61] Sending Ack.
2022-2-8 18:44:26 [verbose] Command[61] Received data from panel: ZSTT8=----------
2022-2-8 18:44:26 [debug] Command[61] Data type: Zone Status
2022-2-8 18:44:26 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,52,55,81,68,123,10,132,71,217,197,253,140,111,168,38,59,0,119,162,91,147,153,27,3]
2022-2-8 18:44:26 [debug] Received data Buffer : [2,17,52,55,81,68,123,10,132,71,217,197,253,140,111,168,38,59,0,119,162,91,147,153,27,3]
2022-2-8 18:44:26 [debug] Command[62] CRC Value : 0E4A
2022-2-8 18:44:26 [debug] Command[62] CRC Ok
2022-2-8 18:44:26 [debug] Command[62] Data from Panel, need to send an ACK.
2022-2-8 18:44:26 [debug] Command[62] Sending Ack.
2022-2-8 18:44:26 [verbose] Command[62] Received data from panel: ZSTT9=----------
2022-2-8 18:44:26 [debug] Command[62] Data type: Zone Status
2022-2-8 18:44:27 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,52,54,81,68,123,10,140,74,201,197,253,140,111,168,38,59,0,119,152,124,146,235,105,246,3]
2022-2-8 18:44:27 [debug] Received data Buffer : [2,17,52,54,81,68,123,10,140,74,201,197,253,140,111,168,38,59,0,119,152,124,146,235,105,246,3]
2022-2-8 18:44:27 [debug] Command[63] CRC Value : DF3B
2022-2-8 18:44:27 [debug] Command[63] CRC Ok
2022-2-8 18:44:27 [debug] Command[63] Data from Panel, need to send an ACK.
2022-2-8 18:44:27 [debug] Command[63] Sending Ack.
2022-2-8 18:44:27 [verbose] Command[63] Received data from panel: ZSTT10=----------
2022-2-8 18:44:27 [debug] Command[63] Data type: Zone Status
2022-2-8 18:44:27 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,52,49,81,68,123,10,140,75,201,197,253,140,111,168,38,59,0,119,152,124,228,236,98,247,3]
2022-2-8 18:44:27 [debug] Received data Buffer : [2,17,52,49,81,68,123,10,140,75,201,197,253,140,111,168,38,59,0,119,152,124,228,236,98,247,3]
2022-2-8 18:44:27 [debug] Command[64] CRC Value : 2A8C
2022-2-8 18:44:27 [debug] Command[64] CRC Ok
2022-2-8 18:44:27 [debug] Command[64] Data from Panel, need to send an ACK.
2022-2-8 18:44:27 [debug] Command[64] Sending Ack.
2022-2-8 18:44:27 [verbose] Command[64] Received data from panel: ZSTT11=----------
2022-2-8 18:44:27 [debug] Command[64] Data type: Zone Status
2022-2-8 18:44:27 [info] MQTT reconnect
2022-2-8 18:44:27 [info] MQTT close
2022-2-8 18:44:27 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,52,48,81,68,123,10,140,72,201,197,253,140,111,168,38,59,0,119,152,124,231,152,24,128,3]
2022-2-8 18:44:27 [debug] Received data Buffer : [2,17,52,48,81,68,123,10,140,72,201,197,253,140,111,168,38,59,0,119,152,124,231,152,24,128,3]
2022-2-8 18:44:27 [debug] Command[65] CRC Value : 15B4
2022-2-8 18:44:27 [debug] Command[65] CRC Ok
2022-2-8 18:44:27 [debug] Command[65] Data from Panel, need to send an ACK.
2022-2-8 18:44:27 [debug] Command[65] Sending Ack.
2022-2-8 18:44:27 [verbose] Command[65] Received data from panel: ZSTT12=----------
2022-2-8 18:44:27 [debug] Command[65] Data type: Zone Status
2022-2-8 18:44:27 [debug] [Panel => Bridge] Received encrypted data Buffer from Panel : [2,17,52,51,81,68,123,10,140,73,201,197,253,140,111,168,38,59,0,119,152,124,146,157,28,134,3]
2022-2-8 18:44:27 [debug] Received data Buffer : [2,17,52,51,81,68,123,10,140,73,201,197,253,140,111,168,38,59,0,119,152,124,146,157,28,134,3]
2022-2-8 18:44:27 [debug] Command[66] CRC Value : D0F2
2022-2-8 18:44:27 [debug] Command[66] CRC Ok
2022-2-8 18:44:27 [debug] Command[66] Data from Panel, need to send an ACK.
2022-2-8 18:44:27 [debug] Command[66] Sending Ack.
2022-2-8 18:44:27 [verbose] Command[66] Received data from panel: ZSTT13=----------
2022-2-8 18:44:27 [debug] Command[66] Data type: Zone Status
2022-2-8 18:44:28 [error] Panel Socket Closed.
2022-2-8 18:44:28 [debug] RiscoCloud Socket Destroyed.
2022-2-8 18:44:28 [error] TCP Socket Disconnected
2022-2-8 18:44:32 [info] MQTT reconnect
2022-2-8 18:44:32 [info] MQTT close
2022-2-8 18:44:37 [info] MQTT reconnect
2022-2-8 18:44:37 [info] MQTT close
2022-2-8 18:44:38 [verbose] Start Connection to Panel
2022-2-8 18:44:38 [debug] TCP Socket is already created, Connect It
2022-2-8 18:44:38 [debug] TCP Socket must be created now
2022-2-8 18:44:38 [info] Listening on IP :: and Port 33000
2022-2-8 18:44:38 [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
2022-2-8 18:44:42 [info] MQTT reconnect

The panel does not appear to be supported... Error: Unsupported panel type : RW032:618VGMI

Thanks for your return,

Cheers

nonameboy007 commented 2 years ago

try : 97239637777

For information, the support tells me the same password.

I will try the update soon.

Thanks @pergolafabio

pergolafabio commented 2 years ago

dont think an software update will help :-)

worth a try

teruggim commented 2 years ago

Salutations, it also gives me the same error: /usr/src/app/node_modules/@vanackej/risco-lan-bridge/dist/RiscoComm.js:344 throw new Error(Unsupported panel type : ${panelType}); ^ Error: Unsupported panel type : RW032:618V-MI The alarm is a Agility4.

Thanks

ghost commented 2 years ago

I don't know if the issue is similar to yours @teruggim but I see a disconnect here too..

2/16/2022, 9:26:54 PM [debug] Local GMT Timezone is : +00:00
2/16/2022, 9:26:54 PM [info] autoConnect enabled, starting communication
2/16/2022, 9:26:54 PM [verbose] Start Connection to Panel
2/16/2022, 9:26:54 PM [debug] TCP Socket is not already created, Create It
2/16/2022, 9:26:54 PM [debug] TCP Socket must be created now
2/16/2022, 9:26:54 PM [info] Connecting to mqtt server: mqtt://127.0.0.1:1883
2/16/2022, 9:26:54 PM [info] Connected on mqtt server: mqtt://127.0.0.1:1883
2/16/2022, 9:26:54 PM [info] Panel is not connected, waiting
2/16/2022, 9:27:24 PM [error] Socket Timeout.
2/16/2022, 9:27:24 PM [debug] Socket Destroyed.
2/16/2022, 9:27:24 PM [error] TCP Socket Disconnected
2/16/2022, 9:27:24 PM [debug] Socket Disconnected.
2/16/2022, 9:27:34 PM [verbose] Start Connection to Panel
2/16/2022, 9:27:34 PM [debug] TCP Socket is already created, Connect It
2/16/2022, 9:27:34 PM [debug] TCP Socket must be created now
2/16/2022, 9:28:04 PM [error] Socket Timeout.
2/16/2022, 9:28:04 PM [debug] Socket Destroyed.
2/16/2022, 9:28:04 PM [error] TCP Socket Disconnected
2/16/2022, 9:28:04 PM [debug] Socket Disconnected.

As you can see it seems to not even get a connection to the panel. Currently my configuration looks the following:

    "log": "debug",
    "panel": {
      "panelIp": "192.168.1.144",
      "panelPort": 1000,
      "panelPassword": 1234,
      "panelId": 1,
      "watchDogInterval": 10000
    }

Am I missing something? (I've got a Lightsys 2 alarm but I didn't check which network card is being used atm)

pergolafabio commented 2 years ago

Check your firmware, if you are on 2.73 or below, then you have the single socket module.. You need to disable cloud or use the proxy then

ghost commented 2 years ago

Check your firmware, if you are on 2.73 or below, then you have the single socket module.. You need to disable cloud or use the proxy then

Is there a way that I can check this firmware version myself or do I need my installer to check this? (My system is closed by the installer).

pergolafabio commented 2 years ago

Maybe on the panel, maybe some about tab? You can also check if the port is open

pergolafabio commented 2 years ago

Also just ask the installer code, you bought it, it's your system.... What if that company quits or something happens with that person? They need to give it to you, so you can at least change something..

You can also call Risco and ask to detach the panel from your installer, so you can manage yourself, or just ask your installer that you want to manage it on your own...

They need todo that, I also did it

nonameboy007 commented 2 years ago

Check your firmware, if you are on 2.73 or below, then you have the single socket module.. You need to disable cloud or use the proxy then

Is there a way that I can check this firmware version myself or do I need my installer to check this? (My system is closed by the installer).

Hello

You can found the information through Risco Configuration Sofware. ;-)

teruggim commented 2 years ago

Good morning @pergolafabio , Is there any way to make Agility4 RW032: 618V-MI panel compatible?

Thanks

pergolafabio commented 2 years ago

No idea

ghost commented 2 years ago

Check your firmware, if you are on 2.73 or below, then you have the single socket module.. You need to disable cloud or use the proxy then

Confirmed by installer that I've got the single socket module. So I either need to check the proxy approach or disable the cloud features indeed. Is there an elaborate documentation on how to configure the proxy stuff with this plugin? I only so the notice that I have to find some way to route the traffic to the MQTT module so far. :)

Thanks for the help so far!

nonameboy007 commented 2 years ago

Good morning @pergolafabio , Is there any way to make Agility4 RW032: 618V-MI panel compatible?

Thanks

Maybe @vanackej or @TJForc can help us? Thanks again

pergolafabio commented 2 years ago

Check your firmware, if you are on 2.73 or below, then you have the single socket module.. You need to disable cloud or use the proxy then

Confirmed by installer that I've got the single socket module. So I either need to check the proxy approach or disable the cloud features indeed. Is there an elaborate documentation on how to configure the proxy stuff with this plugin? I only so the notice that I have to find some way to route the traffic to the MQTT module so far. :)

Thanks for the help so far!

Yes, it's in the readme, just enable the proxy in the config JSON file... And then indeed disable cloud OR make a forward rule on your router by using Iptables if your router supports that.. I have an Asus router with custom firmware, I can make iptables

ghost commented 2 years ago

Check your firmware, if you are on 2.73 or below, then you have the single socket module.. You need to disable cloud or use the proxy then

Confirmed by installer that I've got the single socket module. So I either need to check the proxy approach or disable the cloud features indeed. Is there an elaborate documentation on how to configure the proxy stuff with this plugin? I only so the notice that I have to find some way to route the traffic to the MQTT module so far. :) Thanks for the help so far!

Yes, it's in the readme, just enable the proxy in the config JSON file... And then indeed disable cloud OR make a forward rule on your router by using Iptables if your router supports that.. I have an Asus router with custom firmware, I can make iptables

@pergolafabio could you share your iptable route? :) I'm looking to see on which ports your targettting here..

set service nat rule 6700 description risco-alarm
set service nat rule 6700 destination port 33000
set service nat rule 6700 source address 192.168.1.144
set service nat rule 6700 inbound-interface eth1
set service nat rule 6700 inside-address address 192.168.1.100
set service nat rule 6700 inside-address port 8000
set service nat rule 6700 protocol tcp
set service nat rule 6700 type destination

As this is a nodeJs based application I think the port needs to be 8000? Or something else? In my case 192.168.1.144 is the alarm and 192.168.1.100 contains the risco container that needs to act as a proxy.

pergolafabio commented 2 years ago

Hi, see below, .26 is the riscopanel, .17 is the risco addon

iptables -t nat -I PREROUTING -s 192.168.0.26 -d www.riscocloud.com -p tcp --dport 33000 -j DNAT --to-destination 192.168.0.17:33000

vanackej commented 2 years ago

RW032:618V-MI

Hi. Can you open a new issue about this please ? Can't track different requests in a single issue. For generic discussion, I'll activate the github discussion tab in order to not spam issues with unrelated comments. Thx

vanackej commented 2 years ago

Hi @nonameboy007

I'm doing some cleanup in github issues. Can you reopen an issue and provide all informations asked in the new issue template please ?

Thx