Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not a SIA or ADM Spec event, compatibility #52

Open
ChronoRadion opened this issue Aug 31, 2023 · 5 comments
Open

Not a SIA or ADM Spec event, compatibility #52

ChronoRadion opened this issue Aug 31, 2023 · 5 comments

Comments

@ChronoRadion
Copy link

Hi guys, I've been trying to set up a SIA monitor on HA, but have problems.
The alarm is a DSC board with an ethernet module:
https://www.trikdis.com/alarm-communicators/ethernet-alarm-communicators/ethernet-communicator-e16/

Now, it says it supports TRK, TL150, DC-09_2007 and DC-09_2012 protocols.
When I set it to DC-09_2012 without encryption, the log is as follows:

Can somebody point me in any direction?

2023-08-30 22:05:31.097 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: K0029"NULL"0000R1L1#9413[]_23:05:28,08-30-2023. Line: K0029"NULL"0000R1L1#9413[]_23:05:28,08-30-2023
2023-08-30 22:05:31.203 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: 003D"ADM-CID"0001R1L1#9413[#9413|1700 99 999]_23:05:28,08-30-2023. Line: 003D"ADM-CID"0001R1L1#9413[#9413|1700 99 999]_23:05:28,08-30-2023
2023-08-30 22:05:33.007 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: 0n003D"ADM-CID"0002R1L1#9413[#9413|1602 99 999]_23:05:30,08-30-2023. Line: 0n003D"ADM-CID"0002R1L1#9413[#9413|1602 99 999]_23:05:30,08-30-2023
2023-08-30 22:05:33.759 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: N"003D"ADM-CID"0003R1L1#9413[#9413|1411 99 999]_23:05:30,08-30-2023. Line: N"003D"ADM-CID"0003R1L1#9413[#9413|1411 99 999]_23:05:30,08-30-2023
2023-08-30 22:06:03.898 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: @0029"NULL"0000R1L1#9413[]_23:05:58,08-30-2023. Line: @0029"NULL"0000R1L1#9413[]_23:05:58,08-30-2023
2023-08-30 22:06:10.863 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: �003D"ADM-CID"0004R1L1#9413[#9413|1401 01 040]_23:06:05,08-30-2023. Line: �003D"ADM-CID"0004R1L1#9413[#9413|1401 01 040]_23:06:05,08-30-2023
2023-08-30 22:06:41.001 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: 0029"NULL"0000R1L1#9413[]_23:06:36,08-30-2023. Line: 0029"NULL"0000R1L1#9413[]_23:06:36,08-30-2023
2023-08-30 22:07:11.203 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: E'0029"NULL"0000R1L1#9413[]_23:07:06,08-30-2023. Line: E'0029"NULL"0000R1L1#9413[]_23:07:06,08-30-2023
2023-08-30 22:07:41.305 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: "0029"NULL"0000R1L1#9413[]_23:07:36,08-30-2023. Line: "0029"NULL"0000R1L1#9413[]_23:07:36,08-30-2023
2023-08-30 22:08:11.507 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: Ah0029"NULL"0000R1L1#9413[]_23:08:06,08-30-2023. Line: Ah0029"NULL"0000R1L1#9413[]_23:08:06,08-30-2023
2023-08-30 22:08:17.327 WARNING (MainThread) [pysiaalarm.base_server] Last line could not be parsed succesfully. Error message: No matches found, event was not a SIA or ADM Spec event, line was: "003D"ADM-CID"0005R1L1#9413[#9413|1412 99 999]_23:08:12,08-30-2023. Line: "003D"ADM-CID"0005R1L1#9413[#9413|1412 99 999]_23:08:12,08-30-2023
2023-08-30 22:08:36.795 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:08:32+00:00
2023-08-30 22:08:36.895 WARNING (MainThread) [pysiaalarm.base_server] Code not found, replying with DUH to account: 9413
2023-08-30 22:08:37.700 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:08:33+00:00
2023-08-30 22:09:07.888 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:09:05+00:00
2023-08-30 22:09:37.991 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:09:35+00:00
2023-08-30 22:09:48.667 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:09:45+00:00
2023-08-30 22:10:18.793 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:10:16+00:00
2023-08-30 22:10:48.895 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:10:46+00:00
2023-08-30 22:11:18.999 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:11:16+00:00
2023-08-30 22:11:49.206 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:11:46+00:00
2023-08-30 22:12:19.401 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-08-30 23:12:16+00:00
2023-08-30 22:12:31.458 WARNING (MainThread) [pysiaalarm.base_server] Code not found, replying with DUH to account: 9413
@eavanvalkenburg
Copy link
Owner

