123
Senior Member
Dinki plans to use a Weeder Digital I/O board to create a burglar alarm system. Naturally, there's some coding required to create the necessary alarm logic. The problem intrigued me and I cobbled together some code that uses Premise's SecuritySystem, SecurityZone, and Siren classes. It does the following:
All of the code is implemented in Premise Home and involves no Modules. This presented a challenge because it'd be easier to write the logic using a Module but it is easier, for a new user, to understand logic at the Home level than in a Module. The Disarm code is "1234" (see OnChangeExitArm) and it works via Premise Browser's Security panel.
Have fun tailoring it to your needs.
- ExitArm, StayArm, Disarm, PanicFire, PanicMedical, and PanicPolice.
- Two types of zones: with Entrance/Exit delay and without.
- 60 second exit delay and 30 second entrance delay.
- Siren with 5 minute auto-shutoff.
All of the code is implemented in Premise Home and involves no Modules. This presented a challenge because it'd be easier to write the logic using a Module but it is easier, for a new user, to understand logic at the Home level than in a Module. The Disarm code is "1234" (see OnChangeExitArm) and it works via Premise Browser's Security panel.
Have fun tailoring it to your needs.