homebridge-lib 6.3.15 → 6.3.17

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.
@@ -162,9 +162,9 @@ class CharacteristicDelegate extends homebridgeLib.Delegate {
162
162
  // Set initial value.
163
163
  if (this.value == null && params.value != null) {
164
164
  this.value = params.value
165
- }
166
- if (this.value != null && this._characteristic != null) {
167
- this._characteristic.updateValue(this.value)
165
+ if (this._characteristic != null) {
166
+ this._characteristic.updateValue(this.value)
167
+ }
168
168
  }
169
169
  }
170
170
 
@@ -351,9 +351,22 @@ class EveHomeKitTypes extends CustomHomeKitTypes {
351
351
 
352
352
  this.createCharacteristicClass('ConfigData', uuid('131'), {
353
353
  format: this.Formats.DATA,
354
- perms: [this.Perms.PAIRED_READ, this.Perms.NOTIFY, this.Perms.HIDDEN]
354
+ perms: [this.Perms.PAIRED_READ, this.Perms.NOTIFY]
355
355
  }, 'Config Data')
356
356
 
357
+ this.createCharacteristicClass('ElgatoDeviceStatus', uuid('134'), {
358
+ format: this.Formats.UINT32,
359
+ perms: [this.Perms.PAIRED_READ, this.Perms.NOTIFY]
360
+ })
361
+ this.Characteristics.ElgatoDeviceStatus.SMOKE_DETECTED = 1 << 0
362
+ this.Characteristics.ElgatoDeviceStatus.HEAT_DETECTED = 1 << 1
363
+ this.Characteristics.ElgatoDeviceStatus.ALARM_TEST_ACTIVE = 1 << 2
364
+ this.Characteristics.ElgatoDeviceStatus.SMOKE_CHAMBER = 1 << 9
365
+ this.Characteristics.ElgatoDeviceStatus.SMOKE_SENSOR_DEACTIVATED = 1 << 14
366
+ this.Characteristics.ElgatoDeviceStatus.FLASH_STATUS_LED = 1 << 15
367
+ this.Characteristics.ElgatoDeviceStatus.ALARM_PAUSED = 1 << 24
368
+ this.Characteristics.ElgatoDeviceStatus.ALARM_MUTED = 1 << 25
369
+
357
370
  this.createCharacteristicClass('WeatherTrend', uuid('136'), {
358
371
  format: this.Formats.UINT8,
359
372
  minValue: 0,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Library for homebridge plugins",
4
4
  "author": "Erik Baauw",
5
5
  "license": "Apache-2.0",
6
- "version": "6.3.15",
6
+ "version": "6.3.17",
7
7
  "keywords": [
8
8
  "homekit",
9
9
  "homebridge"
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@homebridge/plugin-ui-utils": "~0.0.19",
29
- "hb-lib-tools": "^1.0.8"
29
+ "hb-lib-tools": "^1.0.9"
30
30
  },
31
31
  "scripts": {
32
32
  "prepare": "standard && rm -rf out && jsdoc -c jsdoc.json",