Hi @ChronoRadion I do not have a ADM device so I could never test these, if you are able add the lines above to the test suite then we can start troubleshooting and making adjustments.

@ChronoRadion
Copy link
Author

Since I have access to device logs on ethernet communicator, we could link HA logs with them and see which line does what.
Could you point me on how to add those lines to the test suite?

@eavanvalkenburg
Copy link
Owner

In this class all sorts of cases are present:

class EventParsing:

@ChronoRadion
Copy link
Author

I'm a bit of a novice in python, so before playing with the test suite, here's some data:
It seems to me that I have a timestamp problem but have no idea how to mitigate that (I think it is a time zone issue)

TRIKDIS DC-09_2012, without encryption:
By https://www.securityindustry.org/wp-content/uploads/2017/10/dc09_r2021_20201027.pdf
the line should look like:

<0LLL><"id"><#acct>[|...data...][x…data…]

TEST DATA:

ACCOUNT:  9413
Events: (E) CID - Partition number - Zone number
Start: 700 - 99 - 999
Test: 602 - 99 - 999
Power: 302 - 99 - 999
Communication: 350 - 99 - 999
Remote_Started: 411 - 99 - 999
Remote_Finished: 412 - 99 - 999

RESTORE: (R) CID - Partition number - Zone number
Power: 302 - 99 - 999
Communication: 350 - 99 - 999

Zones: 1-15
Areas: 1

Current logs with no actions:

