I ran the ser2sock capture through a program to add timestamps as I logged the stream and merged the database dump and the capture.
Here's the program (I'm using Python 3.8):
- Code: Select all
#!/usr/bin/env python3
import sys
from datetime import datetime
while (l := sys.stdin.readline()):
sys.stdout.write(f'{datetime.utcnow().strftime("%H:%M:%S")} {l}')
sys.stdout.flush()
Here's the merged dump and capture - I've replaced the serial number of my devices with their zone number.
- Code: Select all
04:49:03|0175358:0:1:1:1:0:0
04:49:08|Zone FAMILY SLIDING DOOR (16) has been faulted.
04:49:08|Zone MASTER BEDROOM MOTION (25) has been restored.
04:49:12|Zone KITCHEN (31) has been restored.
04:49:12|Zone KITCHEN DESK WINDOW (17) has been faulted.
04:49:16|Zone LIVING ROOM WINDOW (10) has been restored.
04:49:16|Zone SIDE BATHROOM WINDOW (19) has been faulted.
04:49:20|Zone KITCHEN (31) has been faulted.
04:49:20|Zone LIVING ROOM WINDOW (11) has been restored.
04:49:22|0044950:0:1:0:0:0:0
04:49:24|Zone LIVING ROOM WINDOW (10) has been faulted.
04:49:24|Zone MASTER BATHROOM WINDOW (12) has been restored.
04:49:27|Zone LIVING ROOM WINDOW (11) has been faulted.
04:49:28|Zone MASTER BEDROOM WINDOW (13) has been restored.
04:49:31|Zone MASTER BATHROOM WINDOW (12) has been faulted.
04:49:32|Zone OFFICE WINDOW (14) has been restored.
04:49:35 [00000001000000000A--],013,[f702000d1013000008020000000000],"FAULT 13 MASTER BEDROOM WINDOW "
04:49:35|Zone MASTER BEDROOM WINDOW (13) has been faulted.
04:49:36|Zone 1ST BEDROOM WINDOW (15) has been restored.
04:49:39 [00000001000000000A--],014,[f702000d1014000008020000000000],"FAULT 14 OFFICE WINDOW "
04:49:39|Zone FAMILY SLIDING DOOR (16) has been restored.
04:49:39|Zone OFFICE WINDOW (14) has been faulted.
04:49:43 [00000001000000000A--],015,[f702000d1015000008020000000000],"FAULT 15 1ST BEDROOM WINDOW "
04:49:43|Zone 1ST BEDROOM WINDOW (15) has been faulted.
04:49:43|Zone KITCHEN DESK WINDOW (17) has been restored.
04:49:47 [00000001000000000A--],016,[f702000d1016000008020000000000],"FAULT 16 FAMILY SLIDING DOOR "
04:49:47|Zone FAMILY SLIDING DOOR (16) has been faulted.
04:49:47|Zone SIDE BATHROOM WINDOW (19) has been restored.
04:49:51 [00000001000000000A--],017,[f702000d1017000008020000000000],"FAULT 17 KITCHENDESK WINDOW "
04:49:51|Zone KITCHEN (31) has been restored.
04:49:51|Zone KITCHEN DESK WINDOW (17) has been faulted.
04:49:55 [00000001000000000A--],019,[f702000d1019000008020000000000],"FAULT 19 SIDE BATHROOM WINDOW "
04:49:55|Zone LIVING ROOM WINDOW (10) has been restored.
04:49:55|Zone SIDE BATHROOM WINDOW (19) has been faulted.
04:49:59 [00000001000000000A--],031,[f702000d1031000008020000000000],"FAULT 31 KITCHEN "
04:49:59|Zone KITCHEN (31) has been faulted.
04:49:59|Zone LIVING ROOM WINDOW (11) has been restored.
04:50:03 [00000001000000000A--],010,[f702000d1010000008020000000000],"FAULT 10 LIVING ROOM WINDOW "
04:50:03|Zone LIVING ROOM WINDOW (10) has been faulted.
04:50:03|Zone MASTER BATHROOM WINDOW (12) has been restored.
04:50:07 [00000001000000000A--],011,[f702000d1011000008020000000000],"FAULT 11 LIVING ROOM WINDOW "
04:50:07|Zone LIVING ROOM WINDOW (11) has been faulted.
04:50:07|Zone MASTER BEDROOM WINDOW (13) has been restored.
04:50:11 [00000001000000000A--],012,[f702000d1012000008020000000000],"FAULT 12 MASTER BATHROOM WINDOW "
04:50:11|Zone MASTER BATHROOM WINDOW (12) has been faulted.
04:50:11|Zone OFFICE WINDOW (14) has been restored.
04:50:15 [00000001000000000A--],013,[f702000d1013000008020000000000],"FAULT 13 MASTER BEDROOM WINDOW "
04:50:15|Zone 1ST BEDROOM WINDOW (15) has been restored.
04:50:15|Zone MASTER BEDROOM WINDOW (13) has been faulted.
04:50:19 [00000001000000000A--],014,[f702000d1014000008020000000000],"FAULT 14 OFFICE WINDOW "
04:50:19|Zone FAMILY SLIDING DOOR (16) has been restored.
04:50:19|Zone OFFICE WINDOW (14) has been faulted.
04:50:23 [00000001000000000A--],015,[f702000d1015000008020000000000],"FAULT 15 1ST BEDROOM WINDOW "
04:50:23|Zone 1ST BEDROOM WINDOW (15) has been faulted.
04:50:23|Zone KITCHEN DESK WINDOW (17) has been restored.
04:50:27 [00000001000000000A--],016,[f702000d1016000008020000000000],"FAULT 16 FAMILY SLIDING DOOR "
04:50:27|Zone FAMILY SLIDING DOOR (16) has been faulted.
04:50:27|Zone SIDE BATHROOM WINDOW (19) has been restored.
04:50:31 [00000001000000000A--],017,[f702000d1017000008020000000000],"FAULT 17 KITCHENDESK WINDOW "
04:50:31|Zone KITCHEN (31) has been restored.
04:50:31|Zone KITCHEN DESK WINDOW (17) has been faulted.
04:50:35 [00000001000000000A--],019,[f702000d1019000008020000000000],"FAULT 19 SIDE BATHROOM WINDOW "
04:50:35|Zone LIVING ROOM WINDOW (10) has been restored.
04:50:35|Zone SIDE BATHROOM WINDOW (19) has been faulted.
04:50:39 [00000001000000000A--],031,[f702000d1031000008020000000000],"FAULT 31 KITCHEN "
04:50:39|Zone KITCHEN (31) has been faulted.
04:50:39|Zone LIVING ROOM WINDOW (11) has been restored.
04:50:43 [00000001000000000A--],010,[f702000d1010000008020000000000],"FAULT 10 LIVING ROOM WINDOW "
04:50:43|Zone LIVING ROOM WINDOW (10) has been faulted.
04:50:43|Zone MASTER BATHROOM WINDOW (12) has been restored.
04:50:47 [00000001000000000A--],011,[f702000d1011000008020000000000],"FAULT 11 LIVING ROOM WINDOW "
04:50:47|Zone LIVING ROOM WINDOW (11) has been faulted.
04:50:47|Zone MASTER BEDROOM WINDOW (13) has been restored.
04:50:50 [00000001000000000A--],012,[f702000d1012000008020000000000],"FAULT 12 MASTER BATHROOM WINDOW "
04:50:51|Zone MASTER BATHROOM WINDOW (12) has been faulted.
04:50:51|Zone OFFICE WINDOW (14) has been restored.
04:50:54 [00000001000000000A--],013,[f702000d1013000008020000000000],"FAULT 13 MASTER BEDROOM WINDOW "
04:50:55|Zone 1ST BEDROOM WINDOW (15) has been restored.
04:50:55|Zone MASTER BEDROOM WINDOW (13) has been faulted.
04:50:58 [00000001000000000A--],014,[f702000d1014000008020000000000],"FAULT 14 OFFICE WINDOW "
04:50:59|Zone FAMILY SLIDING DOOR (16) has been restored.
04:50:59|Zone OFFICE WINDOW (14) has been faulted.
04:51:01 !RFX:zone24,80
04:51:01|zone24:0:0:1:0:0:0
04:51:02 [00000001000000000A--],024,[f702000d10240000080200000010f0],"FAULT 24 FAMILY MOTION DETECTOR "
04:51:02|Zone FAMILY MOTION DETECTOR (24) has been faulted.
04:51:02|Zone KITCHEN DESK WINDOW (17) has been restored.
04:51:05 !RFX:zone24,00
04:51:05 [00000001000000000A--],031,[f702000d1031000008020000000000],"FAULT 31 KITCHEN "
04:51:05|Zone SIDE BATHROOM WINDOW (19) has been restored.
04:51:05|zone24:0:0:0:0:0:0
04:51:09 [00000001000000000A--],010,[f702000d1010000008020000000000],"FAULT 10 LIVING ROOM WINDOW "
04:51:13 [00000001000000000A--],011,[f702000d1011000008020000000000],"FAULT 11 LIVING ROOM WINDOW "
04:51:17 [00000001000000000A--],012,[f702000d1012000008020000000000],"FAULT 12 MASTER BATHROOM WINDOW "
04:51:20 [00000001000000000A--],013,[f702000d1013000008020000000000],"FAULT 13 MASTER BEDROOM WINDOW "
04:51:24 [00000001000000000A--],014,[f702000d1014000008020000000000],"FAULT 14 OFFICE WINDOW "
04:51:28 [00000001000000000A--],015,[f702000d1015000008020000000000],"FAULT 15 1ST BEDROOM WINDOW "
04:51:29|Zone 1ST BEDROOM WINDOW (15) has been faulted.
04:51:32 [00000001000000000A--],016,[f702000d1016000008020000000000],"FAULT 16 FAMILY SLIDING DOOR "
04:51:33|Zone FAMILY MOTION DETECTOR (24) has been restored.
04:51:33|Zone FAMILY SLIDING DOOR (16) has been faulted.
04:51:35 !RFX:zone12,a4
04:51:35|zone12:0:1:1:1:0:0
04:51:36 [00000001000000000A--],017,[f702000d1017000008020000000000],"FAULT 17 KITCHENDESK WINDOW "
04:51:36|Zone KITCHEN DESK WINDOW (17) has been faulted.
04:51:37|Zone KITCHEN (31) has been restored.
04:51:40 [00000001000000000A--],019,[f702000d1019000008020000000000],"FAULT 19 SIDE BATHROOM WINDOW "
04:51:40|Zone SIDE BATHROOM WINDOW (19) has been faulted.
04:51:41|Zone LIVING ROOM WINDOW (10) has been restored.
04:51:44 [00000001000000000A--],031,[f702000d1031000008020000000000],"FAULT 31 KITCHEN "
04:51:44|Zone KITCHEN (31) has been faulted.
04:51:45|Zone LIVING ROOM WINDOW (11) has been restored.
04:51:48 [00000001000000000A--],010,[f702000d1010000008020000000000],"FAULT 10 LIVING ROOM WINDOW "
04:51:48|Zone LIVING ROOM WINDOW (10) has been faulted.
04:51:48|Zone MASTER BATHROOM WINDOW (12) has been restored.
04:51:52 [00000001000000000A--],011,[f702000d1011000008020000000000],"FAULT 11 LIVING ROOM WINDOW "
04:51:52|Zone LIVING ROOM WINDOW (11) has been faulted.
04:51:52|Zone MASTER BEDROOM WINDOW (13) has been restored.
04:51:56 [00000001000000000A--],012,[f702000d1012000008020000000000],"FAULT 12 MASTER BATHROOM WINDOW "
04:51:56|Zone MASTER BATHROOM WINDOW (12) has been faulted.
04:51:56|Zone OFFICE WINDOW (14) has been restored.
04:52:00 [00000001000000000A--],013,[f702000d1013000008020000000000],"FAULT 13 MASTER BEDROOM WINDOW "
04:52:00|Zone 1ST BEDROOM WINDOW (15) has been restored.
04:52:00|Zone MASTER BEDROOM WINDOW (13) has been faulted.
04:52:04 [00000001000000000A--],014,[f702000d1014000008020000000000],"FAULT 14 OFFICE WINDOW "
04:52:04|Zone FAMILY SLIDING DOOR (16) has been restored.
04:52:04|Zone OFFICE WINDOW (14) has been faulted.
04:52:08 [00000001000000000A--],015,[f702000d1015000008020000000000],"FAULT 15 1ST BEDROOM WINDOW "
04:52:08|Zone 1ST BEDROOM WINDOW (15) has been faulted.
04:52:08|Zone KITCHEN DESK WINDOW (17) has been restored.
04:52:12 [00000001000000000A--],016,[f702000d1016000008020000000000],"FAULT 16 FAMILY SLIDING DOOR "
04:52:12|Zone FAMILY SLIDING DOOR (16) has been faulted.
04:52:12|Zone SIDE BATHROOM WINDOW (19) has been restored.
04:52:16 [00000001000000000A--],017,[f702000d1017000008020000000000],"FAULT 17 KITCHENDESK WINDOW "
04:52:16|Zone KITCHEN (31) has been restored.
04:52:16|Zone KITCHEN DESK WINDOW (17) has been faulted.
04:52:17 !RFX:zone13,a4
04:52:17|zone13:0:1:1:1:0:0
04:52:20 [00000001000000000A--],019,[f702000d1019000008020000000000],"FAULT 19 SIDE BATHROOM WINDOW "
04:52:20|Zone LIVING ROOM WINDOW (10) has been restored.
04:52:20|Zone SIDE BATHROOM WINDOW (19) has been faulted.
04:52:24 [00000001000000000A--],031,[f702000d1031000008020000000000],"FAULT 31 KITCHEN "
04:52:24|Zone KITCHEN (31) has been faulted.
04:52:24|Zone LIVING ROOM WINDOW (11) has been restored.
04:52:28 [00000001000000000A--],010,[f702000d1010000008020000000000],"FAULT 10 LIVING ROOM WINDOW "
04:52:28|Zone LIVING ROOM WINDOW (10) has been faulted.
04:52:28|Zone MASTER BATHROOM WINDOW (12) has been restored.
I looked at the code in alarmdecoder/zonetracking.py and I wonder if the problem is as simple as not allowing a longer time between sightings of a zone if many are open - it looks like the panel sends out one "Fault" message every four seconds or so, so with 7 or 8 faulted zones, the timer would expire before the zone came back around.