Skip to content

Commit 5639daf

Browse files
Update capabilities (#38)
Co-authored-by: joostlek <[email protected]>
1 parent cddf9ee commit 5639daf

38 files changed

+608
-22
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"id": "orangebrook39927.hueAlerts",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Hue Alerts",
6+
"ephemeral": false,
7+
"attributes": {
8+
"supportedAlerts": {
9+
"schema": {
10+
"type": "object",
11+
"properties": {
12+
"value": { "type": "array", "items": { "type": "string" } }
13+
},
14+
"additionalProperties": false,
15+
"required": []
16+
},
17+
"enumCommands": []
18+
}
19+
},
20+
"commands": {
21+
"apply": {
22+
"name": "apply",
23+
"arguments": [
24+
{ "name": "alert", "optional": false, "schema": { "type": "string" } }
25+
],
26+
"sensitive": false
27+
}
28+
}
29+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"id": "orangebrook39927.hueBridge",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Hue Bridge",
6+
"ephemeral": false,
7+
"attributes": {
8+
"status": {
9+
"schema": {
10+
"type": "object",
11+
"properties": {
12+
"value": {
13+
"type": "string",
14+
"enum": ["unlinked", "linked", "linking", "timeout", "error"]
15+
}
16+
},
17+
"additionalProperties": false,
18+
"required": ["value"]
19+
},
20+
"enumCommands": []
21+
}
22+
},
23+
"commands": {
24+
"disconnect": { "name": "disconnect", "arguments": [], "sensitive": false },
25+
"link": {
26+
"name": "link",
27+
"arguments": [
28+
{
29+
"name": "status",
30+
"optional": false,
31+
"schema": { "type": "string", "enum": ["linking"] }
32+
}
33+
],
34+
"sensitive": false
35+
},
36+
"connect": { "name": "connect", "arguments": [], "sensitive": false }
37+
}
38+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"id": "orangebrook39927.hueDiscovery",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Hue Discovery",
6+
"ephemeral": false,
7+
"attributes": {
8+
"mode": {
9+
"schema": {
10+
"type": "object",
11+
"properties": {
12+
"value": {
13+
"type": "string",
14+
"enum": [
15+
"ready",
16+
"error",
17+
"found",
18+
"none",
19+
"room",
20+
"zone",
21+
"motion",
22+
"contact",
23+
"button",
24+
"camera_motion",
25+
"light"
26+
]
27+
}
28+
},
29+
"additionalProperties": false,
30+
"required": ["value"]
31+
},
32+
"enumCommands": []
33+
},
34+
"supportedModes": {
35+
"schema": {
36+
"type": "object",
37+
"properties": {
38+
"value": { "type": "array", "items": { "type": "string" } }
39+
},
40+
"additionalProperties": false,
41+
"required": []
42+
},
43+
"enumCommands": []
44+
}
45+
},
46+
"commands": {
47+
"discover": {
48+
"name": "discover",
49+
"arguments": [
50+
{
51+
"name": "mode",
52+
"optional": false,
53+
"schema": {
54+
"type": "string",
55+
"enum": [
56+
"room",
57+
"zone",
58+
"motion",
59+
"contact",
60+
"button",
61+
"camera_motion",
62+
"light"
63+
]
64+
}
65+
}
66+
],
67+
"sensitive": false
68+
}
69+
}
70+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"id": "orangebrook39927.hueGeofence",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Hue Geofence",
6+
"ephemeral": false,
7+
"attributes": {},
8+
"commands": {
9+
"update": {
10+
"name": "update",
11+
"arguments": [
12+
{
13+
"name": "mode",
14+
"optional": false,
15+
"schema": { "type": "string", "enum": ["away", "home"] }
16+
}
17+
],
18+
"sensitive": false
19+
},
20+
"remove": { "name": "remove", "arguments": [], "sensitive": false }
21+
}
22+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"id": "orangebrook39927.hueGroup",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Hue Group",
6+
"ephemeral": false,
7+
"attributes": {
8+
"supportsDimming": {
9+
"schema": {
10+
"type": "object",
11+
"properties": { "value": { "type": "boolean" } },
12+
"additionalProperties": false,
13+
"required": ["value"]
14+
},
15+
"enumCommands": []
16+
},
17+
"supportsColorTemperature": {
18+
"schema": {
19+
"type": "object",
20+
"properties": { "value": { "type": "boolean" } },
21+
"additionalProperties": false,
22+
"required": ["value"]
23+
},
24+
"enumCommands": []
25+
},
26+
"supportsOn": {
27+
"schema": {
28+
"type": "object",
29+
"properties": { "value": { "type": "boolean" } },
30+
"additionalProperties": false,
31+
"required": ["value"]
32+
},
33+
"enumCommands": []
34+
},
35+
"supportsColor": {
36+
"schema": {
37+
"type": "object",
38+
"properties": { "value": { "type": "boolean" } },
39+
"additionalProperties": false,
40+
"required": ["value"]
41+
},
42+
"enumCommands": []
43+
}
44+
},
45+
"commands": {}
46+
}

