-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathasa.operation.fanspeedlevel.json
More file actions
62 lines (62 loc) · 1.91 KB
/
asa.operation.fanspeedlevel.json
File metadata and controls
62 lines (62 loc) · 1.91 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
{
"id": "http://openinterconnect.org/asamapping/schemas/asa.operation.fanspeedlevel.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"description" : "Copyright (c) 2017 Open Connectivity Foundation, Inc. All rights reserved.",
"title": "Fan Speed Level",
"definitions": {
"asa.operation.fanspeedlevel": {
"type": "object",
"properties": {
"fanspeedlevel": {
"type": "integer",
"description": "Fan speed level. 0 = off.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.airflow",
"x-to-ocf": [
"speed = fanspeedlevel"
],
"x-from-ocf": [
"fanspeedlevel = speed"
]
}
},
"maxfanspeedlevel": {
"type": "integer",
"description": "Max level allowed for fan speed",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.airflow",
"x-to-ocf": [
"range[0] = 0",
"range[1] = maxfanspeedlevel"
],
"x-from-ocf": [
"maxfanspeedlevel = range[1]",
"otherwise: maxfanspeedlevel = 100"
]
}
},
"automode": {
"type": "integer",
"description": "Auto mode status.",
"x-ocf-conversion": {
"x-ocf-alias": "oic.r.airflow",
"x-to-ocf": [
"if automode != NotSupported(0xFF)",
" ocf.automode = automode",
"else no mapping"
],
"x-from-ocf": [
"automode = ocf.automode",
"otherwise: automode = NotSupported(0xFF)"
]
}
}
}
}
},
"type": "object",
"allOf": [
{"$ref": "#/definitions/asa.operation.fanspeedlevel"}
],
"required": [ "fanspeedlevel","maxfanspeedlevel","automode" ]
}