scudre / alarm-central-station-receiver

Python daemon for receiving events from a home alarm system via Contact ID protocol
Apache License 2.0
36 stars 10 forks source link

State machine for alarm status #39

Open scudre opened 6 years ago

scudre commented 6 years ago

The code is peppered with references to if 'armed', if 'arming', if 'disarming'. Using a state machine to track the alarms current armed or disarmed status could simplify the system and complexity from all of the if else paths.