forked from hongtat/smartthings-capabilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsamsungce.ehsCycleData.json
executable file
·90 lines (90 loc) · 3.41 KB
/
samsungce.ehsCycleData.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
{
"id": "samsungce.ehsCycleData",
"version": 1,
"status": "proposed",
"name": "EHS Cycle Data",
"ephemeral": false,
"attributes": {
"outdoor": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"timestamp": {
"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)?)$"
},
"data": {
"type": "string",
"pattern": "^[A-Fa-f0-9]+$"
}
},
"required": [
"timestamp",
"data"
]
}
},
"unit": {
"type": "string",
"enum": [
"F",
"C"
]
}
},
"additionalProperties": false,
"required": [
"value",
"unit"
]
},
"enumCommands": []
},
"indoor": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"timestamp": {
"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)?)$"
},
"data": {
"type": "string",
"pattern": "^[A-Fa-f0-9]+$"
}
},
"required": [
"timestamp",
"data"
]
}
},
"unit": {
"type": "string",
"enum": [
"F",
"C"
]
}
},
"additionalProperties": false,
"required": [
"value",
"unit"
]
},
"enumCommands": []
}
},
"commands": {}
}