eavanvalkenburg / pysiaalarm

A python package to connect to a SIA DC-09 based alarm system.
MIT License
39 stars 29 forks source link

Case sensitiveness #26

Open Phyks opened 2 years ago

Phyks commented 2 years ago

Hi,

It took me a while to get a proper connection between my Ajax alarm system and pysiaalarm:

WARNING:pysiaalarm.base_server:There is no account for a encrypted line, line was:
WARNING:pysiaalarm.base_server:Last line could not be parsed succesfully. Error message: Parse content: no matches found in %s, using matcher: %s. Line:

In the end, I got it working by having account id all uppercase (same as in the Ajax Hub application) and encryption key all lowercase.

Thanks for the useful lib! Best,

eavanvalkenburg commented 2 years ago

thanks for reporting, I'll have a look, I would expect there to be slightly different behaviour since the key is cast to bytes, but I will check!