When the UI changes the alarm active property, you must let the library know. This is done by calling the DOFObject.changed method and specifying that the AlarmActive property has changed.
The DOFObject.changed method notifies the library that a property may have changed.