- Added event handlers for device communication errors.
- Reverted alarm change frequency to 5 seconds.