+
+ if (init) {
+ this.contactState = "closed"
+ this.currentContact = "closed"
+ this.latestValue = "closed"
+ this.alarmState = "armed"
+ } else {
+ this.contactState = "open"
+ this.currentContact = "open"
+ this.latestValue = "open"
+ this.alarmState = "not armed"
+ }