2023-09-07 15:56:21.104 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: EEA50029"NULL"0000R1L1#9413[]_16:56:18,09-07-2023
2023-09-07 15:56:21.106 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '16:56:18,09-07-2023'}
2023-09-07 15:56:21.132 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 16:56:18+00:00
2023-09-07 15:56:51.306 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: EBA90029"NULL"0000R1L1#9413[]_16:56:48,09-07-2023
2023-09-07 15:56:51.307 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '16:56:48,09-07-2023'}
2023-09-07 15:56:51.322 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 16:56:48+00:00
2023-09-07 15:57:21.508 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: EE640029"NULL"0000R1L1#9413[]_16:57:18,09-07-2023
2023-09-07 15:57:21.509 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '16:57:18,09-07-2023'}
2023-09-07 15:57:21.521 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 16:57:18+00:00
2023-09-07 15:57:51.710 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: EB680029"NULL"0000R1L1#9413[]_16:57:48,09-07-2023
2023-09-07 15:57:51.712 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '16:57:48,09-07-2023'}
2023-09-07 15:57:51.725 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 16:57:48+00:00
2023-09-07 15:58:21.914 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 29D60029"NULL"0000R1L1#9413[]_16:58:19,09-07-2023
2023-09-07 15:58:21.915 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '16:58:19,09-07-2023'}
2023-09-07 15:58:21.926 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 16:58:19+00:00
2023-09-07 15:58:52.116 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 2CDA0029"NULL"0000R1L1#9413[]_16:58:49,09-07-2023
2023-09-07 15:58:52.117 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '16:58:49,09-07-2023'}
2023-09-07 15:58:52.127 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 16:58:49+00:00
2023-09-07 15:59:22.218 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 29170029"NULL"0000R1L1#9413[]_16:59:19,09-07-2023
2023-09-07 15:59:22.219 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '16:59:19,09-07-2023'}
2023-09-07 15:59:22.232 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 16:59:19+00:00
2023-09-07 15:59:52.420 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 2C1B0029"NULL"0000R1L1#9413[]_16:59:49,09-07-2023
2023-09-07 15:59:52.421 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '16:59:49,09-07-2023'}
2023-09-07 15:59:52.431 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 16:59:49+00:00
2023-09-07 16:00:22.622 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 804C0029"NULL"0000R1L1#9413[]_17:00:19,09-07-2023
2023-09-07 16:00:22.623 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:00:19,09-07-2023'}
2023-09-07 16:00:22.636 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:00:19+00:00
2023-09-07 16:00:52.825 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 85400029"NULL"0000R1L1#9413[]_17:00:49,09-07-2023
2023-09-07 16:00:52.826 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:00:49,09-07-2023'}
2023-09-07 16:00:52.838 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:00:49+00:00
2023-09-07 16:01:23.028 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 5F940029"NULL"0000R1L1#9413[]_17:01:20,09-07-2023
2023-09-07 16:01:23.029 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:01:20,09-07-2023'}
2023-09-07 16:01:23.039 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:01:20+00:00
2023-09-07 16:01:53.230 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 189F0029"NULL"0000R1L1#9413[]_17:01:50,09-07-2023
2023-09-07 16:01:53.232 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:01:50,09-07-2023'}
2023-09-07 16:01:53.242 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:01:50+00:00
2023-09-07 16:02:23.433 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 5ED70029"NULL"0000R1L1#9413[]_17:02:20,09-07-2023
2023-09-07 16:02:23.434 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:02:20,09-07-2023'}
2023-09-07 16:02:23.444 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:02:20+00:00
2023-09-07 16:02:53.537 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 19DC0029"NULL"0000R1L1#9413[]_17:02:50,09-07-2023
2023-09-07 16:02:53.538 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:02:50,09-07-2023'}
2023-09-07 16:02:53.549 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:02:50+00:00
2023-09-07 16:03:23.638 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 5E160029"NULL"0000R1L1#9413[]_17:03:20,09-07-2023
2023-09-07 16:03:23.639 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:03:20,09-07-2023'}
2023-09-07 16:03:23.650 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:03:20+00:00
2023-09-07 16:03:53.839 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 191D0029"NULL"0000R1L1#9413[]_17:03:50,09-07-2023
2023-09-07 16:03:53.840 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:03:50,09-07-2023'}
2023-09-07 16:03:53.853 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:03:50+00:00
2023-09-07 16:04:24.041 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 9FAC0029"NULL"0000R1L1#9413[]_17:04:21,09-07-2023
2023-09-07 16:04:24.042 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:04:21,09-07-2023'}
2023-09-07 16:04:24.053 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:04:21+00:00
2023-09-07 16:04:54.143 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: D8A70029"NULL"0000R1L1#9413[]_17:04:51,09-07-2023
2023-09-07 16:04:54.144 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:04:51,09-07-2023'}
2023-09-07 16:04:54.157 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:04:51+00:00
2023-09-07 16:05:24.345 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 9F6D0029"NULL"0000R1L1#9413[]_17:05:21,09-07-2023
2023-09-07 16:05:24.347 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:05:21,09-07-2023'}
2023-09-07 16:05:24.357 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:05:21+00:00
2023-09-07 16:05:54.448 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: D8660029"NULL"0000R1L1#9413[]_17:05:51,09-07-2023
2023-09-07 16:05:54.449 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:05:51,09-07-2023'}
2023-09-07 16:05:54.465 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:05:51+00:00
2023-09-07 16:06:24.550 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 9E2E0029"NULL"0000R1L1#9413[]_17:06:21,09-07-2023
2023-09-07 16:06:24.551 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:06:21,09-07-2023'}
2023-09-07 16:06:24.562 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:06:21+00:00
2023-09-07 16:06:54.753 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: D9250029"NULL"0000R1L1#9413[]_17:06:51,09-07-2023
2023-09-07 16:06:54.754 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:06:51,09-07-2023'}
2023-09-07 16:06:54.768 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:06:51+00:00
2023-09-07 16:07:24.956 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 9AEB0029"NULL"0000R1L1#9413[]_17:07:22,09-07-2023
2023-09-07 16:07:24.957 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:07:22,09-07-2023'}
2023-09-07 16:07:24.967 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:07:22+00:00
2023-09-07 16:07:55.158 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: DDE00029"NULL"0000R1L1#9413[]_17:07:52,09-07-2023
2023-09-07 16:07:55.159 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:07:52,09-07-2023'}
2023-09-07 16:07:55.174 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:07:52+00:00
2023-09-07 16:08:25.361 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 9EA40029"NULL"0000R1L1#9413[]_17:08:22,09-07-2023
2023-09-07 16:08:25.363 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:08:22,09-07-2023'}
2023-09-07 16:08:25.375 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:08:22+00:00
2023-09-07 16:08:55.563 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: D9AF0029"NULL"0000R1L1#9413[]_17:08:52,09-07-2023
2023-09-07 16:08:55.565 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:08:52,09-07-2023'}
2023-09-07 16:08:55.575 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:08:52+00:00
2023-09-07 16:09:25.766 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 9E650029"NULL"0000R1L1#9413[]_17:09:22,09-07-2023
2023-09-07 16:09:25.767 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:09:22,09-07-2023'}
2023-09-07 16:09:25.779 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:09:22+00:00
2023-09-07 16:09:55.969 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: D96E0029"NULL"0000R1L1#9413[]_17:09:52,09-07-2023
2023-09-07 16:09:55.970 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:09:52,09-07-2023'}
2023-09-07 16:09:55.985 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:09:52+00:00
2023-09-07 16:10:26.072 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: CB900029"NULL"0000R1L1#9413[]_17:10:23,09-07-2023
2023-09-07 16:10:26.073 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:10:23,09-07-2023'}
2023-09-07 16:10:26.086 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:10:23+00:00
2023-09-07 16:10:56.275 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 8C9B0029"NULL"0000R1L1#9413[]_17:10:53,09-07-2023
2023-09-07 16:10:56.276 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:10:53,09-07-2023'}
2023-09-07 16:10:56.289 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:10:53+00:00
2023-09-07 16:11:26.478 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: CB510029"NULL"0000R1L1#9413[]_17:11:23,09-07-2023
2023-09-07 16:11:26.479 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:11:23,09-07-2023'}
2023-09-07 16:11:26.492 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:11:23+00:00
2023-09-07 16:11:56.679 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 8C5A0029"NULL"0000R1L1#9413[]_17:11:53,09-07-2023
2023-09-07 16:11:56.680 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:11:53,09-07-2023'}
2023-09-07 16:11:56.692 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:11:53+00:00
2023-09-07 16:12:26.880 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: CA120029"NULL"0000R1L1#9413[]_17:12:23,09-07-2023
2023-09-07 16:12:26.882 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:12:23,09-07-2023'}
2023-09-07 16:12:26.892 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:12:23+00:00
2023-09-07 16:12:57.082 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 46EC0029"NULL"0000R1L1#9413[]_17:12:54,09-07-2023
2023-09-07 16:12:57.083 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:12:54,09-07-2023'}
2023-09-07 16:12:57.096 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:12:54+00:00
2023-09-07 16:13:27.283 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 01260029"NULL"0000R1L1#9413[]_17:13:24,09-07-2023
2023-09-07 16:13:27.285 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:13:24,09-07-2023'}
2023-09-07 16:13:27.297 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:13:24+00:00
2023-09-07 16:13:57.485 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 462D0029"NULL"0000R1L1#9413[]_17:13:54,09-07-2023
2023-09-07 16:13:57.486 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:13:54,09-07-2023'}
2023-09-07 16:13:57.499 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:13:54+00:00
2023-09-07 16:14:27.687 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 03610029"NULL"0000R1L1#9413[]_17:14:24,09-07-2023
2023-09-07 16:14:27.688 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:14:24,09-07-2023'}
2023-09-07 16:14:27.701 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:14:24+00:00
2023-09-07 16:14:57.789 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 446A0029"NULL"0000R1L1#9413[]_17:14:54,09-07-2023
2023-09-07 16:14:57.790 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:14:54,09-07-2023'}
2023-09-07 16:14:57.805 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:14:54+00:00
2023-09-07 16:15:27.891 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 03A00029"NULL"0000R1L1#9413[]_17:15:24,09-07-2023
2023-09-07 16:15:27.892 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:15:24,09-07-2023'}
2023-09-07 16:15:27.914 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:15:24+00:00
2023-09-07 16:15:58.093 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 87560029"NULL"0000R1L1#9413[]_17:15:55,09-07-2023
2023-09-07 16:15:58.094 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': None, 'ti': None, 'id': None, 'ri': None, 'code': None, 'message': None, 'xdata': None, 'timestamp': '17:15:55,09-07-2023'}
2023-09-07 16:15:58.110 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 17:15:55+00:00

