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

Restart needed on cloud disconnect #57

Open pergolafabio opened 1 year ago

pergolafabio commented 1 year ago

Describe the bug Hi @vanackej , using the addon with cloud proxy method... Yesteday i had a small internet interrupt, but after internet was restored, the addon was not able to connect to cloud anymore, i had to restart the addon to make it functional... It possible on this type of event as in screenshot, that the service can be restarted? I had watchdog enabled, but that doesnt help, since addon keeps on running

Thnx in advance

Configuration

Logs

I only have a screenshot: Screenshot_20230227-064843

pergolafabio commented 1 year ago

ok, took out UTP: proxy sensor changed from connected to => disonnected
image

9/12/2023, 4:23:26 PM [warn] Command[26] 'CLOCK' Timeout
9/12/2023, 4:23:31 PM [w9/12/2023, 4:23:26 PM [warn] Command[26] 'CLOCK' Timeout
9/12/2023, 4:23:31 PM [warn] Command[26] 'CLOCK' Timeout
9/12/2023, 4:23:36 PM [warn] Command[26] 'CLOCK' Timeout
9/12/2023, 4:23:41 PM [warn] Command[26] 'CLOCK' Timeout
9/12/2023, 4:23:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":26,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,51,72,91,96,29,246,109,196,222,225,224,3]}}
9/12/2023, 4:23:42 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 4:23:56 PM [warn] Command[27] 'CLOCK' Timeout
9/12/2023, 4:24:01 PM [warn] Command[27] 'CLOCK' Timeout
9/12/2023, 4:24:06 PM [warn] Command[27] 'CLOCK' Timeout
9/12/2023, 4:24:11 PM [warn] Command[27] 'CLOCK' Timeout
9/12/2023, 4:24:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":27,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,50,72,91,96,29,246,109,183,222,224,224,3]}}
9/12/2023, 4:24:26 PM [warn] Command[28] 'CLOCK' Timeout
9/12/2023, 4:24:26 PM [error] RiscoCloud Socket Timeout.
9/12/2023, 4:24:31 PM [warn] Command[28] 'CLOCK' Timeout
9/12/2023, 4:24:36 PM [warn] Command[28] 'CLOCK' Timeout
9/12/2023, 4:24:41 PM [warn] Command[28] 'CLOCK' Timeout
9/12/2023, 4:24:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":28,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,61,72,91,96,29,246,109,183,222,150,148,3]}}
9/12/2023, 4:24:56 PM [warn] Command[29] 'CLOCK' Timeout
9/12/2023, 4:24:59 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/12/2023, 4:25:01 PM [warn] Command[29] 'CLOCK' Timeout
9/12/2023, 4:25:06 PM [warn] Command[29] 'CLOCK' Timeout
9/12/2023, 4:25:09 PM [info] RiscoCloud Socket: ready
9/12/2023, 4:25:11 PM [warn] Command[29] 'CLOCK' Timeout
9/12/2023, 4:25:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":29,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,60,72,91,96,29,246,109,196,222,149,148,3]}}
9/12/2023, 4:25:25 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/12/2023, 4:25:26 PM [warn] Command[30] 'CLOCK' Timeout

and i also saw:

9/12/2023, 4:23:42 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.

plugged UTP back in : but again looping...

I think you didnt add the "auto restart communications" yet ? with this event?

9/12/2023, 4:23:42 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.

So its looking better indeed...

I did a "restart comm" manually, and i see this now: it failed first time, but it was stuck on the second loop???

9/12/2023, 4:30:12 PM [info] Message to reinitiate communications
9/12/2023, 4:30:12 PM [info] Waiting 30 seconds before reconnecting to allow socket to reset
9/12/2023, 4:30:12 PM [info] RiscoCloud Socket: closed
9/12/2023, 4:30:17 PM [warn] Command[40] 'DCN' Timeout
9/12/2023, 4:30:17 PM [warn] Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":40,"attempts":1,"crcOk":false,"commandStr":"DCN","sentBuffer":{"type":"Buffer","data":[2,17,54,53,79,84,97,73,248,75,176,220,3]}}
9/12/2023, 4:30:17 PM [warn] Error while sending DCN command
9/12/2023, 4:30:17 PM [info] TCP Socket Disconnected
9/12/2023, 4:30:17 PM [info] Won't attempt automatic reconnection
9/12/2023, 4:30:17 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 4:30:42 PM [info] Listening on IP :: and Port 33000
9/12/2023, 4:30:42 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
9/12/2023, 4:30:58 PM [info] Incoming connection from panel received
9/12/2023, 4:30:58 PM [info] RiscoCloud Socket: ready
9/12/2023, 4:30:58 PM [info] Setting a timer for panel connection in 30000 ms
9/12/2023, 4:31:28 PM [error] Panel Socket Closed.
9/12/2023, 4:31:28 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 4:31:28 PM [warn] Panel Socket not connected, aborting panel connection sequence
9/12/2023, 4:31:58 PM [info] Listening on IP :: and Port 33000
9/12/2023, 4:31:58 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes

i did again a "restart comm":

9/12/2023, 4:34:34 PM [info] Message to reinitiate communications

and now it was succesfull, all back online, all sensors connected

markxroberts commented 1 year ago

OK. I've changed the delay before the proxy server goes offline. The problem with doing this is that it has to exceed the time that the proxy takes to reconnect which can be a couple of minutes. If it's too long I can add some logic so that the loop doesn't repeat itself.

pergolafabio commented 1 year ago

the image: is better, much less space used now! Thnx

pergolafabio commented 1 year ago

ok, installed 2023.9.7 , i see now when i unplug the UTP:, proxy stays connected for a longer while now... image

then the loop starts (proxy sensor disconnected)

inserted back UTP but the loop is still occuring? at what point the "restart comm" should happen? Cause i still need todo this manually? Or is this expected?

pergolafabio commented 1 year ago

at some point i should see this automaticly right?

9/12/2023, 5:18:43 PM [info] TCP Socket Disconnected
9/12/2023, 5:18:43 PM [info] Won't attempt automatic reconnection
9/12/2023, 5:18:43 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 5:19:08 PM [info] Listening on IP :: and Port 33000
9/12/2023, 5:19:08 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
markxroberts commented 1 year ago

Can you send me back more of the looping messages please in order so that I can try to debug.

pergolafabio commented 1 year ago

Ok, i do this later , will test again , already restarted addon

markxroberts commented 1 year ago

Thanks. Reconnection automatically takes at least 30 seconds after the Proxy server not communicating message. There's now a 121 second timeout before the reconnection loop starts again as proxy reconnection can be slow.

markxroberts commented 1 year ago

Thanks for this. There was a missing disconnect that didn't help. I've now released 9.8 with logic for the reconnection process and have reverted the sensor timeout duration.

pergolafabio commented 1 year ago

besides that loop crash, eventually when UTP was connected, the alarm came back online

9/12/2023, 7:54:26 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
Exception in PromiseRejectCallback:
/app/node_modules/tslib/tslib.js:113
        return new (P || (P = Promise))(function (resolve, reject) {
               ^
RangeError: Maximum call stack size exceeded
(node:7) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 1001 drain listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
9/12/2023, 7:54:50 PM [info] Listening on IP :: and Port 33000
9/12/2023, 7:54:50 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
9/12/2023, 7:56:01 PM [info] MQTT disconnected
9/12/2023, 7:56:06 PM [info] MQTT reconnect
9/12/2023, 7:56:06 PM [info] Connected on mqtt server: mqtt://homeassistant:1883
9/12/2023, 7:56:06 PM [info] Panel is not connected, waiting
9/12/2023, 7:58:16 PM [info] Incoming connection from panel received
9/12/2023, 7:58:16 PM [info] RiscoCloud Socket: ready
9/12/2023, 7:58:16 PM [info] Setting a timer for panel connection in 30000 ms
9/12/2023, 7:58:16 PM [warn] Command[NaN] Wrong CRC value for the response.
9/12/2023, 7:58:47 PM [info] Panel info: LightSys/RP432, FW 2.70
9/12/2023, 7:58:47 PM [info] Panel options: 4 parts, 32 zones, 14 outputs, Pir Cam support: false
9/12/2023, 7:58:47 PM [info] Devices discovery already done
9/12/2023, 7:58:47 PM [info] Panel and MQTT communications are ready
9/12/2023, 7:58:47 PM [info] Publishing Home Assistant discovery info
pergolafabio commented 1 year ago

i saw 2023.9.9 , but still:

9/12/2023, 10:17:29 PM [info] TCP Socket Disconnected
9/12/2023, 10:17:29 PM [info] Won't attempt automatic reconnection
9/12/2023, 10:17:29 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:29 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:29 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:29 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
.................
.................
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
9/12/2023, 10:17:30 PM [info] Proxy server not communicating.  Auto-reconnect turned on.  Wait 30 seconds before restarting to allow socket to reset.
Exception in PromiseRejectCallback:
/app/node_modules/tslib/tslib.js:113
        return new (P || (P = Promise))(function (resolve, reject) {
               ^
RangeError: Maximum call stack size exceeded
(node:7) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 1001 drain listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
9/12/2023, 10:17:54 PM [info] Listening on IP :: and Port 33000
9/12/2023, 10:17:54 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
9/12/2023, 10:19:01 PM [info] MQTT disconnected
9/12/2023, 10:19:06 PM [info] MQTT reconnect
9/12/2023, 10:19:06 PM [info] Connected on mqtt server: mqtt://homeassistant:1883
9/12/2023, 10:19:06 PM [info] Panel is not connected, waiting
pergolafabio commented 1 year ago

besides that error, the system was back online!

pergolafabio commented 1 year ago

I see a 9.10 , can you publish to main? I do a cleaning later from my previous post, they are big to load :-)

markxroberts commented 1 year ago

I've released 9.12. Hopefully this is more stable with updated reconnection logic.

pergolafabio commented 1 year ago

Cool, I test tomorrow!

pergolafabio commented 1 year ago

Not tested yet, but i do see these, just wanted to know what they mean?

9/14/2023, 7:12:33 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 7:36:33 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 7:56:33 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 8:02:33 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 8:18:33 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 8:22:33 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 8:50:33 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 9:10:33 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 9:34:04 AM [warn] Command[12] 'CLOCK' Timeout
pergolafabio commented 1 year ago

ok, new tests on 9.12!

First of all, the sensors below, the sensors below, when i unplug the UTP from the panel, the proxy sensors goes to "disconnected", thats good. The cloud connection sensor ALWAYS stays connected, is that expected behaviour? is it because the addon is still running? The panel connection sensors ALWAYS stays connected, is that also expected behaviour?

Even with this message in log, the sensors didnt change: 9/14/2023, 10:29:17 AM [error] Panel Socket Error : Error: read EHOSTUNREACH

image

While the addon was running, i did 2 tests, first test with a few minutes between plugging in UTP , second test , i took some more time between pluggin back in UTP, you can see the timestamps below... Wanted to know if the second test should make the panel/cloud sensors to go to "disconnected", but it didnt?

image

In both tests, no loop issues, no crash , all looking good, and the system came back online!!!

What i noticed, as soon as the UTP is plugged in, it takes sometimes when the addon detects it, as example, in the second test, the UTP was back in at around 10:25:00 AM and the restart comm took place at this time:

9/14/2023, 10:29:27 AM [info] Listening on IP :: and Port 33000
9/14/2023, 10:29:27 AM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes

Is that maybe because of wrong delay setting? Or maybe it can be detected sooner?

Here is the full log of both tests! Much better now!!

risco.log

markxroberts commented 1 year ago

Thanks for the feedback. I'm glad it's working better. The reason for the delays is that there are quite big timeouts worked in to the system. In your post at 0851, you can see that there are occasional cloud timeouts, but the system doesn't let these break the connection. Even the occasional clock timeout is permitted.

The cloud and panel connection sensors are now deprecated. There's a single proxy connection sensor. It seems that if you break the cloud connection then the panel connection breaks too so I've combined them.

One of the reason for looping before was that we didn't wait long enough for the inbuilt logic to re-establish a connection that was just delayed and not broken. The backend function risco-lan-bridge does a lot the work when errors are reported. The 'Disconnected' event doesn't fire when there's an error, just a disconnection.

I'll have a look at some of the delays in risco-lan-bridge and see whether we can improve the reporting. The problem I have is that I don't have the understanding of the backend communication with the panel - I can only process the messages that are coming out!

pergolafabio commented 1 year ago

Ah , that's why those 2 sensors didn't change :-) Ok I will remove them from the integration :-)

But I'm glad it's indeed now working...

I will test later a real internet internet interrupt from my router.... see what happens.. Now I just test a disconnect from the panel to the switch

pergolafabio commented 1 year ago

this time i did a small internet interrupt on HA itself instead of UTP disconnect on the panel, looking good:

9/14/2023, 10:52:08 AM [error] RiscoCloud Socket Timeout.
9/14/2023, 12:02:08 PM [error] RiscoCloud Socket Timeout.
9/14/2023, 12:03:11 PM [info] [MQTT => Panel] Received change state command disarmed on topic risco-alarm-panel/alarm/partition/1/set in partition 1
9/14/2023, 12:03:11 PM [info] [MQTT => Panel] disarmed command sent on partition 1
9/14/2023, 12:13:08 PM [warn] Command[16] 'CLOCK' Timeout
9/14/2023, 12:52:08 PM [error] RiscoCloud Socket Timeout.
9/14/2023, 1:26:08 PM [error] RiscoCloud Socket Timeout.
9/14/2023, 1:32:36 PM [warn] Command[48] 'CLOCK' Timeout
9/14/2023, 1:32:41 PM [warn] Command[48] 'CLOCK' Timeout
9/14/2023, 1:32:46 PM [warn] Command[48] 'CLOCK' Timeout
9/14/2023, 1:32:51 PM [warn] Command[48] 'CLOCK' Timeout
9/14/2023, 1:32:51 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":48,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,61,72,91,96,29,246,109,177,171,231,148,3]}}
9/14/2023, 1:33:06 PM [warn] Command[49] 'CLOCK' Timeout
9/14/2023, 1:33:11 PM [warn] Command[49] 'CLOCK' Timeout
9/14/2023, 1:33:16 PM [warn] Command[49] 'CLOCK' Timeout
9/14/2023, 1:33:21 PM [warn] Command[49] 'CLOCK' Timeout
9/14/2023, 1:33:21 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":49,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,60,72,91,96,29,246,109,198,171,230,148,3]}}
9/14/2023, 1:33:36 PM [warn] Command[1] 'CLOCK' Timeout
9/14/2023, 1:33:41 PM [warn] Command[1] 'CLOCK' Timeout
9/14/2023, 1:33:46 PM [warn] Command[1] 'CLOCK' Timeout
9/14/2023, 1:33:51 PM [warn] Command[1] 'CLOCK' Timeout
9/14/2023, 1:33:51 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":1,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,52,72,91,96,29,246,109,197,174,149,229,3]}}
9/14/2023, 1:34:06 PM [warn] Command[2] 'CLOCK' Timeout
9/14/2023, 1:34:11 PM [warn] Command[2] 'CLOCK' Timeout
9/14/2023, 1:34:16 PM [warn] Command[2] 'CLOCK' Timeout
9/14/2023, 1:34:21 PM [warn] Command[2] 'CLOCK' Timeout
9/14/2023, 1:34:21 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":2,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,55,72,91,96,29,246,109,197,174,148,228,3]}}
9/14/2023, 1:34:36 PM [warn] Command[3] 'CLOCK' Timeout
9/14/2023, 1:34:41 PM [warn] Command[3] 'CLOCK' Timeout
9/14/2023, 1:34:46 PM [warn] Command[3] 'CLOCK' Timeout
9/14/2023, 1:34:51 PM [warn] Command[3] 'CLOCK' Timeout
9/14/2023, 1:34:51 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":3,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,54,72,91,96,29,246,109,176,174,147,228,3]}}
9/14/2023, 1:35:06 PM [warn] Command[4] 'CLOCK' Timeout
9/14/2023, 1:35:11 PM [warn] Command[4] 'CLOCK' Timeout
9/14/2023, 1:35:16 PM [warn] Command[4] 'CLOCK' Timeout
9/14/2023, 1:35:21 PM [warn] Command[4] 'CLOCK' Timeout
9/14/2023, 1:35:21 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":4,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,49,72,91,96,29,246,109,197,174,146,153,3]}}
9/14/2023, 1:35:23 PM [error] Panel Socket Closed.
9/14/2023, 1:35:23 PM [info] TCP Socket Disconnected
9/14/2023, 1:35:23 PM [info] Automatic reconnection will be attempted in 10000 ms
9/14/2023, 1:35:33 PM [info] Listening on IP :: and Port 33000
9/14/2023, 1:35:33 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
9/14/2023, 1:35:38 PM [info] Incoming connection from panel received
9/14/2023, 1:35:38 PM [info] RiscoCloud Socket: ready
9/14/2023, 1:35:38 PM [info] Setting a timer for panel connection in 30000 ms
markxroberts commented 1 year ago

Because of the auto_reconnect option, I think that some of the commands that are being sent are redundant - for example in your post above at 1:35:33 the panel is already reconnecting, so I'm not sure of the value of the message at 1:35:38 Setting a timer... . 2023.9.17 tries to address this. Hopefully it won't break the whole thing.

pergolafabio commented 1 year ago

Updated this morning to .17. Will do some tests later!

pergolafabio commented 1 year ago

ok, tested ... took out the UTP at this timestamp:

9/15/2023, 10:39:56 AM [warn] Command[3] 'CLOCK' Timeout

Around 10:45 the UTP was connected again ... i also thinks it takes some time that my panel is trying to connect also... But seems it never comes back online anymore? :-( i have waited for about 10 min

Her are full logs:

9/15/2023, 10:39:51 AM [warn] Command[3] 'CLOCK' Timeout
9/15/2023, 10:39:56 AM [warn] Command[3] 'CLOCK' Timeout
9/15/2023, 10:40:01 AM [warn] Command[3] 'CLOCK' Timeout
9/15/2023, 10:40:06 AM [warn] Command[3] 'CLOCK' Timeout
9/15/2023, 10:40:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":3,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,54,72,91,96,29,246,109,176,174,147,228,3]}}
9/15/2023, 10:40:21 AM [warn] Command[4] 'CLOCK' Timeout
9/15/2023, 10:40:26 AM [warn] Command[4] 'CLOCK' Timeout
9/15/2023, 10:40:31 AM [warn] Command[4] 'CLOCK' Timeout
9/15/2023, 10:40:36 AM [warn] Command[4] 'CLOCK' Timeout
9/15/2023, 10:40:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":4,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,49,72,91,96,29,246,109,197,174,146,153,3]}}
9/15/2023, 10:40:51 AM [warn] Command[5] 'CLOCK' Timeout
9/15/2023, 10:40:56 AM [warn] Command[5] 'CLOCK' Timeout
9/15/2023, 10:41:01 AM [warn] Command[5] 'CLOCK' Timeout
9/15/2023, 10:41:02 AM [error] RiscoCloud Socket Timeout.
9/15/2023, 10:41:06 AM [warn] Command[5] 'CLOCK' Timeout
9/15/2023, 10:41:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":5,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,48,72,91,96,29,246,109,176,174,145,153,3]}}
9/15/2023, 10:41:21 AM [warn] Command[6] 'CLOCK' Timeout
9/15/2023, 10:41:26 AM [warn] Command[6] 'CLOCK' Timeout
9/15/2023, 10:41:31 AM [warn] Command[6] 'CLOCK' Timeout
9/15/2023, 10:41:33 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:41:36 AM [warn] Command[6] 'CLOCK' Timeout
9/15/2023, 10:41:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":6,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,51,72,91,96,29,246,109,176,174,233,227,3]}}
9/15/2023, 10:41:43 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:41:51 AM [warn] Command[7] 'CLOCK' Timeout
9/15/2023, 10:41:56 AM [warn] Command[7] 'CLOCK' Timeout
9/15/2023, 10:41:59 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:42:01 AM [warn] Command[7] 'CLOCK' Timeout
9/15/2023, 10:42:06 AM [warn] Command[7] 'CLOCK' Timeout
9/15/2023, 10:42:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":7,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,50,72,91,96,29,246,109,197,174,232,227,3]}}
9/15/2023, 10:42:09 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:42:21 AM [warn] Command[8] 'CLOCK' Timeout
9/15/2023, 10:42:25 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:42:26 AM [warn] Command[8] 'CLOCK' Timeout
9/15/2023, 10:42:31 AM [warn] Command[8] 'CLOCK' Timeout
9/15/2023, 10:42:35 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:42:36 AM [warn] Command[8] 'CLOCK' Timeout
9/15/2023, 10:42:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":8,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,61,72,91,96,29,246,109,197,174,231,149,3]}}
9/15/2023, 10:42:51 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:42:51 AM [warn] Command[9] 'CLOCK' Timeout
9/15/2023, 10:42:56 AM [warn] Command[9] 'CLOCK' Timeout
9/15/2023, 10:43:01 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:43:01 AM [warn] Command[9] 'CLOCK' Timeout
9/15/2023, 10:43:06 AM [warn] Command[9] 'CLOCK' Timeout
9/15/2023, 10:43:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":9,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,60,72,91,96,29,246,109,176,174,230,149,3]}}
9/15/2023, 10:43:17 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:43:21 AM [warn] Command[10] 'CLOCK' Timeout
9/15/2023, 10:43:26 AM [warn] Command[10] 'CLOCK' Timeout
9/15/2023, 10:43:27 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:43:31 AM [warn] Command[10] 'CLOCK' Timeout
9/15/2023, 10:43:36 AM [warn] Command[10] 'CLOCK' Timeout
9/15/2023, 10:43:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":10,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,53,72,91,96,29,246,109,197,219,227,226,3]}}
9/15/2023, 10:43:42 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:43:51 AM [warn] Command[11] 'CLOCK' Timeout
9/15/2023, 10:43:52 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:43:56 AM [warn] Command[11] 'CLOCK' Timeout
9/15/2023, 10:44:01 AM [warn] Command[11] 'CLOCK' Timeout
9/15/2023, 10:44:06 AM [warn] Command[11] 'CLOCK' Timeout
9/15/2023, 10:44:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":11,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,52,72,91,96,29,246,109,176,219,226,226,3]}}
9/15/2023, 10:44:08 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:44:18 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:44:21 AM [warn] Command[12] 'CLOCK' Timeout
9/15/2023, 10:44:26 AM [warn] Command[12] 'CLOCK' Timeout
9/15/2023, 10:44:31 AM [warn] Command[12] 'CLOCK' Timeout
9/15/2023, 10:44:35 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:44:36 AM [warn] Command[12] 'CLOCK' Timeout
9/15/2023, 10:44:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":12,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,55,72,91,96,29,246,109,176,219,225,231,3]}}
9/15/2023, 10:44:45 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:44:51 AM [warn] Command[13] 'CLOCK' Timeout
9/15/2023, 10:44:56 AM [warn] Command[13] 'CLOCK' Timeout
9/15/2023, 10:45:01 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:45:01 AM [warn] Command[13] 'CLOCK' Timeout
9/15/2023, 10:45:06 AM [warn] Command[13] 'CLOCK' Timeout
9/15/2023, 10:45:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":13,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,54,72,91,96,29,246,109,197,219,224,231,3]}}
9/15/2023, 10:45:11 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:45:21 AM [warn] Command[14] 'CLOCK' Timeout
9/15/2023, 10:45:26 AM [warn] Command[14] 'CLOCK' Timeout
9/15/2023, 10:45:27 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:45:31 AM [warn] Command[14] 'CLOCK' Timeout
9/15/2023, 10:45:36 AM [warn] Command[14] 'CLOCK' Timeout
9/15/2023, 10:45:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":14,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,49,72,91,96,29,246,109,176,219,231,152,3]}}
9/15/2023, 10:45:37 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:45:51 AM [warn] Command[15] 'CLOCK' Timeout
9/15/2023, 10:45:53 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:45:56 AM [warn] Command[15] 'CLOCK' Timeout
9/15/2023, 10:46:01 AM [warn] Command[15] 'CLOCK' Timeout
9/15/2023, 10:46:03 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:46:06 AM [warn] Command[15] 'CLOCK' Timeout
9/15/2023, 10:46:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":15,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,48,72,91,96,29,246,109,197,219,230,152,3]}}
9/15/2023, 10:46:18 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:46:21 AM [warn] Command[16] 'CLOCK' Timeout
9/15/2023, 10:46:26 AM [warn] Command[16] 'CLOCK' Timeout
9/15/2023, 10:46:28 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:46:31 AM [warn] Command[16] 'CLOCK' Timeout
9/15/2023, 10:46:36 AM [warn] Command[16] 'CLOCK' Timeout
9/15/2023, 10:46:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":16,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,51,72,91,96,29,246,109,197,219,229,224,3]}}
9/15/2023, 10:46:45 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:46:51 AM [warn] Command[17] 'CLOCK' Timeout
9/15/2023, 10:46:55 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:46:56 AM [warn] Command[17] 'CLOCK' Timeout
9/15/2023, 10:47:01 AM [warn] Command[17] 'CLOCK' Timeout
9/15/2023, 10:47:06 AM [warn] Command[17] 'CLOCK' Timeout
9/15/2023, 10:47:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":17,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,50,72,91,96,29,246,109,176,219,228,224,3]}}
9/15/2023, 10:47:11 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:47:21 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:47:21 AM [warn] Command[18] 'CLOCK' Timeout
9/15/2023, 10:47:26 AM [warn] Command[18] 'CLOCK' Timeout
9/15/2023, 10:47:31 AM [warn] Command[18] 'CLOCK' Timeout
9/15/2023, 10:47:36 AM [warn] Command[18] 'CLOCK' Timeout
9/15/2023, 10:47:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":18,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,61,72,91,96,29,246,109,176,219,146,148,3]}}
9/15/2023, 10:47:38 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:47:48 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:47:51 AM [warn] Command[19] 'CLOCK' Timeout
9/15/2023, 10:47:56 AM [warn] Command[19] 'CLOCK' Timeout
9/15/2023, 10:48:01 AM [warn] Command[19] 'CLOCK' Timeout
9/15/2023, 10:48:03 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:48:06 AM [warn] Command[19] 'CLOCK' Timeout
9/15/2023, 10:48:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":19,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,60,72,91,96,29,246,109,197,219,145,148,3]}}
9/15/2023, 10:48:13 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:48:21 AM [warn] Command[20] 'CLOCK' Timeout
9/15/2023, 10:48:26 AM [warn] Command[20] 'CLOCK' Timeout
9/15/2023, 10:48:29 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:48:31 AM [warn] Command[20] 'CLOCK' Timeout
9/15/2023, 10:48:36 AM [warn] Command[20] 'CLOCK' Timeout
9/15/2023, 10:48:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":20,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,53,72,91,96,29,246,109,196,222,231,226,3]}}
9/15/2023, 10:48:39 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:48:51 AM [warn] Command[21] 'CLOCK' Timeout
9/15/2023, 10:48:55 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:48:56 AM [warn] Command[21] 'CLOCK' Timeout
9/15/2023, 10:49:01 AM [warn] Command[21] 'CLOCK' Timeout
9/15/2023, 10:49:05 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:49:06 AM [warn] Command[21] 'CLOCK' Timeout
9/15/2023, 10:49:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":21,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,52,72,91,96,29,246,109,183,222,230,226,3]}}
9/15/2023, 10:49:21 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:49:21 AM [warn] Command[22] 'CLOCK' Timeout
9/15/2023, 10:49:26 AM [warn] Command[22] 'CLOCK' Timeout
9/15/2023, 10:49:31 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:49:31 AM [warn] Command[22] 'CLOCK' Timeout
9/15/2023, 10:49:36 AM [warn] Command[22] 'CLOCK' Timeout
9/15/2023, 10:49:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":22,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,55,72,91,96,29,246,109,183,222,229,231,3]}}
9/15/2023, 10:49:47 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:49:51 AM [warn] Command[23] 'CLOCK' Timeout
9/15/2023, 10:49:56 AM [warn] Command[23] 'CLOCK' Timeout
9/15/2023, 10:49:57 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:50:01 AM [warn] Command[23] 'CLOCK' Timeout
9/15/2023, 10:50:06 AM [warn] Command[23] 'CLOCK' Timeout
9/15/2023, 10:50:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":23,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,54,72,91,96,29,246,109,196,222,228,231,3]}}
9/15/2023, 10:50:13 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:50:21 AM [warn] Command[24] 'CLOCK' Timeout
9/15/2023, 10:50:23 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:50:26 AM [warn] Command[24] 'CLOCK' Timeout
9/15/2023, 10:50:31 AM [warn] Command[24] 'CLOCK' Timeout
9/15/2023, 10:50:36 AM [warn] Command[24] 'CLOCK' Timeout
9/15/2023, 10:50:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":24,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,49,72,91,96,29,246,109,183,222,227,152,3]}}
9/15/2023, 10:50:39 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:50:49 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:50:51 AM [warn] Command[25] 'CLOCK' Timeout
9/15/2023, 10:50:56 AM [warn] Command[25] 'CLOCK' Timeout
9/15/2023, 10:51:01 AM [warn] Command[25] 'CLOCK' Timeout
9/15/2023, 10:51:05 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:51:06 AM [warn] Command[25] 'CLOCK' Timeout
9/15/2023, 10:51:06 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":25,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,48,72,91,96,29,246,109,196,222,226,152,3]}}
9/15/2023, 10:51:15 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:51:21 AM [warn] Command[26] 'CLOCK' Timeout
9/15/2023, 10:51:26 AM [warn] Command[26] 'CLOCK' Timeout
9/15/2023, 10:51:30 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:51:31 AM [warn] Command[26] 'CLOCK' Timeout
9/15/2023, 10:51:36 AM [warn] Command[26] 'CLOCK' Timeout
9/15/2023, 10:51:36 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":26,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,51,72,91,96,29,246,109,196,222,225,224,3]}}
9/15/2023, 10:51:40 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:51:52 AM [warn] Command[27] 'CLOCK' Timeout
9/15/2023, 10:51:57 AM [warn] Command[27] 'CLOCK' Timeout
9/15/2023, 10:51:57 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:52:02 AM [warn] Command[27] 'CLOCK' Timeout
9/15/2023, 10:52:07 AM [warn] Command[27] 'CLOCK' Timeout
9/15/2023, 10:52:07 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":27,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,50,72,91,96,29,246,109,183,222,224,224,3]}}
9/15/2023, 10:52:07 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:52:22 AM [warn] Command[28] 'CLOCK' Timeout
9/15/2023, 10:52:23 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:52:27 AM [warn] Command[28] 'CLOCK' Timeout
9/15/2023, 10:52:32 AM [warn] Command[28] 'CLOCK' Timeout
9/15/2023, 10:52:33 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:52:37 AM [warn] Command[28] 'CLOCK' Timeout
9/15/2023, 10:52:37 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":28,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,61,72,91,96,29,246,109,183,222,150,148,3]}}
9/15/2023, 10:52:49 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:52:52 AM [warn] Command[29] 'CLOCK' Timeout
9/15/2023, 10:52:57 AM [warn] Command[29] 'CLOCK' Timeout
9/15/2023, 10:52:59 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:53:02 AM [warn] Command[29] 'CLOCK' Timeout
9/15/2023, 10:53:07 AM [warn] Command[29] 'CLOCK' Timeout
9/15/2023, 10:53:07 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":29,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,60,72,91,96,29,246,109,196,222,149,148,3]}}
9/15/2023, 10:53:15 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:53:22 AM [warn] Command[30] 'CLOCK' Timeout
9/15/2023, 10:53:25 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:53:27 AM [warn] Command[30] 'CLOCK' Timeout
9/15/2023, 10:53:32 AM [warn] Command[30] 'CLOCK' Timeout
9/15/2023, 10:53:37 AM [warn] Command[30] 'CLOCK' Timeout
9/15/2023, 10:53:37 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":30,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,53,72,91,96,29,246,109,183,169,146,229,3]}}
9/15/2023, 10:53:41 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:53:51 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:53:52 AM [warn] Command[31] 'CLOCK' Timeout
9/15/2023, 10:53:57 AM [warn] Command[31] 'CLOCK' Timeout
9/15/2023, 10:54:02 AM [warn] Command[31] 'CLOCK' Timeout
9/15/2023, 10:54:07 AM [warn] Command[31] 'CLOCK' Timeout
9/15/2023, 10:54:07 AM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":31,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,52,72,91,96,29,246,109,196,169,145,229,3]}}
9/15/2023, 10:54:07 AM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/15/2023, 10:54:17 AM [info] RiscoCloud Socket: ready
9/15/2023, 10:54:22 AM [warn] Command[32] 'CLOCK' Timeout
markxroberts commented 1 year ago

Shame. Thanks. Does the proxy connection sensor change state? The clock has already timed out at the start of this log. Can I pls see the entries just before.

pergolafabio commented 1 year ago

Sure, here is the history:

image

Hmm, it did change to disconnected at around the cable was plugged in again... maybe thats causing it? maybe i need to take out the cable longer?

Hmm, but its still 6 min, thats way to long anyway before the proxy sensor went to disconnected, dont think thats oK, it was faster before, like 1-2 min max

markxroberts commented 1 year ago

I don't follow that. cable out at: 9/15/2023, 10:39:56 AM [warn] Command[3] 'CLOCK' Timeout image above shows Was disconnected at 10:40:36 So, that's only 40 seconds.

There has already been a clock timeout at 10:39:51, though which would suggest that cable disconnected earlier. Would be good to see those logs so that I can see which messages are coming from the addon at that time.

Agree that it's a long time before shows reconnected, but can't debug why.

Or am I not understanding you?

pergolafabio commented 1 year ago

Sorry, you are right, I misread ...!!

pergolafabio commented 1 year ago

do you want me to create new logs ?

markxroberts commented 1 year ago

I just need to see the logs slightly earlier please as the first log shown is of an error which would suggest that it is after the cable was removed. Thanks

pergolafabio commented 1 year ago

ok, new logs

here i took the UTP:

9/17/2023, 6:11:55 PM [warn] Command[30] 'CLOCK' Timeout

image

It was plugged in/connected again around: 6:16:11 PM , but never connected again

Full log:

9/17/2023, 6:08:59 PM [info] Subscribing to risco-alarm-panel/alarm/zone/7-bypass/set topic
9/17/2023, 6:08:59 PM [info] Subscribing to risco-alarm-panel/alarm/zone/8-bypass/set topic
9/17/2023, 6:08:59 PM [info] Subscribing to panel partitions events
9/17/2023, 6:08:59 PM [info] Subscribing to panel zones events
9/17/2023, 6:08:59 PM [info] Subscribing to panel outputs events
9/17/2023, 6:08:59 PM [info] Subscribing to panel system events
9/17/2023, 6:08:59 PM [info] Subscribing to Home Assistant online status
9/17/2023, 6:08:59 PM [info] Initialization completed
9/17/2023, 6:08:59 PM [info] homeassistant/status was subscribed
9/17/2023, 6:11:55 PM [warn] Command[30] 'CLOCK' Timeout
9/17/2023, 6:12:00 PM [warn] Command[30] 'CLOCK' Timeout
9/17/2023, 6:12:05 PM [warn] Command[30] 'CLOCK' Timeout
9/17/2023, 6:12:10 PM [warn] Command[30] 'CLOCK' Timeout
9/17/2023, 6:12:10 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":30,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,53,72,91,96,29,246,109,183,169,146,229,3]}}
9/17/2023, 6:12:14 PM [error] RiscoCloud Socket Timeout.
9/17/2023, 6:12:25 PM [warn] Command[31] 'CLOCK' Timeout
9/17/2023, 6:12:30 PM [warn] Command[31] 'CLOCK' Timeout
9/17/2023, 6:12:35 PM [warn] Command[31] 'CLOCK' Timeout
9/17/2023, 6:12:40 PM [warn] Command[31] 'CLOCK' Timeout
9/17/2023, 6:12:40 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":31,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,52,72,91,96,29,246,109,196,169,145,229,3]}}
9/17/2023, 6:12:47 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:12:55 PM [warn] Command[32] 'CLOCK' Timeout
9/17/2023, 6:12:57 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:13:00 PM [warn] Command[32] 'CLOCK' Timeout
9/17/2023, 6:13:05 PM [warn] Command[32] 'CLOCK' Timeout
9/17/2023, 6:13:10 PM [warn] Command[32] 'CLOCK' Timeout
9/17/2023, 6:13:10 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":32,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,55,72,91,96,29,246,109,196,169,233,228,3]}}
9/17/2023, 6:13:13 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:13:23 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:13:25 PM [warn] Command[33] 'CLOCK' Timeout
9/17/2023, 6:13:30 PM [warn] Command[33] 'CLOCK' Timeout
9/17/2023, 6:13:35 PM [warn] Command[33] 'CLOCK' Timeout
9/17/2023, 6:13:39 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:13:40 PM [warn] Command[33] 'CLOCK' Timeout
9/17/2023, 6:13:40 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":33,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,54,72,91,96,29,246,109,183,169,232,228,3]}}
9/17/2023, 6:13:49 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:13:55 PM [warn] Command[34] 'CLOCK' Timeout
9/17/2023, 6:14:00 PM [warn] Command[34] 'CLOCK' Timeout
9/17/2023, 6:14:05 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:14:05 PM [warn] Command[34] 'CLOCK' Timeout
9/17/2023, 6:14:10 PM [warn] Command[34] 'CLOCK' Timeout
9/17/2023, 6:14:10 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":34,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,49,72,91,96,29,246,109,196,169,150,153,3]}}
9/17/2023, 6:14:15 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:14:25 PM [warn] Command[35] 'CLOCK' Timeout
9/17/2023, 6:14:30 PM [warn] Command[35] 'CLOCK' Timeout
9/17/2023, 6:14:31 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:14:35 PM [warn] Command[35] 'CLOCK' Timeout
9/17/2023, 6:14:41 PM [warn] Command[35] 'CLOCK' Timeout
9/17/2023, 6:14:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":35,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,48,72,91,96,29,246,109,183,169,149,153,3]}}
9/17/2023, 6:14:41 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:14:56 PM [warn] Command[36] 'CLOCK' Timeout
9/17/2023, 6:14:57 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:15:01 PM [warn] Command[36] 'CLOCK' Timeout
9/17/2023, 6:15:06 PM [warn] Command[36] 'CLOCK' Timeout
9/17/2023, 6:15:07 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:15:11 PM [warn] Command[36] 'CLOCK' Timeout
9/17/2023, 6:15:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":36,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,51,72,91,96,29,246,109,183,169,148,227,3]}}
9/17/2023, 6:15:23 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:15:26 PM [warn] Command[37] 'CLOCK' Timeout
9/17/2023, 6:15:31 PM [warn] Command[37] 'CLOCK' Timeout
9/17/2023, 6:15:33 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:15:36 PM [warn] Command[37] 'CLOCK' Timeout
9/17/2023, 6:15:41 PM [warn] Command[37] 'CLOCK' Timeout
9/17/2023, 6:15:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":37,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,50,72,91,96,29,246,109,196,169,147,227,3]}}
9/17/2023, 6:15:49 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:15:56 PM [warn] Command[38] 'CLOCK' Timeout
9/17/2023, 6:15:59 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:16:01 PM [warn] Command[38] 'CLOCK' Timeout
9/17/2023, 6:16:06 PM [warn] Command[38] 'CLOCK' Timeout
9/17/2023, 6:16:11 PM [warn] Command[38] 'CLOCK' Timeout
9/17/2023, 6:16:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":38,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,61,72,91,96,29,246,109,196,169,227,149,3]}}
9/17/2023, 6:16:15 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:16:25 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:16:26 PM [warn] Command[39] 'CLOCK' Timeout
9/17/2023, 6:16:31 PM [warn] Command[39] 'CLOCK' Timeout
9/17/2023, 6:16:36 PM [warn] Command[39] 'CLOCK' Timeout
9/17/2023, 6:16:41 PM [warn] Command[39] 'CLOCK' Timeout
9/17/2023, 6:16:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":39,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,60,72,91,96,29,246,109,183,169,226,149,3]}}
9/17/2023, 6:16:41 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:16:51 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:16:56 PM [warn] Command[40] 'CLOCK' Timeout
9/17/2023, 6:17:01 PM [warn] Command[40] 'CLOCK' Timeout
9/17/2023, 6:17:06 PM [warn] Command[40] 'CLOCK' Timeout
9/17/2023, 6:17:07 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:17:11 PM [warn] Command[40] 'CLOCK' Timeout
9/17/2023, 6:17:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":40,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,53,72,91,96,29,246,109,198,171,150,226,3]}}
9/17/2023, 6:17:17 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:17:26 PM [warn] Command[41] 'CLOCK' Timeout
9/17/2023, 6:17:31 PM [warn] Command[41] 'CLOCK' Timeout
9/17/2023, 6:17:33 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:17:36 PM [warn] Command[41] 'CLOCK' Timeout
9/17/2023, 6:17:41 PM [warn] Command[41] 'CLOCK' Timeout
9/17/2023, 6:17:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":41,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data": [2,17,54,52,72,91,96,29,246,109,177,171,149,226,3]}}
9/17/2023, 6:18:25 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:18:26 PM [warn] Command[43] 'CLOCK' Timeout
9/17/2023, 6:18:31 PM [warn] Command[43] 'CLOCK' Timeout
9/17/2023, 6:18:35 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:18:36 PM [warn] Command[43] 'CLOCK' Timeout
9/17/2023, 6:18:41 PM [warn] Command[43] 'CLOCK' Timeout
9/17/2023, 6:18:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":43,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,54,72,91,96,29,246,109,198,171,147,231,3]}}
9/17/2023, 6:18:50 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:18:56 PM [warn] Command[44] 'CLOCK' Timeout
9/17/2023, 6:19:00 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:19:01 PM [warn] Command[44] 'CLOCK' Timeout
9/17/2023, 6:19:06 PM [warn] Command[44] 'CLOCK' Timeout
9/17/2023, 6:19:11 PM [warn] Command[44] 'CLOCK' Timeout
9/17/2023, 6:19:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":44,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,49,72,91,96,29,246,109,177,171,146,152,3]}}
9/17/2023, 6:19:16 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:19:26 PM [warn] Command[45] 'CLOCK' Timeout
9/17/2023, 6:19:26 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:19:31 PM [warn] Command[45] 'CLOCK' Timeout
9/17/2023, 6:19:36 PM [warn] Command[45] 'CLOCK' Timeout
9/17/2023, 6:19:41 PM [warn] Command[45] 'CLOCK' Timeout
9/17/2023, 6:19:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":45,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,48,72,91,96,29,246,109,198,171,145,152,3]}}
9/17/2023, 6:19:42 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:19:52 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:19:56 PM [warn] Command[46] 'CLOCK' Timeout
9/17/2023, 6:20:01 PM [warn] Command[46] 'CLOCK' Timeout
9/17/2023, 6:20:06 PM [warn] Command[46] 'CLOCK' Timeout
9/17/2023, 6:20:08 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:20:11 PM [warn] Command[46] 'CLOCK' Timeout
9/17/2023, 6:20:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":46,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,51,72,91,96,29,246,109,198,171,233,224,3]}}
9/17/2023, 6:20:18 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:20:26 PM [warn] Command[47] 'CLOCK' Timeout
9/17/2023, 6:20:31 PM [warn] Command[47] 'CLOCK' Timeout
9/17/2023, 6:20:34 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:20:36 PM [warn] Command[47] 'CLOCK' Timeout
9/17/2023, 6:20:41 PM [warn] Command[47] 'CLOCK' Timeout
9/17/2023, 6:20:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":47,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,50,72,91,96,29,246,109,177,171,232,224,3]}}
9/17/2023, 6:20:44 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:20:56 PM [warn] Command[48] 'CLOCK' Timeout
9/17/2023, 6:21:00 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:21:01 PM [warn] Command[48] 'CLOCK' Timeout
9/17/2023, 6:21:06 PM [warn] Command[48] 'CLOCK' Timeout
9/17/2023, 6:21:10 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:21:11 PM [warn] Command[48] 'CLOCK' Timeout
9/17/2023, 6:21:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":48,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,61,72,91,96,29,246,109,177,171,231,148,3]}}
9/17/2023, 6:21:26 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:21:26 PM [warn] Command[49] 'CLOCK' Timeout
9/17/2023, 6:21:31 PM [warn] Command[49] 'CLOCK' Timeout
9/17/2023, 6:21:36 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:21:36 PM [warn] Command[49] 'CLOCK' Timeout
9/17/2023, 6:21:41 PM [warn] Command[49] 'CLOCK' Timeout
9/17/2023, 6:21:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":49,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,60,72,91,96,29,246,109,198,171,230,148,3]}}
9/17/2023, 6:21:51 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:21:56 PM [warn] Command[1] 'CLOCK' Timeout
9/17/2023, 6:22:01 PM [warn] Command[1] 'CLOCK' Timeout
9/17/2023, 6:22:01 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:22:06 PM [warn] Command[1] 'CLOCK' Timeout
9/17/2023, 6:22:11 PM [warn] Command[1] 'CLOCK' Timeout
9/17/2023, 6:22:11 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":1,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,52,72,91,96,29,246,109,197,174,149,229,3]}}
9/17/2023, 6:22:17 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:22:26 PM [warn] Command[2] 'CLOCK' Timeout
9/17/2023, 6:22:27 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:22:31 PM [warn] Command[2] 'CLOCK' Timeout
9/17/2023, 6:22:36 PM [warn] Command[2] 'CLOCK' Timeout
9/17/2023, 6:22:41 PM [warn] Command[2] 'CLOCK' Timeout
9/17/2023, 6:22:41 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":2,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,55,72,91,96,29,246,109,197,174,148,228,3]}}
9/17/2023, 6:22:43 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/17/2023, 6:22:53 PM [info] RiscoCloud Socket: ready
9/17/2023, 6:22:56 PM [warn] Command[3] 'CLOCK' Timeout
9/17/2023, 6:23:01 PM [warn] Command[3] 'CLOCK' Timeout
pergolafabio commented 1 year ago

what i also notice, if the system is offline or even online, when i press the restart communication , it doesnt restart anymore

i just get:

9/17/2023, 8:35:12 PM [info] Message to reinitiate communications
9/17/2023, 8:35:12 PM [info] TCP Socket Disconnected
9/17/2023, 8:35:12 PM [info] Won't attempt automatic reconnection
markxroberts commented 1 year ago

Thanks for these. I've made a couple of small changes to disconnect for 2023.9.18. If they don't work, I think we're stuck with the long delays for reconnection.

pergolafabio commented 1 year ago

ok, can you push 9.18 ? its not yet avaible

pergolafabio commented 1 year ago

tried 9.18

same issue :-(

image


9/18/2023, 10:12:11 PM [info] [RML] Initialization completed
9/18/2023, 10:12:11 PM [info] [RML] homeassistant/status was subscribed
9/18/2023, 10:14:47 PM [warn] Command[28] 'CLOCK' Timeout
9/18/2023, 10:14:52 PM [warn] Command[28] 'CLOCK' Timeout
9/18/2023, 10:14:57 PM [warn] Command[28] 'CLOCK' Timeout
9/18/2023, 10:15:02 PM [warn] Command[28] 'CLOCK' Timeout
9/18/2023, 10:15:02 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":28,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,61,72,91,96,29,246,109,183,222,150,148,3]}}
9/18/2023, 10:15:17 PM [warn] Command[29] 'CLOCK' Timeout
9/18/2023, 10:15:22 PM [warn] Command[29] 'CLOCK' Timeout
9/18/2023, 10:15:26 PM [error] RiscoCloud Socket Timeout.
9/18/2023, 10:15:27 PM [warn] Command[29] 'CLOCK' Timeout
9/18/2023, 10:15:32 PM [warn] Command[29] 'CLOCK' Timeout
9/18/2023, 10:15:32 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":29,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,60,72,91,96,29,246,109,196,222,149,148,3]}}
9/18/2023, 10:15:47 PM [warn] Command[30] 'CLOCK' Timeout
9/18/2023, 10:15:52 PM [warn] Command[30] 'CLOCK' Timeout
9/18/2023, 10:15:57 PM [warn] Command[30] 'CLOCK' Timeout
9/18/2023, 10:15:59 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:16:02 PM [warn] Command[30] 'CLOCK' Timeout
9/18/2023, 10:16:02 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":30,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,53,72,91,96,29,246,109,183,169,146,229,3]}}
9/18/2023, 10:16:09 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:16:17 PM [warn] Command[31] 'CLOCK' Timeout
9/18/2023, 10:16:22 PM [warn] Command[31] 'CLOCK' Timeout
9/18/2023, 10:16:25 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:16:27 PM [warn] Command[31] 'CLOCK' Timeout
9/18/2023, 10:16:32 PM [warn] Command[31] 'CLOCK' Timeout
9/18/2023, 10:16:32 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":31,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,52,72,91,96,29,246,109,196,169,145,229,3]}}
9/18/2023, 10:16:35 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:16:47 PM [warn] Command[32] 'CLOCK' Timeout
9/18/2023, 10:16:50 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:16:52 PM [warn] Command[32] 'CLOCK' Timeout
9/18/2023, 10:16:57 PM [warn] Command[32] 'CLOCK' Timeout
9/18/2023, 10:17:00 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:17:02 PM [warn] Command[32] 'CLOCK' Timeout
9/18/2023, 10:17:02 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":32,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,55,72,91,96,29,246,109,196,169,233,228,3]}}
9/18/2023, 10:17:16 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:17:17 PM [warn] Command[33] 'CLOCK' Timeout
9/18/2023, 10:17:22 PM [warn] Command[33] 'CLOCK' Timeout
9/18/2023, 10:17:26 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:17:27 PM [warn] Command[33] 'CLOCK' Timeout
9/18/2023, 10:17:32 PM [warn] Command[33] 'CLOCK' Timeout
9/18/2023, 10:17:32 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":33,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,54,72,91,96,29,246,109,183,169,232,228,3]}}
9/18/2023, 10:17:42 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:17:47 PM [warn] Command[34] 'CLOCK' Timeout
9/18/2023, 10:17:52 PM [warn] Command[34] 'CLOCK' Timeout
9/18/2023, 10:17:52 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:17:57 PM [warn] Command[34] 'CLOCK' Timeout
9/18/2023, 10:18:02 PM [warn] Command[34] 'CLOCK' Timeout
9/18/2023, 10:18:02 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":34,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,49,72,91,96,29,246,109,196,169,150,153,3]}}
9/18/2023, 10:18:08 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:18:17 PM [warn] Command[35] 'CLOCK' Timeout
9/18/2023, 10:18:18 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:18:22 PM [warn] Command[35] 'CLOCK' Timeout
9/18/2023, 10:18:27 PM [warn] Command[35] 'CLOCK' Timeout
9/18/2023, 10:18:32 PM [warn] Command[35] 'CLOCK' Timeout
9/18/2023, 10:18:32 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":35,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,48,72,91,96,29,246,109,183,169,149,153,3]}}
9/18/2023, 10:18:34 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:18:44 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:18:47 PM [warn] Command[36] 'CLOCK' Timeout
9/18/2023, 10:18:52 PM [warn] Command[36] 'CLOCK' Timeout
9/18/2023, 10:18:57 PM [warn] Command[36] 'CLOCK' Timeout
9/18/2023, 10:19:01 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:19:02 PM [warn] Command[36] 'CLOCK' Timeout
9/18/2023, 10:19:02 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":36,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,51,72,91,96,29,246,109,183,169,148,227,3]}}
9/18/2023, 10:19:11 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:19:17 PM [warn] Command[37] 'CLOCK' Timeout
9/18/2023, 10:19:22 PM [warn] Command[37] 'CLOCK' Timeout
9/18/2023, 10:19:27 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:19:27 PM [warn] Command[37] 'CLOCK' Timeout
9/18/2023, 10:19:32 PM [warn] Command[37] 'CLOCK' Timeout
9/18/2023, 10:19:32 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":37,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,50,72,91,96,29,246,109,196,169,147,227,3]}}
9/18/2023, 10:19:37 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:19:47 PM [warn] Command[38] 'CLOCK' Timeout
9/18/2023, 10:19:52 PM [warn] Command[38] 'CLOCK' Timeout
9/18/2023, 10:19:53 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:19:57 PM [warn] Command[38] 'CLOCK' Timeout
9/18/2023, 10:20:02 PM [warn] Command[38] 'CLOCK' Timeout
9/18/2023, 10:20:02 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":38,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,61,72,91,96,29,246,109,196,169,227,149,3]}}
9/18/2023, 10:20:03 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:20:17 PM [warn] Command[39] 'CLOCK' Timeout
9/18/2023, 10:20:19 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:20:22 PM [warn] Command[39] 'CLOCK' Timeout
9/18/2023, 10:20:27 PM [warn] Command[39] 'CLOCK' Timeout
9/18/2023, 10:20:29 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:20:32 PM [warn] Command[39] 'CLOCK' Timeout
9/18/2023, 10:20:32 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":39,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,49,60,72,91,96,29,246,109,183,169,226,149,3]}}
9/18/2023, 10:20:44 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:20:47 PM [warn] Command[40] 'CLOCK' Timeout
9/18/2023, 10:20:52 PM [warn] Command[40] 'CLOCK' Timeout
9/18/2023, 10:20:54 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:20:57 PM [warn] Command[40] 'CLOCK' Timeout
9/18/2023, 10:21:02 PM [warn] Command[40] 'CLOCK' Timeout
9/18/2023, 10:21:02 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":40,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,53,72,91,96,29,246,109,198,171,150,226,3]}}
9/18/2023, 10:21:11 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:21:17 PM [warn] Command[41] 'CLOCK' Timeout
9/18/2023, 10:21:21 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:21:22 PM [warn] Command[41] 'CLOCK' Timeout
9/18/2023, 10:21:27 PM [warn] Command[41] 'CLOCK' Timeout
9/18/2023, 10:21:32 PM [warn] Command[41] 'CLOCK' Timeout
9/18/2023, 10:21:32 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":41,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,52,72,91,96,29,246,109,177,171,149,226,3]}}
9/18/2023, 10:21:36 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:21:46 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:21:47 PM [warn] Command[42] 'CLOCK' Timeout
9/18/2023, 10:21:52 PM [warn] Command[42] 'CLOCK' Timeout
9/18/2023, 10:21:57 PM [warn] Command[42] 'CLOCK' Timeout
9/18/2023, 10:22:02 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:22:02 PM [warn] Command[42] 'CLOCK' Timeout
9/18/2023, 10:22:02 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":42,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,55,72,91,96,29,246,109,177,171,148,231,3]}}
9/18/2023, 10:22:12 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:22:17 PM [warn] Command[43] 'CLOCK' Timeout
9/18/2023, 10:22:22 PM [warn] Command[43] 'CLOCK' Timeout
9/18/2023, 10:22:27 PM [warn] Command[43] 'CLOCK' Timeout
9/18/2023, 10:22:28 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/18/2023, 10:22:32 PM [warn] Command[43] 'CLOCK' Timeout
9/18/2023, 10:22:32 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":43,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,54,72,91,96,29,246,109,198,171,147,231,3]}}
pergolafabio commented 1 year ago

the button to restart now worked tough:

9/18/2023, 10:23:54 PM [warn] Error while sending DCN command
9/18/2023, 10:23:54 PM [info] TCP Socket Disconnected
9/18/2023, 10:23:54 PM [info] Automatic reconnection will be attempted in 10000 ms
9/18/2023, 10:23:55 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:24:04 PM [info] Listening on IP :: and Port 33000
9/18/2023, 10:24:04 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
9/18/2023, 10:24:11 PM [info] RiscoCloud Socket: closed
9/18/2023, 10:24:56 PM [info] Incoming connection from panel received
9/18/2023, 10:24:56 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:24:56 PM [info] Setting a timer for panel connection in 30000 ms
9/18/2023, 10:25:26 PM [error] Panel Socket Closed.
9/18/2023, 10:25:26 PM [info] TCP Socket Disconnected
9/18/2023, 10:25:26 PM [info] Automatic reconnection will be attempted in 10000 ms
9/18/2023, 10:25:26 PM [warn] Panel Socket not connected, aborting panel connection sequence
9/18/2023, 10:25:36 PM [info] Listening on IP :: and Port 33000
9/18/2023, 10:25:36 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
9/18/2023, 10:25:41 PM [info] Incoming connection from panel received
9/18/2023, 10:25:41 PM [info] RiscoCloud Socket: ready
9/18/2023, 10:25:41 PM [info] Setting a timer for panel connection in 30000 ms
9/18/2023, 10:26:12 PM [info] Panel info: LightSys/RP432, FW 2.70
9/18/2023, 10:26:12 PM [info] Panel options: 4 parts, 32 zones, 14 outputs, Pir Cam support: false
9/18/2023, 10:26:12 PM [info] Devices discovery already done
markxroberts commented 1 year ago

Thanks. I've combined the changes so that if you press the button there's an immediate disconnect/auto restart, but if it just times out, then it waits before reconnecting. That's released as 9.19. Does this manage the problem for you?

pergolafabio commented 1 year ago

Ok, thnx!? But I can't test, I don't see any updates yet?

pergolafabio commented 1 year ago

I see now .20, but something wrong with the image, manifest is missing also

markxroberts commented 1 year ago

All the builds are failing today. Something to do with the remote server. I'll resend when I can. Docker image available.

pergolafabio commented 1 year ago

can you try to rebuild? cause i cant install update now on the addon, cause its using the image now :-)

markxroberts commented 1 year ago

Have tried this again.  Something has gone wrong with the authentication.  Am away at present so won’t get to this for a week or so.  Sorry!Mark RobertsOn 25 Sep 2023, at 21:06, Pergola Fabio @.***> wrote: can you try to rebuild? cause i cant install update now on the addon, cause its using the image now :-)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

