UNPKG

homebridge-nest-accfactory

Version:

Homebridge support for Nest/Google devices including HomeKit Secure Video (HKSV) support for doorbells and cameras

239 lines (238 loc) 8.68 kB
{ "pluginAlias": "NestAccfactory", "pluginType": "platform", "singular": true, "schema": { "type": "object", "properties": { "name": { "title": "Name", "type": "string", "default": "NestAccfactory", "condition": "1=2" }, "nest": { "title": "Nest Account", "type": "object", "expandable": true, "expanded": { "functionBody": "return model.nest && model.nest.access_token" }, "properties": { "access_token": { "title": "Access Token", "type": "string", "placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#nest-account" }, "fieldTest" : { "title": "Field Test", "type": "boolean", "description": "Use field test API endpoints", "default": false, "condition": { "functionBody": "return model.nest.access_token" } } } }, "google": { "title": "Google Account", "type": "object", "expandable": true, "expanded": { "functionBody": "return model.google && model.google.issuetoken && model.google.cookie" }, "properties": { "issuetoken": { "title": "Issue Token", "type": "string", "placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#google-account" }, "cookie": { "title": "Cookie", "type": "string", "placeholder": "See https://github.com/n0rt0nthec4t/homebridge-nest-accfactory/#google-account" }, "fieldTest" : { "title": "Field Test", "type": "boolean", "description": "Use field test API endpoints", "default": false, "condition": { "functionBody": "return model.google.issuetoken && model.google.cookie" } } } }, "options": { "title": "Options", "type": "object", "expandable": true, "expanded": true, "properties": { "eveHistory": { "title": "EveHome History", "description": "Provide history in EveHome application where applicable", "type": "boolean", "default": true }, "weather": { "title": "Virtual Weather", "description": "Virtual weather station", "type": "boolean", "default": false }, "elevation": { "title": "Elevation", "description": "Height above sea level for the weather station", "type": "integer", "default": 0, "minimum": 0, "maximum": 8848, "condition": { "functionBody": "return model.options.weather" } }, "hksv": { "title": "HomeKit Secure Video", "description": "Enable HomeKit Secure Video for supported camera(s) and doorbell(s)", "type": "boolean", "default": false }, "ffmpegPath": { "title": "Path to ffmpeg binary", "type": "string", "placeholder": "Path to an ffmpeg binary", "default": "/usr/local/bin/ffmpeg" }, "ffmegDebug": { "type": "boolean" }, "maxStreams": { "type": "integer" }, "exclude": { "type": "boolean" }, "useNestAPI": { "type": "boolean" }, "useGoogleAPI": { "type": "boolean" } } }, "devices": { "title": "Per device configuration options", "type": "array", "items": { "title": "Device", "type": "object", "properties": { "serialNumber": { "title": "Device Serial Number", "type": "string", "required": true }, "chimeSwitch": { "type": "boolean" }, "doorbellCooldown": { "type": "number" }, "elevation": { "type": "number" }, "eveHistory": { "type": "boolean" }, "exclude": { "type": "boolean" }, "externalCool": { "type": "string" }, "externalDehumidifier": { "type": "string" }, "externalFan": { "type": "string" }, "externalHeat": { "type": "string" }, "ffmegDebug": { "type": "boolean" }, "hkPairingCode": { "type": "string" }, "hksv": { "type": "boolean" }, "humiditySensor": { "type": "boolean" }, "localAccess": { "type": "boolean" }, "motionCooldown": { "type": "number" }, "personCooldown": { "type": "number" } } } } } }, "oneOf": [ { "required": ["nest"] }, { "required": ["google"] } ], "layout": [ { "type": "fieldset", "title": "Nest Account", "expandable": true, "expanded": { "functionBody": "return model.nest && model.nest.access_token" }, "items": [ "nest.access_token", "nest.fieldTest" ] }, { "type": "fieldset", "title": "Google Account", "expandable": true, "expanded": { "functionBody": "return model.google && model.google.issuetoken && model.google.cookie" }, "items": [ "google.issuetoken", "google.cookie", "google.fieldTest" ] }, { "type": "fieldset", "title": "Options", "expandable": true, "expanded": true, "items": [ "options.eveHistory", "options.weather", "options.elevation", "options.hksv", "options.ffmpegPath" ] } ] }