homebridge-virtual-accessories 3.9.2 → 3.9.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
CHANGED
|
@@ -45,12 +45,11 @@
|
|
|
45
45
|
"requireHoursMinutesSeconds": {
|
|
46
46
|
"if": {
|
|
47
47
|
"properties": {
|
|
48
|
-
"days": { "
|
|
48
|
+
"days": { "maximum": 6 }
|
|
49
49
|
},
|
|
50
50
|
"required": [ "days" ]
|
|
51
51
|
},
|
|
52
|
-
"then": {
|
|
53
|
-
"else": {
|
|
52
|
+
"then": {
|
|
54
53
|
"required": [ "hours", "minutes", "seconds" ]
|
|
55
54
|
}
|
|
56
55
|
},
|
|
@@ -266,12 +265,11 @@
|
|
|
266
265
|
{
|
|
267
266
|
"if": {
|
|
268
267
|
"properties": {
|
|
269
|
-
"days": { "
|
|
268
|
+
"days": { "maximum": 29 }
|
|
270
269
|
},
|
|
271
270
|
"required": [ "days" ]
|
|
272
271
|
},
|
|
273
|
-
"then": {
|
|
274
|
-
"else": {
|
|
272
|
+
"then": {
|
|
275
273
|
"required": [ "hours", "minutes", "seconds" ]
|
|
276
274
|
}
|
|
277
275
|
}
|
|
@@ -646,8 +644,25 @@
|
|
|
646
644
|
"title": "Security System",
|
|
647
645
|
"type": "object",
|
|
648
646
|
"properties": {
|
|
647
|
+
"": {
|
|
648
|
+
"title": "Armed Modes",
|
|
649
|
+
"description": "Security system modes (Away and Home are required)",
|
|
650
|
+
"type": "null"
|
|
651
|
+
},
|
|
652
|
+
"hasAwayMode": {
|
|
653
|
+
"title": "Away Mode",
|
|
654
|
+
"type": "boolean",
|
|
655
|
+
"disabled": true,
|
|
656
|
+
"default": true
|
|
657
|
+
},
|
|
658
|
+
"hasHomeMode": {
|
|
659
|
+
"title": "Home Mode",
|
|
660
|
+
"type": "boolean",
|
|
661
|
+
"disabled": true,
|
|
662
|
+
"default": true
|
|
663
|
+
},
|
|
649
664
|
"hasNightMode": {
|
|
650
|
-
"title": "
|
|
665
|
+
"title": "Night Mode",
|
|
651
666
|
"description": "Night mode is a custom armed mode",
|
|
652
667
|
"type": "boolean"
|
|
653
668
|
},
|
|
@@ -777,12 +792,11 @@
|
|
|
777
792
|
{
|
|
778
793
|
"if": {
|
|
779
794
|
"properties": {
|
|
780
|
-
"minutes": { "
|
|
795
|
+
"minutes": { "maximum": 59 }
|
|
781
796
|
},
|
|
782
797
|
"required": [ "minutes" ]
|
|
783
798
|
},
|
|
784
|
-
"then": {
|
|
785
|
-
"else": {
|
|
799
|
+
"then": {
|
|
786
800
|
"required": [ "seconds" ]
|
|
787
801
|
}
|
|
788
802
|
}
|
|
@@ -921,19 +935,19 @@
|
|
|
921
935
|
"hours": {
|
|
922
936
|
"$ref": "#/$defs/duration/properties/hours",
|
|
923
937
|
"condition": {
|
|
924
|
-
"functionBody": "return model.devices[arrayIndices].resetTimer.durationRandomMax && model.devices[arrayIndices].resetTimer.
|
|
938
|
+
"functionBody": "return model.devices[arrayIndices].resetTimer.durationRandomMax && model.devices[arrayIndices].resetTimer.durationRandomMax.days < 7;"
|
|
925
939
|
}
|
|
926
940
|
},
|
|
927
941
|
"minutes": {
|
|
928
942
|
"$ref": "#/$defs/duration/properties/minutes",
|
|
929
943
|
"condition": {
|
|
930
|
-
"functionBody": "return model.devices[arrayIndices].resetTimer.durationRandomMax && model.devices[arrayIndices].resetTimer.
|
|
944
|
+
"functionBody": "return model.devices[arrayIndices].resetTimer.durationRandomMax && model.devices[arrayIndices].resetTimer.durationRandomMax.days < 7;"
|
|
931
945
|
}
|
|
932
946
|
},
|
|
933
947
|
"seconds": {
|
|
934
948
|
"$ref": "#/$defs/duration/properties/seconds",
|
|
935
949
|
"condition": {
|
|
936
|
-
"functionBody": "return model.devices[arrayIndices].resetTimer.durationRandomMax && model.devices[arrayIndices].resetTimer.
|
|
950
|
+
"functionBody": "return model.devices[arrayIndices].resetTimer.durationRandomMax && model.devices[arrayIndices].resetTimer.durationRandomMax.days < 7;"
|
|
937
951
|
}
|
|
938
952
|
}
|
|
939
953
|
},
|
|
@@ -1052,10 +1066,10 @@
|
|
|
1052
1066
|
"properties": {
|
|
1053
1067
|
"pattern": {
|
|
1054
1068
|
"title": "Cron Pattern *",
|
|
1055
|
-
"description": "
|
|
1069
|
+
"description": "Standard unix cron pattern - minute, hour, day, month, weekday (https://crontab.guru/)",
|
|
1056
1070
|
"type": "string",
|
|
1057
1071
|
"placeholder": "* * * * *",
|
|
1058
|
-
"pattern": "^((((
|
|
1072
|
+
"pattern": "(^((\\*\\/)?([0-5]?[0-9])((,|-|\\/)([0-5]?[0-9]))*|\\*)\\s((\\*\\/)?((2[0-3]|1[0-9]|[0-9]|00))((,|-|\\/)(2[0-3]|1[0-9]|[0-9]|00))*|\\*)\\s((\\*\\/)?([1-9]|[12][0-9]|3[01])((,|-|\\/)([1-9]|[12][0-9]|3[01]))*|\\*)\\s((\\*\\/)?([1-9]|1[0-2])((,|-|\\/)([1-9]|1[0-2]))*|\\*|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec))\\s((\\*\\/)?[0-6]((,|-|\\/)[0-6])*|\\*|00|(sun|mon|tue|wed|thu|fri|sat))$)"
|
|
1059
1073
|
},
|
|
1060
1074
|
"zoneId": {
|
|
1061
1075
|
"title": "Zone Id",
|
|
@@ -1249,7 +1263,7 @@
|
|
|
1249
1263
|
"filterMaintenance": {
|
|
1250
1264
|
"required": [ "lifespan" ],
|
|
1251
1265
|
"properties": {
|
|
1252
|
-
"
|
|
1266
|
+
"lifespan": {
|
|
1253
1267
|
"required": [ "days" ]
|
|
1254
1268
|
}
|
|
1255
1269
|
}
|
|
@@ -15,7 +15,8 @@ export class CronTriggerConfiguration {
|
|
|
15
15
|
// 5: minutes granularity
|
|
16
16
|
// 6: seconds granularity
|
|
17
17
|
// 7: milliseconds granularity
|
|
18
|
-
|
|
18
|
+
// eslint-disable-next-line max-len
|
|
19
|
+
static cronMinutesGranularityPattern = '(^((\\*\\/)?([0-5]?[0-9])((,|-|\\/)([0-5]?[0-9]))*|\\*)\\s((\\*\\/)?((2[0-3]|1[0-9]|[0-9]|00))((,|-|\\/)(2[0-3]|1[0-9]|[0-9]|00))*|\\*)\\s((\\*\\/)?([1-9]|[12][0-9]|3[01])((,|-|\\/)([1-9]|[12][0-9]|3[01]))*|\\*)\\s((\\*\\/)?([1-9]|1[0-2])((,|-|\\/)([1-9]|1[0-2]))*|\\*|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec))\\s((\\*\\/)?[0-6]((,|-|\\/)[0-6])*|\\*|00|(sun|mon|tue|wed|thu|fri|sat))$)';
|
|
19
20
|
static isoTimeNoMillisPattern = '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d(:[0-5]\\d|)$';
|
|
20
21
|
errorFields = [];
|
|
21
22
|
fieldNames = Utils.proxiedPropertiesOf(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationCronTrigger.js","sourceRoot":"","sources":["../../../src/configuration/triggers/configurationCronTrigger.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAI1B,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,mBAAmB,CAAC;AAE3B;;GAEG;AACH,MAAM,OAAO,wBAAwB;IACnC,OAAO,CAAU;IACjB,MAAM,CAAU;IAChB,aAAa,CAAU;IACvB,WAAW,CAAU;IACrB,0BAA0B,GAAY,KAAK,CAAC;IAC5C,UAAU,GAAY,KAAK,CAAC;IAE5B,yBAAyB;IACzB,yBAAyB;IACzB,8BAA8B;
|
|
1
|
+
{"version":3,"file":"configurationCronTrigger.js","sourceRoot":"","sources":["../../../src/configuration/triggers/configurationCronTrigger.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAI1B,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OA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pB,kBAAkB;gBAClB,6BAA6B,CAAC;YAChC,IAAI,CAAC,WAAW;SACjB,CAAC;IACJ,CAAC;IAEO,aAAa,CAAC,MAAc;QAClC,MAAM,gBAAgB,GAAa,MAAM,CAAC,mBAAmB,EAAE,CAAC;QAEhE,MAAM,aAAa,GAAY,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAEjE,OAAO,aAAa,CAAC;IACvB,CAAC"}
|
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.9.
|
|
5
|
+
"version": "3.9.4",
|
|
6
6
|
"description": "Virtual HomeKit accessories for Homebridge.",
|
|
7
7
|
"author": "justjam2013",
|
|
8
8
|
"license": "MIT",
|