pergolafabio commented 1 year ago

ok, gonna build as local addon, without image, will test later this day

pergolafabio commented 1 year ago

ok, tried .20 unplugged at around 12:22 proxy sensor showed disconnected at : 12:23:08

cable was connected again around: 12:26

but didt come back anymore :-(

pressing the restart around 12:32 brought back connection, but i also crashed the addon, couldnt see the error, cause wathdog was enabled :-(

full log:

9/26/2023, 12:16:56 PM [info] [RML] Initialization completed
9/26/2023, 12:16:56 PM [info] [RML] homeassistant/status was subscribed
9/26/2023, 12:22:23 PM [warn] Command[45] 'CLOCK' Timeout
9/26/2023, 12:22:28 PM [warn] Command[45] 'CLOCK' Timeout
9/26/2023, 12:22:33 PM [warn] Command[45] 'CLOCK' Timeout
9/26/2023, 12:22:38 PM [warn] Command[45] 'CLOCK' Timeout
9/26/2023, 12:22:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":45,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,48,72,91,96,29,246,109,198,171,145,152,3]}}
9/26/2023, 12:22:53 PM [warn] Command[46] 'CLOCK' Timeout
9/26/2023, 12:22:58 PM [warn] Command[46] 'CLOCK' Timeout
9/26/2023, 12:23:03 PM [warn] Command[46] 'CLOCK' Timeout
9/26/2023, 12:23:08 PM [warn] Command[46] 'CLOCK' Timeout
9/26/2023, 12:23:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":46,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,51,72,91,96,29,246,109,198,171,233,224,3]}}
9/26/2023, 12:23:23 PM [warn] Command[47] 'CLOCK' Timeout
9/26/2023, 12:23:28 PM [warn] Command[47] 'CLOCK' Timeout
9/26/2023, 12:23:33 PM [warn] Command[47] 'CLOCK' Timeout
9/26/2023, 12:23:38 PM [warn] Command[47] 'CLOCK' Timeout
9/26/2023, 12:23:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":47,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,50,72,91,96,29,246,109,177,171,232,224,3]}}
9/26/2023, 12:23:53 PM [warn] Command[48] 'CLOCK' Timeout
9/26/2023, 12:23:58 PM [warn] Command[48] 'CLOCK' Timeout
9/26/2023, 12:24:03 PM [warn] Command[48] 'CLOCK' Timeout
9/26/2023, 12:24:06 PM [error] RiscoCloud Socket Timeout.
9/26/2023, 12:24:08 PM [warn] Command[48] 'CLOCK' Timeout
9/26/2023, 12:24:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":48,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,61,72,91,96,29,246,109,177,171,231,148,3]}}
9/26/2023, 12:24:23 PM [warn] Command[49] 'CLOCK' Timeout
9/26/2023, 12:24:28 PM [warn] Command[49] 'CLOCK' Timeout
9/26/2023, 12:24:33 PM [warn] Command[49] 'CLOCK' Timeout
9/26/2023, 12:24:38 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:24:38 PM [warn] Command[49] 'CLOCK' Timeout
9/26/2023, 12:24:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":49,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,54,60,72,91,96,29,246,109,198,171,230,148,3]}}
9/26/2023, 12:24:48 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:24:53 PM [warn] Command[1] 'CLOCK' Timeout
9/26/2023, 12:24:58 PM [warn] Command[1] 'CLOCK' Timeout
9/26/2023, 12:25:03 PM [warn] Command[1] 'CLOCK' Timeout
9/26/2023, 12:25:04 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:25:08 PM [warn] Command[1] 'CLOCK' Timeout
9/26/2023, 12:25:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":1,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,52,72,91,96,29,246,109,197,174,149,229,3]}}
9/26/2023, 12:25:14 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:25:23 PM [warn] Command[2] 'CLOCK' Timeout
9/26/2023, 12:25:28 PM [warn] Command[2] 'CLOCK' Timeout
9/26/2023, 12:25:30 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:25:33 PM [warn] Command[2] 'CLOCK' Timeout
9/26/2023, 12:25:38 PM [warn] Command[2] 'CLOCK' Timeout
9/26/2023, 12:25:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":2,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,55,72,91,96,29,246,109,197,174,148,228,3]}}
9/26/2023, 12:25:40 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:25:53 PM [warn] Command[3] 'CLOCK' Timeout
9/26/2023, 12:25:55 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:25:58 PM [warn] Command[3] 'CLOCK' Timeout
9/26/2023, 12:26:03 PM [warn] Command[3] 'CLOCK' Timeout
9/26/2023, 12:26:06 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:26:08 PM [warn] Command[3] 'CLOCK' Timeout
9/26/2023, 12:26:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":3,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,54,72,91,96,29,246,109,176,174,147,228,3]}}
9/26/2023, 12:26:22 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:26:23 PM [warn] Command[4] 'CLOCK' Timeout
9/26/2023, 12:26:28 PM [warn] Command[4] 'CLOCK' Timeout
9/26/2023, 12:26:32 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:26:33 PM [warn] Command[4] 'CLOCK' Timeout
9/26/2023, 12:26:38 PM [warn] Command[4] 'CLOCK' Timeout
9/26/2023, 12:26:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":4,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,49,72,91,96,29,246,109,197,174,146,153,3]}}
9/26/2023, 12:26:48 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:26:53 PM [warn] Command[5] 'CLOCK' Timeout
9/26/2023, 12:26:58 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:26:58 PM [warn] Command[5] 'CLOCK' Timeout
9/26/2023, 12:27:03 PM [warn] Command[5] 'CLOCK' Timeout
9/26/2023, 12:27:08 PM [warn] Command[5] 'CLOCK' Timeout
9/26/2023, 12:27:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":5,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,48,72,91,96,29,246,109,176,174,145,153,3]}}
9/26/2023, 12:27:14 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:27:23 PM [warn] Command[6] 'CLOCK' Timeout
9/26/2023, 12:27:24 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:27:28 PM [warn] Command[6] 'CLOCK' Timeout
9/26/2023, 12:27:33 PM [warn] Command[6] 'CLOCK' Timeout
9/26/2023, 12:27:38 PM [warn] Command[6] 'CLOCK' Timeout
9/26/2023, 12:27:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":6,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,51,72,91,96,29,246,109,176,174,233,227,3]}}
9/26/2023, 12:27:40 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:27:50 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:27:53 PM [warn] Command[7] 'CLOCK' Timeout
9/26/2023, 12:27:58 PM [warn] Command[7] 'CLOCK' Timeout
9/26/2023, 12:28:03 PM [warn] Command[7] 'CLOCK' Timeout
9/26/2023, 12:28:06 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:28:08 PM [warn] Command[7] 'CLOCK' Timeout
9/26/2023, 12:28:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":7,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,50,72,91,96,29,246,109,197,174,232,227,3]}}
9/26/2023, 12:28:16 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:28:23 PM [warn] Command[8] 'CLOCK' Timeout
9/26/2023, 12:28:28 PM [warn] Command[8] 'CLOCK' Timeout
9/26/2023, 12:28:32 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:28:33 PM [warn] Command[8] 'CLOCK' Timeout
9/26/2023, 12:28:38 PM [warn] Command[8] 'CLOCK' Timeout
9/26/2023, 12:28:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":8,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,61,72,91,96,29,246,109,197,174,231,149,3]}}
9/26/2023, 12:28:42 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:28:53 PM [warn] Command[9] 'CLOCK' Timeout
9/26/2023, 12:28:58 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:28:58 PM [warn] Command[9] 'CLOCK' Timeout
9/26/2023, 12:29:03 PM [warn] Command[9] 'CLOCK' Timeout
9/26/2023, 12:29:08 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:29:08 PM [warn] Command[9] 'CLOCK' Timeout
9/26/2023, 12:29:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":9,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,50,60,72,91,96,29,246,109,176,174,230,149,3]}}
9/26/2023, 12:29:23 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:29:23 PM [warn] Command[10] 'CLOCK' Timeout
9/26/2023, 12:29:28 PM [warn] Command[10] 'CLOCK' Timeout
9/26/2023, 12:29:33 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:29:33 PM [warn] Command[10] 'CLOCK' Timeout
9/26/2023, 12:29:38 PM [warn] Command[10] 'CLOCK' Timeout
9/26/2023, 12:29:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":10,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,53,72,91,96,29,246,109,197,219,227,226,3]}}
9/26/2023, 12:29:49 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:29:53 PM [warn] Command[11] 'CLOCK' Timeout
9/26/2023, 12:29:58 PM [warn] Command[11] 'CLOCK' Timeout
9/26/2023, 12:30:00 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:30:03 PM [warn] Command[11] 'CLOCK' Timeout
9/26/2023, 12:30:08 PM [warn] Command[11] 'CLOCK' Timeout
9/26/2023, 12:30:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":11,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,52,72,91,96,29,246,109,176,219,226,226,3]}}
9/26/2023, 12:30:15 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:30:23 PM [warn] Command[12] 'CLOCK' Timeout
9/26/2023, 12:30:25 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:30:28 PM [warn] Command[12] 'CLOCK' Timeout
9/26/2023, 12:30:33 PM [warn] Command[12] 'CLOCK' Timeout
9/26/2023, 12:30:38 PM [warn] Command[12] 'CLOCK' Timeout
9/26/2023, 12:30:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":12,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,55,72,91,96,29,246,109,176,219,225,231,3]}}
9/26/2023, 12:30:42 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:30:52 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:30:53 PM [warn] Command[13] 'CLOCK' Timeout
9/26/2023, 12:30:58 PM [warn] Command[13] 'CLOCK' Timeout
9/26/2023, 12:31:03 PM [warn] Command[13] 'CLOCK' Timeout
9/26/2023, 12:31:07 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:31:08 PM [warn] Command[13] 'CLOCK' Timeout
9/26/2023, 12:31:08 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":13,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,54,72,91,96,29,246,109,197,219,224,231,3]}}
9/26/2023, 12:31:17 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:31:23 PM [warn] Command[14] 'CLOCK' Timeout
9/26/2023, 12:31:28 PM [warn] Command[14] 'CLOCK' Timeout
9/26/2023, 12:31:33 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:31:33 PM [warn] Command[14] 'CLOCK' Timeout
9/26/2023, 12:31:38 PM [warn] Command[14] 'CLOCK' Timeout
9/26/2023, 12:31:38 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":14,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,49,72,91,96,29,246,109,176,219,231,152,3]}}
9/26/2023, 12:31:44 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:31:53 PM [warn] Command[15] 'CLOCK' Timeout
9/26/2023, 12:31:58 PM [warn] Command[15] 'CLOCK' Timeout
9/26/2023, 12:32:00 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
9/26/2023, 12:32:03 PM [warn] Command[15] 'CLOCK' Timeout
9/26/2023, 12:32:07 PM [info] [RML] Message received via MQTT to reinitiate communications
9/26/2023, 12:32:07 PM [info] [MQTT => Panel] Disconnect socket command sent
9/26/2023, 12:32:08 PM [warn] Command[15] 'CLOCK' Timeout
9/26/2023, 12:32:09 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":15,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,51,48,72,91,96,29,246,109,197,219,230,152,3]}}
9/26/2023, 12:32:10 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:32:12 PM [warn] Command[16] 'DCN' Timeout
9/26/2023, 12:32:12 PM [warn] Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":16,"attempts":1,"crcOk":false,"commandStr":"DCN","sentBuffer":{"type":"Buffer","data":[2,17,51,51,79,84,97,73,255,78,193,171,3]}}
9/26/2023, 12:32:12 PM [warn] Error while sending DCN command
9/26/2023, 12:32:12 PM [info] TCP Socket Disconnected
9/26/2023, 12:32:12 PM [info] Automatic reconnection will be attempted in 10000 ms
9/26/2023, 12:32:22 PM [info] Listening on IP :: and Port 33000
9/26/2023, 12:32:22 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
9/26/2023, 12:32:59 PM [info] Incoming connection from panel received
9/26/2023, 12:32:59 PM [info] RiscoCloud Socket: ready
9/26/2023, 12:32:59 PM [info] Setting a timer for panel connection in 30000 ms
markxroberts commented 1 year ago

@pergolafabio this is showing as closed/reopened. I've worked out how to rebuild the add-on and have done that for 2023.10.0. Which is the best version of this?

pergolafabio commented 1 year ago

Yeah, pressed the wrong button by mistake :-)

I installed already now 2023.10.0, will do the same tests asap

Thnx and have a nice weekend

pergolafabio commented 1 year ago

ok, quickly tested, it took some time, but eventually it connected again

image

{"panelId":1,"commandId":20,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,53,72,91,96,29,246,109,196,222,231,226,3]}}
10/7/2023, 12:24:54 PM [error] RiscoCloud Socket: close. Retrying within 10000 ms
10/7/2023, 12:24:55 PM [warn] Command[21] 'CLOCK' Timeout
10/7/2023, 12:25:00 PM [warn] Command[21] 'CLOCK' Timeout
10/7/2023, 12:25:04 PM [info] RiscoCloud Socket: ready
10/7/2023, 12:25:05 PM [warn] Command[21] 'CLOCK' Timeout
10/7/2023, 12:25:10 PM [warn] Command[21] 'CLOCK' Timeout
10/7/2023, 12:25:10 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":21,"attempts":4,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,52,72,91,96,29,246,109,183,222,230,226,3]}}
10/7/2023, 12:25:20 PM [error] Panel Socket Error : Error: read EHOSTUNREACH
10/7/2023, 12:25:20 PM [info] TCP Socket Disconnected
10/7/2023, 12:25:20 PM [info] Automatic reconnection will be attempted in 10000 ms
10/7/2023, 12:25:20 PM [error] Command[22] error: Error: read EHOSTUNREACH
10/7/2023, 12:25:20 PM [error] Panel Socket Closed.
10/7/2023, 12:25:20 PM [warn] Failed to send CLOCK command: RiscoCommandError: Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":22,"attempts":1,"crcOk":false,"commandStr":"CLOCK","sentBuffer":{"type":"Buffer","data":[2,17,48,55,72,91,96,29,246,109,183,222,229,231,3]}}
10/7/2023, 12:25:30 PM [info] Listening on IP :: and Port 33000
10/7/2023, 12:25:30 PM [info] Waiting for panel incoming connection... This can take up to 1 or 2 minutes
10/7/2023, 12:25:59 PM [info] Incoming connection from panel received
10/7/2023, 12:25:59 PM [info] RiscoCloud Socket: ready
10/7/2023, 12:25:59 PM [info] Setting a timer for panel connection in 30000 ms
10/7/2023, 12:26:28 PM [error] Panel Socket Closed.
10/7/2023, 12:26:28 PM [info] TCP Socket Disconnected
10/7/2023, 12:26:28 PM [info] Automatic reconnection will be attempted in 10000 ms
10/7/2023, 12:26:29 PM [warn] Panel Socket not connected, aborting panel connection sequence
pergolafabio commented 1 year ago

did it a second time, but it crashed , and the watchdog already restarted the addon, so was not able to capture logs :-)

Next time i will disable watchdog and grab full logs

markxroberts commented 1 year ago

Thanks. Interesting that it took 17 minutes to reconnect. Would like to see what happened in between. All the reconnection logs that you show are for the underlying risco-lan-bridge library, not for risco-mqtt-local!

pergolafabio commented 1 year ago

Will grab logs next time, but if I take out UTP, when I insert it again , it takes like 5 min when the led is green again, so actually it's 17-5

pergolafabio commented 1 year ago

New logs:

it came back online, just took a while ....

image

risco.log