-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand-schema.json
94 lines (94 loc) · 2.45 KB
/
command-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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://gravypower.net/melviewcommand.json",
"type": "object",
"title": "Melview Command",
"description": "Command to send to Melview",
"default": {},
"examples": [
{
"power": false,
"mode": "MD8",
"temperature": "26",
"fanspeed": "FS0",
"fandirection": "AV0"
}
],
"required": [
"power"
],
"properties": {
"power": {
"$id": "#/properties/power",
"type": "boolean",
"title": "Power",
"description": "Turn unit on or off",
"default": false,
"examples": [
false
]
},
"mode": {
"default": "",
"description": "Sets the mode of a unit",
"enum": [
"MD8", //Auto
"MD1", //Heat
"MD2", //DRY
"MD7", //FAN
"MD3" //Cooling
],
"examples": [
"MD8"
],
"title": "Mode",
"type": "string"
},
"temperature": {
"default": "",
"description": "Sets the temperature of a unit",
"examples": [
"26"
],
"maximum": 31,
"minimum": 16,
"title": "Temperature",
"type": "number"
},
"fanspeed": {
"default": "",
"description": "Sets the fanspeed of a unit",
"examples": [
"FS0"
],
"title": "Fanspeed",
"enum": [
"FS0", //Auto
"FS1", //One
"FS1", //Two
"FS3", //Three
"FS5", //Four
"FS6" //Five
],
"type": "string"
},
"fandirection": {
"default": "",
"description": "Sets the fandirection of a unit",
"examples": [
"AV0"
],
"title": "fandirection",
"enum": [
"AV0", //Auto
"AV7", //Swing
"AV1", //Direction 1 (top)
"AV2", //Direction 2
"AV3", //Direction 3
"AV4", //Direction 4
"AV5" //Direction 5
]
}
},
"additionalProperties": true
}