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

MQTT sensors gone, clock timeouts #26

Closed pergolafabio closed 2 years ago

pergolafabio commented 2 years ago

Describe the bug Hi @vanackej , i had the issue below, seems the sensors became unavailble, while the arming state was still present... i havent had the issue before the new releases lately? I dont have the full debug logs, just normal log, but you see a lot of error/warnigs, allthough its still running

Configuration

Logs

2/26/2022, 3:34:51 PM [info] Subscribing to Home assistant commands topics
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/1/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/1-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/2-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/3-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/4-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/5-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/6-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/7-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/8-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to riscopanel/alarm/zone/9-bypass/set topic
2/26/2022, 3:34:51 PM [info] Subscribing to panel partitions events
2/26/2022, 3:34:51 PM [info] Subscribing to panel zones events
2/26/2022, 3:34:51 PM [info] Initialization completed
2/26/2022, 3:59:56 PM [warn] Command[15] 'CLOCK' Timeout
2/26/2022, 4:12:11 PM [error] RiscoCloud Socket Timeout.
2/26/2022, 4:12:32 PM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/26/2022, 4:12:32 PM [info] [MQTT => Panel] DISARM command sent on partition 1
2/26/2022, 4:12:33 PM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/26/2022, 4:12:33 PM [info] [MQTT => Panel] DISARM command sent on partition 1
2/26/2022, 5:58:12 PM [info] [Panel => MQTT] Published alarm status armed_away on partition 1
2/26/2022, 6:25:29 PM [error] RiscoCloud Socket Timeout.
2/26/2022, 6:57:14 PM [warn] Command[42] 'CLOCK' Timeout
2/26/2022, 10:33:45 PM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/26/2022, 10:33:45 PM [info] [MQTT => Panel] DISARM command sent on partition 1
2/26/2022, 10:33:47 PM [info] [Panel => MQTT] Published alarm status disarmed on partition 1
2/26/2022, 11:22:35 PM [warn] Command[7] 'CLOCK' Timeout
2/26/2022, 11:49:31 PM [warn] Command[20] 'CLOCK' Timeout
2/27/2022, 1:45:12 AM [warn] Command[23] 'CLOCK' Timeout
2/27/2022, 4:03:47 AM [error] RiscoCloud Socket Timeout.
2/27/2022, 5:16:31 AM [warn] Command[8] 'CLOCK' Timeout
2/27/2022, 7:30:00 AM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/27/2022, 7:30:00 AM [info] [MQTT => Panel] DISARM command sent on partition 1
2/27/2022, 7:41:46 AM [error] RiscoCloud Socket Timeout.
2/27/2022, 8:28:32 AM [warn] Command[25] 'CLOCK' Timeout
2/27/2022, 10:19:45 AM [error] RiscoCloud Socket Timeout.
2/27/2022, 10:26:24 AM [warn] Command[41] 'CLOCK' Timeout
2/27/2022, 10:35:45 AM [error] RiscoCloud Socket Timeout.
2/27/2022, 10:45:57 AM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/27/2022, 10:45:57 AM [info] [MQTT => Panel] DISARM command sent on partition 1
2/27/2022, 10:50:00 AM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/27/2022, 10:50:00 AM [info] [MQTT => Panel] DISARM command sent on partition 1
2/27/2022, 10:51:25 AM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/27/2022, 10:51:25 AM [info] [MQTT => Panel] DISARM command sent on partition 1
2/27/2022, 11:46:31 AM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/27/2022, 11:46:31 AM [info] [MQTT => Panel] DISARM command sent on partition 1
2/27/2022, 2:07:09 PM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/27/2022, 2:07:09 PM [info] [MQTT => Panel] DISARM command sent on partition 1
2/27/2022, 2:48:17 PM [warn] Command[33] 'CLOCK' Timeout
2/27/2022, 3:12:20 PM [info] [Panel => MQTT] Published alarm status armed_away on partition 1
2/27/2022, 4:35:11 PM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/27/2022, 4:35:11 PM [info] [MQTT => Panel] DISARM command sent on partition 1
2/27/2022, 4:35:12 PM [info] [Panel => MQTT] Published alarm status disarmed on partition 1
2/27/2022, 4:41:12 PM [error] RiscoCloud Socket Timeout.
2/27/2022, 4:46:21 PM [warn] Command[2] 'CLOCK' Timeout
2/27/2022, 5:11:17 PM [warn] Command[3] 'CLOCK' Timeout
2/27/2022, 5:50:14 PM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/27/2022, 5:50:14 PM [info] [MQTT => Panel] DISARM command sent on partition 1
2/27/2022, 6:15:59 PM [warn] Command[45] 'CLOCK' Timeout
2/27/2022, 6:24:58 PM [warn] Command[49] 'CLOCK' Timeout
2/27/2022, 7:01:13 PM [error] RiscoCloud Socket Timeout.
2/27/2022, 7:53:12 PM [error] RiscoCloud Socket Timeout.
2/27/2022, 8:43:40 PM [warn] Command[42] 'CLOCK' Timeout
2/27/2022, 10:33:01 PM [info] [Panel => MQTT] Published alarm status armed_home on partition 1
2/28/2022, 1:18:04 AM [warn] Command[11] 'CLOCK' Timeout
2/28/2022, 4:02:16 AM [error] RiscoCloud Socket Timeout.
2/28/2022, 4:33:13 AM [warn] Command[47] 'CLOCK' Timeout
2/28/2022, 7:21:12 AM [info] [Panel => MQTT] Published alarm status disarmed on partition 1
2/28/2022, 7:27:13 AM [error] RiscoCloud Socket Timeout.
2/28/2022, 8:44:10 AM [info] [MQTT => Panel] Received change state command DISARM on topic riscopanel/alarm/1/set in partition 1
2/28/2022, 8:44:10 AM [info] [MQTT => Panel] DISARM command sent on partition 1
2/28/2022, 8:46:29 AM [warn] Command[37] 'CLOCK' Timeout

Additional context Add any other context about the problem here.

pergolafabio commented 2 years ago

oh, i know why they are all unavailable? seems the add-on created all duplicates?

image

vanackej commented 2 years ago
pergolafabio commented 2 years ago

yeah, up and running again but how comes it created duplicates?

vanackej commented 2 years ago

I don't know. Sometime HA discovery considers the published entity as a new one and add a number after the entity id. I don't understand when it happens too

pergolafabio commented 2 years ago

ah, weird