This repository has been archived by the owner on Apr 15, 2021. It is now read-only.
forked from mlaurijsse/homebridge-milight-v6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
95 lines (95 loc) · 3.45 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
89
90
91
92
93
94
95
{
"pluginAlias": "MiLight-v6",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Your bridge must be **up and paired** with the zones you want to use for this plugin to work.",
"footerDisplay": "For help please open an [issue](https://github.com/buenyamin-olgun/homebridge-milight-v6/issues).",
"schema": {
"name": {
"title": "Name",
"type": "string",
"default": "Milight",
"required": true
},
"bridges": {
"type": "array",
"items": {
"title": "Bridge Config",
"type": "object",
"properties": {
"name": {
"title": "name",
"type": "string",
"default": "Milight Bridge",
"required": true
},
"ip": {
"title": "Hostname or IP Address",
"type": "string",
"format": "hostname",
"required": false,
"placeholder": "192.168.X.X",
"description": "You should enter the IP Address of the bridge to avoid heavy lags"
},
"type": {
"title": "Type",
"type": "string",
"default": "v6",
"required": true,
"oneOf": [
{ "title": "v6", "enum": ["v6"] }
]
},
"delay": {
"title": "Delay",
"type": "integer",
"default": 25,
"minimum": 0,
"description": "Delay between each command",
"required": false
},
"devices": {
"type": "array",
"items": {
"title": "Device Config",
"type": "object",
"properties": {
"name": {
"title": "name",
"type": "string",
"placeholder": "Bedroom",
"required": true
},
"zone": {
"title": "zone",
"type": "integer",
"default": 1,
"required": true
},
"hasnightmode": {
"title": "hasnightmode",
"type": "boolean",
"default": false
},
"type": {
"title": "type",
"type": "string",
"default": "fullcolor8zone",
"required": true,
"oneOf": [
{ "title": "fullcolor8zone", "enum": ["fullcolor8zone"] },
{ "title": "fullcolor", "enum": ["fullcolor"] },
{ "title": "rgbww", "enum": ["rgbww"] },
{ "title": "rgbw", "enum": ["rgbw"] },
{ "title": "rgb", "enum": ["rgb"] },
{ "title": "bridge", "enum": ["bridge"] }
]
}
}
}
}
}
}
}
}
}