-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.schema.json
More file actions
94 lines (94 loc) · 3.35 KB
/
Copy pathconfig.schema.json
File metadata and controls
94 lines (94 loc) · 3.35 KB
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
{
"pluginAlias": "MultipleSwitchPlatform",
"pluginType": "platform",
"customUi": true,
"headerDisplay": "Multiple Switch Platform",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Platform Name",
"description": "The name of this platform instance in HomeKit.",
"type": "string",
"default": "Multiple Switch Platform"
},
"devices": {
"title": "Devices",
"description": "List of switch devices. Each device appears as a separate accessory in HomeKit.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Device Name",
"description": "Display name of this device in HomeKit.",
"type": "string"
},
"switchBehavior": {
"title": "Switch Behavior Mode",
"description": "Controls how switches interact with each other within this device.",
"type": "string",
"default": "independent",
"oneOf": [
{ "title": "Independent", "enum": ["independent"] },
{ "title": "Single", "enum": ["single"] }
]
},
"switchType": {
"title": "Switch Type",
"description": "The HomeKit accessory type for all switches in this device.",
"type": "string",
"default": "outlet",
"oneOf": [
{ "title": "Switch", "enum": ["switch"] },
{ "title": "Outlet", "enum": ["outlet"] }
]
},
"masterSwitch": {
"title": "Master Switch",
"description": "Add a master switch that turns all switches on or off at once. Uses the same type as the device.",
"type": "boolean",
"default": false
},
"switches": {
"title": "Switches",
"description": "List of virtual switches in this device.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Switch Name",
"description": "Display name of the switch in HomeKit.",
"type": "string"
},
"defaultState": {
"title": "Default State",
"description": "Switch state on every Homebridge restart.",
"type": "string",
"default": "remember",
"oneOf": [
{ "title": "Remember Last State", "enum": ["remember"] },
{ "title": "On", "enum": ["on"] },
{ "title": "Off", "enum": ["off"] }
]
},
"delayOff": {
"title": "Auto Turn Off (ms)",
"description": "Automatically turn off after this many milliseconds. Set to 0 to disable.",
"type": "number",
"default": 0,
"minimum": 0
}
},
"required": ["name"]
}
}
},
"required": ["name", "switches"]
}
}
},
"required": ["name"]
}
}