UNPKG

@mpathirage/homebridge-accessory-example

Version:

An example accessory plugin for homebridge written in Typescript

49 lines 1.49 kB
{ "pluginAlias": "gosundsw2-esphome", "pluginType": "accessory", "headerDisplay": "Gosund SW2 ESPHome", "schema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "required": true, "title": "Name", "description": "Name of accessory, as displayed in HomeKit." }, "mqttBrokerUrl": { "type": "string", "title": "MQTT Broker URL", "description": "URL of MQTT server (optional), default: http://localhost:1883", "placeholder": "http://localhost:1883" }, "deviceId": { "type": "string", "required": false, "title": "Device ID", "description": "Device identifier" }, "deviceTypeId": { "type": "string", "required": true, "title": "Device Type ID", "description": "Identifier of device type" } }, "layout": [ "type", "name", "mqttBrokerUrl", { "type": "fieldset", "expandable": true, "title": "Device Settings", "items": [ "deviceId", "deviceTypeId" ] } ] } }