pysiaalarm icon indicating copy to clipboard operation
pysiaalarm copied to clipboard

Case sensitiveness

Open Phyks opened this issue 2 years ago • 1 comments

Hi,

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

  • Account ID is case sensitive (while I was expecting hexadecimal strings would not be), I was getting:
WARNING:pysiaalarm.base_server:There is no account for a encrypted line, line was:
  • Same seems to be the case for the encryption key, I was getting:
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,

Phyks avatar Jan 03 '22 11:01 Phyks

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!

eavanvalkenburg avatar Jan 07 '22 08:01 eavanvalkenburg