How jasoncarter80/concord232 works
Project type and purpose
• This is an open-source Python library plus client/server tool for automating and remotely controlling a GE Concord 4 alarm panel over its RS232 Automation Module.
• It provides:
• A Python package (concord232/…) that knows all alarm codes, commands, helpers, tokens and a core Concord class to communicate via RS232.
• A server (concord232_server) that binds to a serial port and exposes an API over the network.
• A client CLI (concord232_client) and an external integration point (e.g., Home Assistant).
File structure
• Top level:
• .github/workflows – CI pipeline definitions.
• concord232/ – core library:
– api.py – network‐facing API server logic.
– client.py – client implementation for talking to the server.
– concord.py – core Concord communication class.
– concord_commands.py, concord_alarm_codes.py, concord_helpers.py, concord_tokens.py – domain logic, constants, command encoding.
– model.py – domain models (zones, statuses).
– mail.py – optional email notification helper.
– main.py – server entry point invoking API and core logic.
– exclude/ser2net.* – auxiliary serial‐to‐network bridge configs.
• concord232_client, concord232_server – console entry scripts.
• setup.py, pyproject.toml – packaging and dependencies.
README for additional insights
• The server must run on a machine connected to the panel (serial port).
• Clients (CLI or Home Assistant) connect over the network to issue commands (e.g., arm, disarm, summary).
• The pattern is a classic client–server with a hardware‐bound backend and thin network clients.
Final advice
• Flow of a sample command (e.g., “arm-away”) from client to panel and back.