homebridge-sensor-cmd-polling 2.50.7 → 2.50.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.
- package/config.schema.json +38 -31
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
"pluginAlias": "SensorCmd",
|
|
3
|
+
"pluginType": "accessory",
|
|
4
|
+
"singular": false,
|
|
5
|
+
"schema": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"title": "Name",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"required": true
|
|
12
|
+
},
|
|
13
|
+
"type": {
|
|
14
|
+
"title": "Sensor Type",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"default": "contact",
|
|
17
|
+
"oneOf": [
|
|
18
|
+
{ "title": "Contact", "enum": ["contact"] },
|
|
19
|
+
{ "title": "Motion", "enum": ["motion"] },
|
|
20
|
+
{ "title": "Occupancy", "enum": ["occupancy"] }
|
|
21
|
+
],
|
|
22
|
+
"required": true
|
|
23
|
+
},
|
|
24
|
+
"command": {
|
|
25
|
+
"title": "Command",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"required": true,
|
|
28
|
+
"description": "Shell command that returns 1 or 0"
|
|
29
|
+
},
|
|
30
|
+
"pollingInterval": {
|
|
31
|
+
"title": "Polling Interval (seconds)",
|
|
32
|
+
"type": "number",
|
|
33
|
+
"default": 0,
|
|
34
|
+
"description": "Optional: Poll the command automatically at this interval. Set 0 to disable polling."
|
|
29
35
|
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"form": null,
|
|
39
|
+
"display": null
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-sensor-cmd-polling",
|
|
3
|
-
"version": "2.50.
|
|
3
|
+
"version": "2.50.8",
|
|
4
4
|
"description": "Fork of apexad/homebridge-sensor-cmd with automatic polling support (configurable interval) – original minimal contact sensor via shell command",
|
|
5
5
|
"main": "dist/accessory.js",
|
|
6
6
|
"scripts": {
|