Skip to content

Commit 6d6594d

Browse files
Update capabilities (#25)
Co-authored-by: joostlek <[email protected]>
1 parent 713e772 commit 6d6594d

10 files changed

+435
-4
lines changed

json/rivertalent14263/rivertalent14263.energyMeterProperties.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
"schema": {
193193
"type": "object",
194194
"properties": {
195-
"value": { "type": "number", "minimum": 1, "maximum": 31 }
195+
"value": { "type": "number", "minimum": 0, "maximum": 31 }
196196
},
197197
"additionalProperties": false,
198198
"required": []
@@ -208,7 +208,7 @@
208208
{
209209
"name": "meteringDate",
210210
"optional": false,
211-
"schema": { "type": "number", "minimum": 1, "maximum": 31 }
211+
"schema": { "type": "number", "minimum": 0, "maximum": 31 }
212212
}
213213
]
214214
},
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"id": "samsungce.dehumidifierBeep",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Dehumidifier Beep",
6+
"ephemeral": false,
7+
"attributes": {
8+
"beep": {
9+
"schema": {
10+
"type": "object",
11+
"properties": { "value": { "type": "string", "enum": ["on", "off"] } },
12+
"additionalProperties": false,
13+
"required": ["value"]
14+
},
15+
"enumCommands": []
16+
}
17+
},
18+
"commands": {
19+
"off": { "name": "off", "arguments": [] },
20+
"on": { "name": "on", "arguments": [] }
21+
}
22+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"id": "samsungce.dehumidifierMode",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Dehumidifier Mode",
6+
"ephemeral": false,
7+
"attributes": {
8+
"dehumidifierMode": {
9+
"schema": {
10+
"title": "Dehumidifier Mode",
11+
"type": "object",
12+
"properties": {
13+
"value": {
14+
"type": "string",
15+
"enum": ["high", "medium", "quiet", "clothesDrying", "max", "smart"]
16+
}
17+
},
18+
"additionalProperties": false,
19+
"required": ["value"]
20+
},
21+
"enumCommands": []
22+
},
23+
"supportedDehumidifierModes": {
24+
"schema": {
25+
"title": "Supported Dehumidifer Modes",
26+
"type": "object",
27+
"properties": {
28+
"value": {
29+
"type": "array",
30+
"items": {
31+
"type": "string",
32+
"enum": [
33+
"high",
34+
"medium",
35+
"quiet",
36+
"clothesDrying",
37+
"max",
38+
"smart"
39+
]
40+
}
41+
}
42+
},
43+
"additionalProperties": false,
44+
"required": ["value"]
45+
},
46+
"enumCommands": []
47+
}
48+
},
49+
"commands": {
50+
"setDehumidifierMode": {
51+
"name": "setDehumidifierMode",
52+
"arguments": [
53+
{
54+
"name": "mode",
55+
"optional": false,
56+
"schema": {
57+
"type": "string",
58+
"enum": ["high", "medium", "quiet", "clothesDrying", "max", "smart"]
59+
}
60+
}
61+
]
62+
}
63+
}
64+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"id": "samsungce.relativeHumidityLevel",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Relative Humidity Level",
6+
"ephemeral": false,
7+
"attributes": {
8+
"desiredHumidityLevelRange": {
9+
"schema": {
10+
"type": "object",
11+
"properties": {
12+
"value": {
13+
"type": "object",
14+
"additionalProperties": false,
15+
"properties": {
16+
"minimum": { "type": "number", "minimum": 0, "maximum": 100 },
17+
"maximum": { "type": "number", "minimum": 0, "maximum": 100 },
18+
"step": { "type": "number", "minimum": 0, "maximum": 100 }
19+
},
20+
"required": ["minimum", "maximum"]
21+
},
22+
"unit": { "type": "string", "enum": ["%"], "default": "%" }
23+
},
24+
"additionalProperties": false,
25+
"required": ["value", "unit"]
26+
},
27+
"enumCommands": []
28+
},
29+
"desiredHumidityLevel": {
30+
"schema": {
31+
"title": "Desired Humidity Level",
32+
"type": "object",
33+
"properties": {
34+
"value": { "type": "number", "minimum": 0, "maximum": 100 },
35+
"unit": { "type": "string", "enum": ["%"], "default": "%" }
36+
},
37+
"additionalProperties": false,
38+
"required": ["value"]
39+
},
40+
"enumCommands": []
41+
},
42+
"resolution": {
43+
"schema": {
44+
"type": "object",
45+
"properties": {
46+
"value": { "type": "number", "minimum": 0, "maximum": 100 }
47+
},
48+
"additionalProperties": false,
49+
"required": ["value"]
50+
},
51+
"enumCommands": []
52+
},
53+
"relativeHumidityLevel": {
54+
"schema": {
55+
"title": "Relative Humidity Level",
56+
"type": "object",
57+
"properties": {
58+
"value": { "type": "number", "minimum": 0, "maximum": 100 },
59+
"unit": { "type": "string", "enum": ["%"], "default": "%" }
60+
},
61+
"additionalProperties": false,
62+
"required": ["value"]
63+
},
64+
"enumCommands": []
65+
}
66+
},
67+
"commands": {
68+
"setDesiredHumidity": {
69+
"name": "setDesiredHumidity",
70+
"arguments": [
71+
{
72+
"name": "level",
73+
"optional": false,
74+
"schema": { "type": "number", "minimum": 0, "maximum": 100 }
75+
}
76+
]
77+
}
78+
}
79+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"id": "samsungce.welcomeHumidity",
3+
"version": 1,
4+
"status": "proposed",
5+
"name": "Welcome Humidity",
6+
"ephemeral": false,
7+
"attributes": {
8+
"latestRequestId": {
9+
"schema": {
10+
"type": "object",
11+
"properties": { "value": { "type": "string", "pattern": "^.{4}$" } },
12+
"additionalProperties": false,
13+
"required": ["value"]
14+
},
15+
"enumCommands": []
16+
},
17+
"operatingState": {
18+
"schema": {
19+
"type": "object",
20+
"properties": {
21+
"value": {
22+
"type": "string",
23+
"enum": ["ready", "sensing", "completed"]
24+
}
25+
},
26+
"additionalProperties": false,
27+
"required": ["value"]
28+
},
29+
"enumCommands": []
30+
}
31+
},
32+
"commands": {
33+
"start": {
34+
"name": "start",
35+
"arguments": [
36+
{
37+
"name": "requestId",
38+
"optional": false,
39+
"schema": { "type": "string", "pattern": "^.{4}$" }
40+
}
41+
]
42+
}
43+
}
44+
}

