homebridge-virtual-accessories 3.6.3 → 3.6.4
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.
- package/config.schema.json +6 -6
- package/package.json +1 -1
package/config.schema.json
CHANGED
@@ -210,7 +210,7 @@
|
|
210
210
|
"filterMaintenance": {
|
211
211
|
"title": "Filter Maintenance",
|
212
212
|
"type": "object",
|
213
|
-
"description": "Filter Lifetime (
|
213
|
+
"description": "Filter Lifetime (30 days max)",
|
214
214
|
"properties": {
|
215
215
|
"lifespan": {
|
216
216
|
"title": " ",
|
@@ -225,19 +225,19 @@
|
|
225
225
|
"hours": {
|
226
226
|
"$ref": "#/$defs/duration/properties/hours",
|
227
227
|
"condition": {
|
228
|
-
"functionBody": "return model.devices[arrayIndices].
|
228
|
+
"functionBody": "return model.devices[arrayIndices].filterMaintenance && model.devices[arrayIndices].filterMaintenance.lifespan && model.devices[arrayIndices].filterMaintenance.lifespan.days < 30;"
|
229
229
|
}
|
230
230
|
},
|
231
231
|
"minutes": {
|
232
232
|
"$ref": "#/$defs/duration/properties/minutes",
|
233
233
|
"condition": {
|
234
|
-
"functionBody": "return model.devices[arrayIndices].
|
234
|
+
"functionBody": "return model.devices[arrayIndices].filterMaintenance && model.devices[arrayIndices].filterMaintenance.lifespan && model.devices[arrayIndices].filterMaintenance.lifespan.days < 30;"
|
235
235
|
}
|
236
236
|
},
|
237
237
|
"seconds": {
|
238
238
|
"$ref": "#/$defs/duration/properties/seconds",
|
239
239
|
"condition": {
|
240
|
-
"functionBody": "return model.devices[arrayIndices].
|
240
|
+
"functionBody": "return model.devices[arrayIndices].filterMaintenance && model.devices[arrayIndices].filterMaintenance.lifespan && model.devices[arrayIndices].filterMaintenance.lifespan.days < 30;"
|
241
241
|
}
|
242
242
|
}
|
243
243
|
},
|
@@ -1248,9 +1248,9 @@
|
|
1248
1248
|
}
|
1249
1249
|
},
|
1250
1250
|
"then": {
|
1251
|
-
"required": [ "
|
1251
|
+
"required": [ "filterMaintenance" ],
|
1252
1252
|
"properties": {
|
1253
|
-
"
|
1253
|
+
"filterMaintenance": {
|
1254
1254
|
"required": [ "lifespan" ],
|
1255
1255
|
"properties": {
|
1256
1256
|
"lifetime": {
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "homebridge-virtual-accessories",
|
3
3
|
"displayName": "Virtual Accessories for Homebridge",
|
4
4
|
"type": "module",
|
5
|
-
"version": "3.6.
|
5
|
+
"version": "3.6.4",
|
6
6
|
"description": "Virtual HomeKit accessories for Homebridge.",
|
7
7
|
"author": "justjam2013",
|
8
8
|
"license": "MIT",
|