-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.schema.json
More file actions
129 lines (129 loc) · 3.73 KB
/
config.schema.json
File metadata and controls
129 lines (129 loc) · 3.73 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"pluginAlias": "SleepMeSimple",
"pluginType": "platform",
"customUi": true,
"footerDisplay": "SleepMe Simple Homebridge Plugin v7.1.7",
"customIcon": "icons/sleepmebasic.png",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "SleepMe Simple"
},
"apiToken": {
"title": "API Token",
"type": "string",
"format": "password",
"description": "Your SleepMe API token"
},
"unit": {
"title": "Temperature Unit",
"type": "string",
"enum": ["C", "F"],
"default": "C",
"minLength": 1,
"description": "Temperature display unit (Celsius or Fahrenheit)"
},
"pollingInterval": {
"title": "Polling Interval",
"type": "integer",
"minimum": 60,
"maximum": 300,
"default": 90,
"description": "Device status check interval (seconds)"
},
"logLevel": {
"title": "Log Level",
"type": "string",
"enum": ["normal", "debug", "verbose"],
"default": "normal",
"minLength": 1,
"description": "Controls the detail level of plugin logs"
},
"interfaceMode": {
"title": "HomeKit Interface Mode",
"type": "string",
"enum": ["hybrid", "switch", "thermostat"],
"default": "hybrid",
"minLength": 1,
"description": "Choose how devices appear in HomeKit",
"enumNames": [
"Hybrid (Recommended) - Power switch + temperature control + schedules",
"Switch - Simple power switch + temperature sensor",
"Thermostat - Traditional thermostat interface"
]
},
"enableSchedules": {
"title": "Enable Schedules",
"type": "boolean",
"default": false
},
"schedules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["Everyday", "Weekdays", "Weekend", "Specific Day", "Warm Hug"]
},
"time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):([0-5]\\d)$"
},
"temperature": {
"type": "number",
"minimum": 13,
"maximum": 46
},
"day": {
"type": "number",
"minimum": 0,
"maximum": 6
},
"description": {
"type": "string"
},
"unit": {
"type": "string",
"enum": ["C", "F"]
}
},
"required": ["type", "time", "temperature"]
}
},
"advanced": {
"type": "object",
"properties": {
"startupDelay": {
"title": "Startup Delay",
"type": "integer",
"minimum": 5,
"maximum": 300,
"default": 45,
"description": "Delay before device discovery starts (seconds). Useful for avoiding rate limits during rapid development cycles."
},
"warmHugIncrement": {
"title": "Warm Hug Temperature Increment",
"type": "number",
"minimum": 0.5,
"maximum": 5,
"default": 2,
"description": "How quickly temperature increases (°C per minute)"
},
"warmHugDuration": {
"title": "Warm Hug Duration",
"type": "integer",
"minimum": 5,
"maximum": 60,
"default": 15,
"description": "Total duration of the Warm Hug (minutes)"
}
}
}
},
"required": ["name", "apiToken"]
}
}