forked from hongtat/smartthings-capabilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimedSession.json
executable file
·97 lines (97 loc) · 3.09 KB
/
timedSession.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
{
"id": "timedSession",
"version": 1,
"status": "deprecated",
"name": "Timed Session",
"ephemeral": false,
"attributes": {
"completionTime": {
"schema": {
"type": "object",
"properties": {
"value": {
"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)?)$"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setCompletionTime",
"enumCommands": []
},
"sessionStatus": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"canceled",
"paused",
"running",
"stopped"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": [
{
"command": "cancel",
"value": "canceled"
},
{
"command": "pause",
"value": "paused"
},
{
"command": "start",
"value": "running"
},
{
"command": "stop",
"value": "stopped"
}
]
}
},
"commands": {
"cancel": {
"name": "cancel",
"arguments": []
},
"stop": {
"name": "stop",
"arguments": []
},
"start": {
"name": "start",
"arguments": []
},
"setCompletionTime": {
"name": "setCompletionTime",
"arguments": [
{
"name": "completionTime",
"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)?)$"
}
}
]
},
"pause": {
"name": "pause",
"arguments": []
}
}
}