yaml/rivertalent14263/rivertalent14263.energyMeterProperties.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ attributes:
193193
properties:
194194
value:
195195
type: number
196-
minimum: 1
196+
minimum: 0
197197
maximum: 31
198198
additionalProperties: false
199199
required: []
@@ -207,7 +207,7 @@ commands:
207207
optional: false
208208
schema:
209209
type: number
210-
minimum: 1
210+
minimum: 0
211211
maximum: 31
212212
setServiceMessage:
213213
name: setServiceMessage
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
id: samsungce.dehumidifierBeep
2+
version: 1
3+
status: proposed
4+
name: Dehumidifier Beep
5+
ephemeral: false
6+
attributes:
7+
beep:
8+
schema:
9+
type: object
10+
properties:
11+
value:
12+
type: string
13+
enum:
14+
- "on"
15+
- "off"
16+
additionalProperties: false
17+
required:
18+
- value
19+
enumCommands: []
20+
commands:
21+
"off":
22+
name: "off"
23+
arguments: []
24+
"on":
25+
name: "on"
26+
arguments: []
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
id: samsungce.dehumidifierMode
2+
version: 1
3+
status: proposed
4+
name: Dehumidifier Mode
5+
ephemeral: false
6+
attributes:
7+
dehumidifierMode:
8+
schema:
9+
title: Dehumidifier Mode
10+
type: object
11+
properties:
12+
value:
13+
type: string
14+
enum:
15+
- high
16+
- medium
17+
- quiet
18+
- clothesDrying
19+
- max
20+
- smart
21+
additionalProperties: false
22+
required:
23+
- value
24+
enumCommands: []
25+
supportedDehumidifierModes:
26+
schema:
27+
title: Supported Dehumidifer Modes
28+
type: object
29+
properties:
30+
value:
31+
type: array
32+
items:
33+
type: string
34+
enum:
35+
- high
36+
- medium
37+
- quiet
38+
- clothesDrying
39+
- max
40+
- smart
41+
additionalProperties: false
42+
required:
43+
- value
44+
enumCommands: []
45+
commands:
46+
setDehumidifierMode:
47+
name: setDehumidifierMode
48+
arguments:
49+
- name: mode
50+
optional: false
51+
schema:
52+
type: string
53+
enum:
54+
- high
55+
- medium
56+
- quiet
57+
- clothesDrying
58+
- max
59+
- smart

0 commit comments

Comments
 (0)