UNPKG

homebridge-sensor-cmd-polling

Version:

Fork of apexad/homebridge-sensor-cmd with automatic polling support (configurable interval) – original minimal contact sensor via shell command

40 lines 1.03 kB
{ "pluginAlias": "SensorCmd", "pluginType": "accessory", "singular": false, "schema": { "type": "object", "properties": { "name": { "title": "Name", "type": "string", "required": true }, "type": { "title": "Sensor Type", "type": "string", "default": "contact", "oneOf": [ { "title": "Contact", "enum": ["contact"] }, { "title": "Motion", "enum": ["motion"] }, { "title": "Occupancy", "enum": ["occupancy"] } ], "required": true }, "command": { "title": "Command", "type": "string", "required": true, "description": "Shell command that returns 1 or 0" }, "pollingInterval": { "title": "Polling Interval (seconds)", "type": "number", "default": 0, "description": "Optional: Poll the command automatically at this interval. Set 0 to disable polling." } } }, "form": null, "display": null }