generated from homebridge/homebridge-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathSample-config.json
94 lines (89 loc) · 2.71 KB
/
Sample-config.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
89
90
91
92
93
94
{
"bridge": {
"name": "Homebridge 88AB",
"username": "00:84:85:50:88:XX",
"port": 51516,
"pin": "206-99-271"
},
"description": "This is an example configuration file with an Inkbird platform. It refers to a single Inkbird accessory of type IBSM1S.",
"platforms": {
"platform": "homebridge-inkbird-wifi-gateway",
"name": "Inkbird Wifi Gateway",
"devices": [
{
"name": "Inkbird Wifi Gateway",
"type": "IBSM1S",
"deviceId": "<<Ble MAC Address>>"
}
],
"model": {
"type": "string",
"enum": ["IBS-MS1", "not in list - try it anyway"],
"title": "Model number (i.e. IBS-MS1, leave empty if not sure)",
"required": true
},
"id": {
"title": "Virtual ID",
"type": "string",
"required": true,
"format": "idname"
},
"host": {
"title": "IP Address / Hostname",
"type": "string",
"required": true,
"format": "hostname"
},
"mac_address": {
"type": "string",
"title": "Bluetooth MAC address for sensor (xx:xx:xx:xx:xx:xx). If empty, then first sensor to be found will be used - see log for MAC found.",
"required": false
},
"showBridge": {
"title": "Expose WiFi Hub in HomeKit",
"type": "boolean",
"required": true,
"default": false
},
"showTempSensor": {
"title": "Expose Temperature Sensors in HomeKit",
"type": "boolean",
"required": true,
"default": false
},
"useTemperatureDisplay": {
"title": "Display as Temperature Display in HomeKit",
"type": "boolean",
"required": true,
"default": true
},
"update_interval": {
"type": "number",
"title": "Update interval in seconds",
"required": false,
"minimum" : 15
},
"storage": {
"type": "string",
"enum": ["filesystem", "googleDrive"],
"title": "Storage of history values (filesystem or googleDrive)",
"required": false
},
"loglevel": {
"type": "number",
"title": "The log level at start - smaller number less messages (0 = Fatal, 1 = Error, 2 = Warning, 3 = Info (default), 4 = Debug)",
"required": false,
"minimum" : 0,
"maximum" : 4
},
"deviceUrl": {
"title": "Device IP",
"description": "Enter the IP address of this device for local connection.",
"type": "string",
"format": "ipv4",
"condition": {
"functionBody": "return (model.singleDevices && model.singleDevices[arrayIndices] && model.singleDevices[arrayIndices].serialNumber && model.singleDevices[arrayIndices].serialNumber.length === 32 && ((!model.username && !model.password && model.userkey) || (model.username && model.password && ((model.connection === 'local' && [undefined, 'local'].includes(model.singleDevices[arrayIndices].connection)) || (model.connection !== 'local' && model.singleDevices[arrayIndices].connection === 'local')))));"
}
}
}
}