homebridge2-alarmdecoder-platform 1.0.0-beta.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(git add *)",
5
+ "Bash(git commit -m ' *)",
6
+ "Bash(git push *)",
7
+ "Bash(npm publish *)",
8
+ "Bash(npm whoami *)",
9
+ "Bash(npm set *)",
10
+ "Read(//Users/pabfou/.npm/_logs/**)",
11
+ "Bash(NPM_TOKEN=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 npm publish *)",
12
+ "Bash(NPM_TOKEN=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 npm publish *)",
13
+ "Bash(NPM_TOKEN=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 npm whoami *)"
14
+ ]
15
+ }
16
+ }
package/index.js CHANGED
@@ -226,8 +226,9 @@ class AlarmdecoderPlatform {
226
226
  if (report) {
227
227
  this.alarmSystem.accessory.getService(Service.SecuritySystem)
228
228
  .updateCharacteristic(Characteristic.SecuritySystemCurrentState, this.alarmSystem.state);
229
- this.alarmSystem.accessory.getService(Service.SecuritySystem)
230
- .updateCharacteristic(Characteristic.SecuritySystemTargetState, this.alarmSystem.state);
229
+ if (this.alarmSystem.state <= 3)
230
+ this.alarmSystem.accessory.getService(Service.SecuritySystem)
231
+ .updateCharacteristic(Characteristic.SecuritySystemTargetState, this.alarmSystem.state);
231
232
 
232
233
  let switchToSet = null;
233
234
  switch (this.alarmSystem.state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge2-alarmdecoder-platform",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.1",
4
4
  "description": "Homebridge 2.0 dynamic platform plugin for AlarmDecoder (Honeywell/DSC and Interlogix/GE/Caddx alarm panels).",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",