Log when arming alarm away and disarming:

ARMING:
2023-09-07 17:00:44.028 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 9FBB003D"ADM-CID"0005R1L1#9413[#9413|3401 01 040]_18:00:40,09-07-2023
2023-09-07 17:00:44.030 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '9413', 'event_qualifier': '3', 'event_type': '401', 'partition': '01', 'ri': '040', 'xdata': None, 'timestamp': '18:00:40,09-07-2023'}
2023-09-07 17:00:44.044 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 18:00:40+00:00

DISARMING:
2023-09-07 17:01:08.705 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 780E003D"ADM-CID"0006R1L1#9413[#9413|1401 01 040]_18:01:05,09-07-2023
2023-09-07 17:01:08.707 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '9413', 'event_qualifier': '1', 'event_type': '401', 'partition': '01', 'ri': '040', 'xdata': None, 'timestamp': '18:01:05,09-07-2023'}
2023-09-07 17:01:08.723 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2023-09-07 18:01:05+00:00

@ChronoRadion
Copy link
Author

Ok, I've made a small database of events but I'm having problems with running the test suite.

I've added the lines to the test suite, but when I try running tests\run_aio.py I get:

  File "tests\run_aio.py", line 9, in <module>
    from pysiaalarm.aio import SIAAccount, SIAClient, SIAEvent
ModuleNotFoundError: No module named 'pysiaalarm'

Can you please tell me how to run the test suite? Do I have to run it on HomeAssistant as a custom component? Or can I run it on a linux PC with python?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants