homebridge-lib 7.0.6 → 7.0.8

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.
@@ -86,6 +86,10 @@ class MyHomeKitTypes extends CustomHomeKitTypes {
86
86
  * <br>Used by: homebridge-hue in LightSensor service.
87
87
  * @property {Class} Daylight - LightLevel is above daylight threshold.
88
88
  * <br>Used by: homebridge-hue in LightSensor service.
89
+ * @property {Class} DetectionRange - The range of detection in cm.
90
+ * <br>Used by: homebridge-deconz in MotionSensor service.
91
+ * @property {Class} Distance - The distance of detected human in cm.
92
+ * <br>Used by: homebridge-deconz in MotionSensor service.
89
93
  * @property {Class} Duration - Duration (in s) that Motion sensor reports
90
94
  * motion.
91
95
  * <br>See also: {@link EveHomeKitTypes#Characteristics eve.Duration}.
@@ -168,6 +172,8 @@ class MyHomeKitTypes extends CustomHomeKitTypes {
168
172
  * <br>Used by: homebridge-hue.
169
173
  * @property {Class} Repeat - Repeat tracks (off, 1, all).
170
174
  * <br>Used by: homebridge-zp.
175
+ * @property {Class} Reset - Reset.
176
+ * <br>Used by: homebridge-deconz to reset a presence sensor.
171
177
  * @property {Class} Resource - REST API resource corresponding for
172
178
  * service.
173
179
  * <br>Used by: homebridge-hue.
@@ -216,6 +222,8 @@ class MyHomeKitTypes extends CustomHomeKitTypes {
216
222
  * <br>Used by: homebridge-deconz.
217
223
  * @property {Class} SurroundEnabled - Enabled/disable surround speakers.
218
224
  * <br>Used by: homebridge-zp in Speaker service.
225
+ * @property {Class} SwapUsage - The usage of the swapfile in %.
226
+ * <br>Used by: homebridge-rpi.
219
227
  * @property {Class} Tariff - Electricity tariff (normal vs low).
220
228
  * <br>Used by: homebridge-p1 in Electricity service.
221
229
  * @property {Class} TemperatureMax - Maximum temperature.
@@ -924,6 +932,38 @@ class MyHomeKitTypes extends CustomHomeKitTypes {
924
932
  perms: [this.Perms.PAIRED_READ, this.Perms.NOTIFY, this.Perms.PAIRED_WRITE]
925
933
  }, 'Height Level')
926
934
 
935
+ this.createCharacteristicClass('Distance', uuid('091'), {
936
+ format: this.Formats.INT,
937
+ minValue: 0,
938
+ maxValue: 600,
939
+ minStep: 1,
940
+ perms: [this.Perms.PAIRED_READ, this.Perms.NOTIFY]
941
+ })
942
+
943
+ this.createCharacteristicClass('DetectionRange', uuid('092'), {
944
+ format: this.Formats.INT,
945
+ minValue: 0,
946
+ maxValue: 600,
947
+ minStep: 1,
948
+ perms: [this.Perms.PAIRED_READ, this.Perms.NOTIFY, this.Perms.PAIRED_WRITE],
949
+ adminOnlyAccess: [this.Access.WRITE]
950
+ }, 'Detection Range')
951
+
952
+ this.createCharacteristicClass('SwapUsage', uuid('093'), {
953
+ format: this.Formats.INT,
954
+ unit: this.Units.PERCENTAGE,
955
+ minValue: 0,
956
+ maxValue: 100,
957
+ minStep: 1,
958
+ perms: [this.Perms.PAIRED_READ, this.Perms.NOTIFY]
959
+ }, 'Swap Usage')
960
+
961
+ this.createCharacteristicClass('Reset', uuid('094'), {
962
+ format: this.Formats.BOOL,
963
+ perms: [this.Perms.PAIRED_READ, this.Perms.NOTIFY, this.Perms.PAIRED_WRITE],
964
+ adminOnlyAccess: [this.Access.WRITE]
965
+ })
966
+
927
967
  // Characteristic for Unique ID, used by homebridge-hue.
928
968
  // Source: as exposed by the Philips Hue bridge. This characteristic is
929
969
  // used by the Hue app to select the accessories when syncing Hue bridge
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "ebaauw"
7
7
  ],
8
8
  "license": "Apache-2.0",
9
- "version": "7.0.6",
9
+ "version": "7.0.8",
10
10
  "keywords": [
11
11
  "homekit",
12
12
  "homebridge"