project 04 · alarm
I reverse-engineered my alarm panel
The open-source integration for my alarm panel spoke the protocol fine, but my model answered with a different frame layout. Everything showed as broken.
the bug
- Captured real status frames and compared byte by byte with what the parser expected.
- The parser read the model byte at the wrong offset for my model, and asked for a status command my panel rejects.
- Later, a second bug: with a zone bypassed, the bypass bitmask landed exactly where the parser looked for the model, so the system got stuck "arming". Found it, patched it, added a regression test.
- Fix sent upstream as a pull request.
then I cut the cloud out
The vendor cloud relay dropped 10 to 15 times a day. The panel itself was fine on the LAN. I patched the add-on to talk to the panel directly over the local network, with cloud only as a fallback. Drops gone.
a number I like
The motion sensor pulses for about 1 second. Polling every 5 seconds missed ~80% of the pulses, and the AC turned off with people in the room. Back to 1-second polling. Measure before you "optimize".