-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.schema.json
More file actions
156 lines (156 loc) · 6.07 KB
/
Copy pathconfig.schema.json
File metadata and controls
156 lines (156 loc) · 6.07 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"pluginAlias": "JuneOven",
"pluginType": "platform",
"customUi": true,
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Platform Name",
"type": "string",
"default": "June"
},
"ovens": {
"title": "Paired Ovens",
"type": "array",
"default": [],
"items": {
"type": "object",
"properties": {
"name": {
"title": "Thermostat Name",
"type": "string",
"default": "June"
},
"preheatSwitchName": {
"title": "Preheat Switch Name",
"type": "string",
"default": "June Preheat",
"description": "Leave blank to disable the preheat switch."
},
"readySensor": {
"title": "Ready Sensor",
"type": "boolean",
"default": true
},
"doneSensor": {
"title": "Done Sensor",
"type": "boolean",
"default": true
},
"defaultMode": {
"title": "Default Cook Mode",
"type": "string",
"default": "bake",
"oneOf": [
{ "title": "Bake", "enum": ["bake"] },
{ "title": "Roast", "enum": ["roast"] },
{ "title": "Broil", "enum": ["broil"] },
{ "title": "Air Fry", "enum": ["air_fry"] }
]
},
"defaultTempF": {
"title": "Default Preheat Temp (F)",
"type": "integer",
"default": 350,
"minimum": 100,
"maximum": 500
},
"tempUnit": {
"title": "Display Units",
"type": "string",
"default": "F",
"oneOf": [
{ "title": "Fahrenheit", "enum": ["F"] },
{ "title": "Celsius", "enum": ["C"] }
]
},
"doorbell": {
"title": "Cook Doorbell",
"type": "object",
"properties": {
"enabled": { "title": "Enable Doorbell", "type": "boolean", "default": false },
"name": { "title": "Doorbell Name", "type": "string", "default": "June Doorbell" },
"triggers": {
"type": "object",
"properties": {
"done": { "title": "Ring when cook is done", "type": "boolean", "default": false },
"ready": { "title": "Ring when preheat/ready", "type": "boolean", "default": false }
}
}
}
},
"camera": {
"title": "Interior Camera",
"type": "object",
"properties": {
"enabled": { "title": "Enable Camera", "type": "boolean", "default": false, "description": "Shows the oven's interior camera (a still refreshed ~1x/sec while cooking). If Doorbell is also enabled, they combine into a Video Doorbell so the notification shows a photo of your food." },
"name": { "title": "Camera Name", "type": "string", "default": "June Camera" },
"ffmpegPath": { "title": "ffmpeg Path", "type": "string", "default": "ffmpeg", "description": "Path to ffmpeg, used only for tap-to-view live streaming. Snapshots work without it. Leave as 'ffmpeg' to use the system install." }
}
},
"probeSensors": {
"title": "Food Probe Temperature Sensor",
"type": "object",
"properties": {
"enabled": { "title": "Enable Probe Sensor", "type": "boolean", "default": false },
"name": { "title": "Probe Name", "type": "string", "default": "Food Probe" }
}
},
"modes": {
"title": "Cook Mode Switches",
"type": "array",
"default": [],
"description": "Add a switch for each cook mode you want. primitiveType is the June mode id (e.g. bake, roast, broil, air_fry, toast) — you can enter any value the oven supports.",
"items": {
"type": "object",
"properties": {
"label": { "title": "Switch Name", "type": "string" },
"primitiveType": { "title": "June Mode (primitive_type)", "type": "string" },
"tempF": { "title": "Temperature (F)", "type": "integer", "default": 350, "minimum": 100, "maximum": 550 }
},
"required": ["primitiveType"]
}
},
"ovenId": { "type": "string", "hidden": true },
"deviceId": { "type": "string", "hidden": true },
"deviceName": { "type": "string", "hidden": true },
"password": { "type": "string", "hidden": true },
"ed25519SeedHex": { "type": "string", "hidden": true },
"accessToken": { "type": "string", "hidden": true },
"refreshToken": { "type": "string", "hidden": true },
"clientId": { "type": "string", "hidden": true },
"clientSecret": { "type": "string", "hidden": true }
},
"required": ["ovenId", "deviceId", "deviceName", "password", "ed25519SeedHex"]
}
}
}
},
"form": [
"name",
{
"key": "ovens",
"items": [
"ovens[].name",
"ovens[].preheatSwitchName",
"ovens[].readySensor",
"ovens[].doneSensor",
"ovens[].defaultMode",
"ovens[].defaultTempF",
"ovens[].tempUnit",
"ovens[].doorbell.enabled",
"ovens[].doorbell.name",
"ovens[].doorbell.triggers.done",
"ovens[].doorbell.triggers.ready",
"ovens[].camera.enabled",
"ovens[].camera.name",
"ovens[].camera.ffmpegPath",
"ovens[].probeSensors.enabled",
"ovens[].probeSensors.name",
{ "key": "ovens[].modes", "type": "array", "items": ["ovens[].modes[].label", "ovens[].modes[].primitiveType", "ovens[].modes[].tempF"] }
]
}
]
}