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

SIA IP with Eldes #3

Open
norcis opened this issue Jun 28, 2019 · 9 comments
Open

SIA IP with Eldes #3

norcis opened this issue Jun 28, 2019 · 9 comments

Comments

@norcis
Copy link

norcis commented Jun 28, 2019

I try connecting from Eldes alarm (https://eldesalarms.com/) which supports SIA IP (ansi/sia dc-09-2007 or ansi/sia dc-09-2013 standarts). I disabled encryption and connection (TCP) seems to work, but HA reports errors.
image
Account ID match HA sia settings, other options left empty:
image
Btw it allows to configure Contact ID codes:
image
Your help is appreciated.

@Cheaterdev
Copy link
Owner

That's pretty much of options!
Try to use account prefix - this is an Account ID. I'll split SIA message by that ID. Seems that ID is missing here, so it says "subsection not found".

If nothing changes, enable debug logs for this integration in configuration file:

logger:
  default: error
  logs:
     custom_components.sia: debug

And then find any line in logs:
[custom_components.sia] Income raw string: `

Send this line here. I'll try to parse it

@norcis
Copy link
Author

norcis commented Jun 28, 2019

This is what I got:
2019-06-28 03:48:57 DEBUG (Thread-2) [custom_components.sia] Income raw string: F19A002B"ADM-CID"0056L9999#9999[#9999|1900 00 001] 2019-06-28 03:48:57 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:48:57 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:48:57 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:49:05 DEBUG (Thread-2) [custom_components.sia] Income raw string: 367B002B"ADM-CID"0058L9999#9999[#9999|1900 00 001] 2019-06-28 03:49:05 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:49:05 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:49:05 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:49:09 DEBUG (Thread-2) [custom_components.sia] Income raw string: F6EA002B"ADM-CID"0059L9999#9999[#9999|1900 00 001] 2019-06-28 03:49:09 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:49:09 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:49:09 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:49:16 DEBUG (Thread-2) [custom_components.sia] Income raw string: 58DE002B"ADM-CID"0061L9999#9999[#9999|1602 00 001] 2019-06-28 03:49:16 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:49:16 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:49:16 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:49:22 DEBUG (Thread-2) [custom_components.sia] Income raw string: 99FF002B"ADM-CID"0063L9999#9999[#9999|1602 00 001] 2019-06-28 03:49:22 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:49:22 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:49:22 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:49:25 DEBUG (Thread-2) [custom_components.sia] Income raw string: 5A0E002B"ADM-CID"0064L9999#9999[#9999|1602 00 001] 2019-06-28 03:49:25 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:49:25 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:49:25 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:49:42 WARNING (MainThread) [homeassistant.helpers.entity] Update of alarm_control_panel.arlo is taking over 10 seconds 2019-06-28 03:51:21 DEBUG (Thread-2) [custom_components.sia] Income raw string: 3CE90017"NULL"0000L9999#9999[] 2019-06-28 03:51:21 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:51:21 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:51:21 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:51:24 DEBUG (Thread-2) [custom_components.sia] Income raw string: 3CE90017"NULL"0000L9999#9999[] 2019-06-28 03:51:24 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:51:24 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:51:24 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:51:27 DEBUG (Thread-2) [custom_components.sia] Income raw string: 3CE90017"NULL"0000L9999#9999[] 2019-06-28 03:51:27 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:51:27 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:51:27 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:51:46 WARNING (MainThread) [homeassistant.helpers.entity] Update of alarm_control_panel.arlo is taking over 10 seconds 2019-06-28 03:52:22 DEBUG (Thread-2) [custom_components.sia] Income raw string: 3CE90017"NULL"0000L9999#9999[] 2019-06-28 03:52:22 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:52:22 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:52:22 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:52:25 DEBUG (Thread-2) [custom_components.sia] Income raw string: 3CE90017"NULL"0000L9999#9999[] 2019-06-28 03:52:25 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:52:25 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:52:25 ERROR (Thread-2) [custom_components.sia] subsection not found last line: 2019-06-28 03:52:28 DEBUG (Thread-2) [custom_components.sia] Income raw string: 3CE90017"NULL"0000L9999#9999[] 2019-06-28 03:52:28 ERROR (Thread-2) [custom_components.sia] CRC mismatch 2019-06-28 03:52:28 DEBUG (Thread-2) [custom_components.sia] Income raw string: 2019-06-28 03:52:28 ERROR (Thread-2) [custom_components.sia] subsection not found last line:

@norcis
Copy link
Author

norcis commented Jun 28, 2019

Hi. Is this log enough or you need more? I tried reading protocol specifications, but it's too complicated for me...
Btw have you tried implementing arming/disarming by sending response message:
image

@Cheaterdev
Copy link
Owner

Oh, there is 2 mesage formats in SIA.

From specification of some SIA software :

- SIA-DCS: format SIA DC-04.
- ADM-CID: format Contact ID DC-05.

My implementation work only with "SIA-DCS".
You have "ADM-CID" - this is seen in your messages.
Is there an option to enable "SIA-DCS" ?

@norcis
Copy link
Author

norcis commented Jul 2, 2019

Seems it uses Contact ID protocol. Maybe this source could help decoding both protocols?
https://github.com/scudre/alarm-central-station-receiver

@norcis
Copy link
Author

norcis commented Jul 3, 2019

I got replay from manufacturer. They support ANSI/SIA DC-09-2007 and ANSI/SIA DC-09-2013. E.g.

3AAAA18QEEEPPZZZC
AAAA - Account ID
Q - Event Qualifier: 1 - Alarm; 3 - Restore
EEE - Event Code
PP - Partition
ZZZ - Zone or User Number
C - Control Checksum

@aferrato
Copy link

Hi @norcis, did you find a way to make it work?
I’ve an Eldes alarm too and I want to control it with Home Assistant.

@norcis
Copy link
Author

norcis commented Dec 7, 2020

Hi @norcis, did you find a way to make it work?
I’ve an Eldes alarm too and I want to control it with Home Assistant.

No. Please contact Eldes support. More customers requests to integrate to Home Assistant, more likely they do it.

@mach0gr
Copy link

mach0gr commented Aug 12, 2021

Hi Guys, any news ? I'm trying also to integrate with ELDES.
I can help too with logs if any devs interested. Would love to get states from this alarm system

My logs line looks like this with latest version of hassio docker which I'm running core-2021.7.4 if makes any sense

2021-08-12 19:11:31 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: AA1A, Calculated CRC: 1B95. Line was "ADM-CID"0227R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:11:43 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 155A, Calculated CRC: 1A3E. Line was "ADM-CID"0228R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:11:54 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: C89B, Calculated CRC: DA12. Line was "ADM-CID"0229R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:12:58 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 8D07, Calculated CRC: 06E1. Line was "ADM-CID"0233R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:13:10 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 1C46, Calculated CRC: C623. Line was "ADM-CID"0234R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:13:21 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: C187, Calculated CRC: 060F. Line was "ADM-CID"0235R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:13:44 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: E7C7, Calculated CRC: 0678. Line was "ADM-CID"0236R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:13:56 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 3A06, Calculated CRC: C654. Line was "ADM-CID"0237R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:14:07 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 8546, Calculated CRC: C7FF. Line was "ADM-CID"0238R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:14:26 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 5887, Calculated CRC: 07D3. Line was "ADM-CID"0239R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:14:38 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 9B16, Calculated CRC: 97D7. Line was "ADM-CID"0240R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:14:50 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 46D7, Calculated CRC: 57FB. Line was "ADM-CID"0241R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:15:08 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 6097, Calculated CRC: 578C. Line was "ADM-CID"0242R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:15:20 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: BD56, Calculated CRC: 97A0. Line was "ADM-CID"0243R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:15:31 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 2C17, Calculated CRC: 5762. Line was "ADM-CID"0244R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:15:50 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: F1D6, Calculated CRC: 974E. Line was "ADM-CID"0245R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:16:01 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: D796, Calculated CRC: 9739. Line was "ADM-CID"0246R4F39L4F39#4F39[#4F39|3401 01 057] 2021-08-12 19:16:13 WARNING (MainThread) [pysiaalarm.base_server] CRC mismatch, ignoring message. Sent CRC: 0A57, Calculated CRC: 5715. Line was "ADM-CID"0247R4F39L4F39#4F39[#4F39|3401 01 057]

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

4 participants