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.
Files changed (2) hide show
  1. package/config.schema.json +38 -31
  2. package/package.json +1 -1
@@ -1,33 +1,40 @@
1
1
  {
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
- }
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
- "form": null,
32
- "display": null
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.7",
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": {