homebridge-netro
Version:
Homebridge plugin for Netro devices (Spark, Sprite, Pixie, Stream, Whisperer, Lapland S1). English-only UI; manual watering by minutes; zone filtering; multi-device; auto-detection; stable UUIDs.
110 lines • 3.02 kB
JSON
{
"pluginAlias": "Netro",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"devices": {
"type": "array",
"title": "NETRO DEVICES",
"description": "Add Netro devices (Spark/Sprite/Pixie/Stream/Whisperer/Lapland S1).",
"addButtonText": "ADD NETRO DEVICES",
"items": {
"type": "object",
"title": "DEVICE",
"required": [
"serial"
],
"properties": {
"serial": {
"type": "string",
"title": "DEVICE SERIAL (API KEY)"
},
"name": {
"type": "string",
"title": "CUSTOM NAME (OPTIONAL)",
"placeholder": "Netro Spark 1"
},
"type": {
"type": "string",
"title": "DEVICE TYPE",
"oneOf": [
{
"title": "Auto (detect)",
"enum": [
"auto"
]
},
{
"title": "Controller (Spark/Sprite/Pixie/Stream)",
"enum": [
"controller"
]
},
{
"title": "Soil Sensor (Whisperer)",
"enum": [
"sensor"
]
},
{
"title": "Lamp (Lapland S1)",
"enum": [
"lamp"
]
}
],
"default": "auto",
"description": "Leave on Auto to detect from the Netro API."
},
"includeZones": {
"type": "array",
"title": "EXPOSE ONLY THESE ZONES",
"items": {
"type": "number",
"minimum": 0
},
"description": "Example: [1,3]",
"addButtonText": "APPLY ZONES"
},
"defaultDurationMinutes": {
"type": "number",
"title": "DEFAULT MANUAL WATERING DURATION (MINUTES)",
"minimum": 1,
"default": 5
}
}
},
"default": []
},
"defaultDurationMinutes": {
"type": "number",
"title": "GLOBAL DEFAULT WATERING DURATION (MINUTES)",
"minimum": 1,
"default": 5
},
"pollInterval": {
"type": "number",
"title": "STATUS POLLING INTERVAL (SECONDS)",
"minimum": 30,
"default": 60
},
"autoPruneAccessories": {
"type": "boolean",
"title": "AUTO-PRUNE REMOVED ZONES/ACCESSORIES",
"default": true
},
"name": {
"type": "string",
"title": "NAME",
"default": "Netro",
"minLength": 1,
"description": "Name of this platform in logs."
}
},
"required": [
"name"
]
}
}