First off, thanks for the script. It gives me the power I need with the flexibility to allow me to add anything else I might want. It is an elegant solution.
The only thing I can see to add is the polling of the inital states upon startup. As it is I have some zones (e.g. smoke detectors)...