forked from hongtat/smartthings-capabilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemandResponseLoadControl.json
executable file
·119 lines (119 loc) · 4.41 KB
/
demandResponseLoadControl.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
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
{
"id": "demandResponseLoadControl",
"version": 1,
"status": "live",
"name": "Demand Response Load Control",
"ephemeral": false,
"attributes": {
"drlcStatus": {
"schema": {
"type": "object",
"properties": {
"value": {
"title": "DemandResponseLoadControlStatus",
"type": "object",
"additionalProperties": false,
"properties": {
"drlcType": {
"title": "DrlcType",
"type": "integer",
"minimum": 0,
"maximum": 1
},
"drlcLevel": {
"title": "DrlcLevel",
"type": "integer",
"minimum": -1,
"maximum": 4
},
"start": {
"title": "Iso8601Date",
"type": "string",
"pattern": "^(?:[1-9]\\d{3}-?(?:(?:0[1-9]|1[0-2])-?(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-?(?:29|30)|(?:0[13578]|1[02])-?31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-?02-?29)T(?:[01]\\d|2[0-3]):?[0-5]\\d:?[0-5]\\d(?:\\.\\d{3})?(?:Z|[+-][01]\\d(?::?[0-5]\\d)?)$"
},
"duration": {
"title": "PositiveInteger",
"type": "integer",
"minimum": 0
},
"override": {
"type": "boolean"
}
}
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {
"overrideDrlcAction": {
"name": "overrideDrlcAction",
"arguments": [
{
"name": "value",
"optional": false,
"schema": {
"type": "boolean"
}
}
]
},
"requestDrlcAction": {
"name": "requestDrlcAction",
"arguments": [
{
"name": "drlcType",
"optional": false,
"schema": {
"title": "DrlcType",
"type": "integer",
"minimum": 0,
"maximum": 1
}
},
{
"name": "drlcLevel",
"optional": false,
"schema": {
"title": "DrlcLevel",
"type": "integer",
"minimum": -1,
"maximum": 4
}
},
{
"name": "start",
"optional": false,
"schema": {
"title": "Iso8601Date",
"type": "string",
"pattern": "^(?:[1-9]\\d{3}-?(?:(?:0[1-9]|1[0-2])-?(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-?(?:29|30)|(?:0[13578]|1[02])-?31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-?02-?29)T(?:[01]\\d|2[0-3]):?[0-5]\\d:?[0-5]\\d(?:\\.\\d{3})?(?:Z|[+-][01]\\d(?::?[0-5]\\d)?)$"
}
},
{
"name": "duration",
"optional": false,
"schema": {
"title": "PositiveInteger",
"type": "integer",
"minimum": 0
}
},
{
"name": "reportingPeriod",
"optional": true,
"schema": {
"title": "PositiveInteger",
"type": "integer",
"minimum": 0
}
}
]
}
}
}