-
Notifications
You must be signed in to change notification settings - Fork 38
/
config.schema.json
88 lines (88 loc) · 2.5 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"pluginAlias": "mqtt",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge-mqtt is a dynamic Plugin that allows you to add and control accessories with a mqtt API.",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "mqtt",
"required": true
},
"url": {
"title": "url",
"type": "string",
"default": "mqtt://120.0.0.1",
"required": true,
"description": "Replace 127.0.0.1 with the ip-address of your mqtt broker."
},
"port": {
"title": "port",
"type": "string",
"required": false,
"default": "1883",
"description": "Mqtt port (optional, default 1883)."
},
"username": {
"title": "username",
"type": "string",
"required": false,
"description": "Add a username for the mqtt broker if required."
},
"password": {
"title": "password",
"type": "string",
"required": false,
"description": "Add a password for the mqtt broker if required."
},
"qos": {
"title": "qos",
"type": "integer",
"required": false,
"default": 0,
"description": "0: fire and forget, 1: at least once, 2: once and once only. Default: 0."
},
"cert": {
"title": "cert",
"type": "string",
"required": false,
"description": "Path to the certificate (optional)."
},
"key": {
"title": "key",
"type": "string",
"required": false,
"description": "Path to the key (optional)."
},
"ca": {
"title": "ca",
"type": "string",
"required": false,
"description": "Path to the ca_certificate (optional)."
},
"client_id": {
"title": "client_id",
"type": "string",
"required": false,
"description": "Mqtt client id (optional)."
},
"topic_type": {
"title": "topic_type",
"type": "string",
"required": false,
"default": "multiple",
"description": "multiple: the data is sent to all devices, single: the data is sent to a single device. Default: multiple."
},
"topic_prefix": {
"title": "topic_prefix",
"type": "string",
"required": false,
"default": "homebridge",
"description": "User defined topix_prefix e.g. 'hmtest'. Default 'homebridge'."
}
}
}
}