json/samsungce/samsungce.robotCleanerGuidedPatrol.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@
55
"name": "Robot Cleaner Guided Patrol",
66
"ephemeral": false,
77
"attributes": {
8+
"patrolState": {
9+
"schema": {
10+
"type": "object",
11+
"properties": {
12+
"value": {
13+
"type": "string",
14+
"enum": [
15+
"ready",
16+
"patrol",
17+
"paused",
18+
"stopped",
19+
"completed",
20+
"blocked"
21+
],
22+
"default": "ready"
23+
}
24+
},
25+
"additionalProperties": false,
26+
"required": ["value"]
27+
},
28+
"enumCommands": []
29+
},
830
"mapId": {
931
"schema": {
1032
"type": "object",

json/samsungvd/samsungvd.ambient.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
}
1717
},
1818
"commands": {
19+
"sendData": {
20+
"name": "sendData",
21+
"arguments": [
22+
{ "name": "data", "optional": false, "schema": { "type": "object" } }
23+
],
24+
"sensitive": false
25+
},
1926
"setAmbientOn": {
2027
"name": "setAmbientOn",
2128
"arguments": [],

json/standard/endToEndEncryption.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,39 @@
55
"name": "End to End Encryption",
66
"ephemeral": true,
77
"attributes": {
8+
"error": {
9+
"schema": {
10+
"type": "object",
11+
"properties": {
12+
"value": {
13+
"type": "object",
14+
"schema": {
15+
"type": "object",
16+
"additionalProperties": false,
17+
"properties": {
18+
"code": { "type": "integer" },
19+
"reason": { "type": "string" },
20+
"clientId": {
21+
"title": "String",
22+
"type": "string",
23+
"maxLength": 255
24+
}
25+
},
26+
"required": ["code", "reason", "clientId"]
27+
}
28+
}
29+
},
30+
"additionalProperties": false,
31+
"required": ["value"]
32+
},
33+
"enumCommands": []
34+
},
835
"nonce": {
936
"schema": {
1037
"type": "object",
1138
"properties": {
1239
"value": {
40+
"type": "object",
1341
"schema": {
1442
"type": "object",
1543
"additionalProperties": false,
@@ -35,6 +63,7 @@
3563
"type": "object",
3664
"properties": {
3765
"value": {
66+
"type": "object",
3867
"schema": {
3968
"type": "object",
4069
"additionalProperties": false,

json/standard/languageSetting.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "languageSetting",
33
"version": 1,
4-
"status": "proposed",
4+
"status": "deprecated",
55
"name": "Language Setting",
66
"ephemeral": false,
77
"attributes": {

json/standard/lockCredentials.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
]
2424
},
2525
"userIndex": { "type": "integer", "minimum": 1 },
26-
"credentialIndex": { "type": "integer", "minimum": 1 },
26+
"credentialIndex": { "type": "integer", "minimum": 0 },
2727
"statusCode": {
2828
"type": "string",
2929
"enum": [
@@ -56,7 +56,7 @@
5656
"additionalProperties": false,
5757
"properties": {
5858
"userIndex": { "type": "integer", "minimum": 1 },
59-
"credentialIndex": { "type": "integer", "minimum": 1 },
59+
"credentialIndex": { "type": "integer", "minimum": 0 },
6060
"credentialType": {
6161
"title": "LockCredentialType",
6262
"type": "string",
@@ -130,7 +130,7 @@
130130
{
131131
"name": "credentialIndex",
132132
"optional": false,
133-
"schema": { "type": "integer", "minimum": 1 }
133+
"schema": { "type": "integer", "minimum": 0 }
134134
},
135135
{
136136
"name": "credentialType",
@@ -196,7 +196,7 @@
196196
{
197197
"name": "credentialIndex",
198198
"optional": false,
199-
"schema": { "type": "integer", "minimum": 1 }
199+
"schema": { "type": "integer", "minimum": 0 }
200200
},
201201
{
202202
"name": "credentialType",

0 commit comments

Comments
 (0)