Code Monkey home page Code Monkey logo

Comments (13)

eavanvalkenburg avatar eavanvalkenburg commented on August 30, 2024

Hi @Alexwijn I don't know what is going on there, what you could try (if you know a bit of python) is to run the underlying package (https://github.com/eavanvalkenburg/pysiaalarm) code and see what kind of messages are being sent by the alarm, before all the parsing happens, the protocol used is quite specific, so if they implemented it slightly differently then that might cause issues!

from sia.

Alexwijn avatar Alexwijn commented on August 30, 2024

I also noticed that my encryption was turned on. I turned it off and I'm receiving this:
bytearray(b'D#0192\x92')

And the exception:
UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position 6: ordinal not in range(128)

I don't know anything about the SIA protocol, but I imagine the received line should be a lot longer than that.

from sia.

eavanvalkenburg avatar eavanvalkenburg commented on August 30, 2024

@Alexwijn give the latest a try, I changed something in the underlying package that might fix this!

from sia.

Alexwijn avatar Alexwijn commented on August 30, 2024

Thanks for the update. Got the following error now:
Last line could not be parsed as a SIAEvent, line was: D#0192

from sia.

eavanvalkenburg avatar eavanvalkenburg commented on August 30, 2024

so it seems there is something else going on with your alarm systems, normally a line is a lot longer, do you have some documentation about the alarm system?

from sia.

Alexwijn avatar Alexwijn commented on August 30, 2024

No, this alarm system came pre-installed when I moved into this house. Did you find out anything out yet?

from sia.

Alexwijn avatar Alexwijn commented on August 30, 2024

I just noticed but the numbers 0192 are the first numbers of the account id. My account id is six digits long.

from sia.

Alexwijn avatar Alexwijn commented on August 30, 2024

Also note that the docs give me an example of how the account Id could look like, eg. AAA. But I can only enter numbers not letters.

from sia.

eavanvalkenburg avatar eavanvalkenburg commented on August 30, 2024

@Alexwijn do you mean you can only enter numbers in your alarm? that should work, but you might not to translate that number to a base16 number (which includes A-E), like here: https://www.rapidtables.com/convert/number/decimal-to-hex.html

from sia.

compunix-be avatar compunix-be commented on August 30, 2024

I'm trying to get this working with Honeywell Flex100 centrale.
2022-04-25 15:17:47 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: F#123456
2022-04-25 15:17:47 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: %s. Line: F#123456

where 123456 is the account number defined on the Galaxy.
The company that installed the system confirmed that SIA protocol was selected for communication.
Anything I can do at my end to debug this ?

from sia.

compunix-be avatar compunix-be commented on August 30, 2024

@eavanvalkenburg, I've been able to test further and gather some network traces of communications between my Flex 100 and another app.
One communication exchange looks like follow
#123456
Nti10:20/id001/CG
A DEELB.ING
0

Each of the above lines were send separately, and required acknowledgement.

First line is the account number, second line matches a SIA event block, third line is some additional ASCII text, last line is 0 or end of communication.
This messages correspond with the sia_content_regex, but does not get matched.
At least for the account line, because the initial 'F' is included in the pattern matching.
For your information, I've used https://github.com/dklemm/FlexSIA2MQTT to generate the network traces.
Any idea what is going wrong here ?

PS: Or might it be that 4 lines should be concatenated and then matched against the sia_content_regex ?

from sia.

eavanvalkenburg avatar eavanvalkenburg commented on August 30, 2024

@compunix-be thank you so much for this effort! It indeed looks like it is spreading things out over multiple messages so this gives me a starting point to see if I can build something for this!

from sia.

compunix-be avatar compunix-be commented on August 30, 2024

@eavanvalkenburg did you had time to research this ? If you want me to debug something, let me know.

from sia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.