Skip to content

Commit

Permalink
Merge pull request #7 from Flobul/update
Browse files Browse the repository at this point in the history
Update capabilities
  • Loading branch information
Flobul authored Aug 27, 2024
2 parents 0daf223 + 4750db3 commit 32bab3c
Show file tree
Hide file tree
Showing 78 changed files with 1,031 additions and 86 deletions.
21 changes: 21 additions & 0 deletions capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@
"ephemeral": false,
"namespace": "st"
},
{
"id": "alarmsensor",
"version": 1,
"status": "proposed",
"ephemeral": false,
"namespace": "st"
},
{
"id": "alarmSystem",
"version": 1,
Expand Down Expand Up @@ -160,6 +167,13 @@
"ephemeral": false,
"namespace": "st"
},
{
"id": "batchGasConsumptionReport",
"version": 1,
"status": "proposed",
"ephemeral": false,
"namespace": "st"
},
{
"id": "battery",
"version": 1,
Expand Down Expand Up @@ -594,6 +608,13 @@
"ephemeral": false,
"namespace": "st"
},
{
"id": "gasConsumptionReport",
"version": 1,
"status": "proposed",
"ephemeral": false,
"namespace": "st"
},
{
"id": "gasDetector",
"version": 1,
Expand Down
3 changes: 2 additions & 1 deletion json/airFlowDirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"additionalProperties": false,
"required": []
},
"setter": "setAirFlowDirection",
"enumCommands": []
}
},
Expand All @@ -47,4 +48,4 @@
]
}
}
}
}
29 changes: 29 additions & 0 deletions json/alarmsensor.i18n.en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"tag": "en",
"label": "AlarmSensor",
"attributes": {
"supportedAlarmSensorStates": {
"label": "supportedAlarmSensorStates",
"displayTemplate": "{{attribute}} of {{device.label}} was updated",
"i18n": {}
},
"alarmSensorState": {
"label": "alarmSensorState",
"displayTemplate": "{{attribute}} of {{device.label}} is {{value}}",
"i18n": {
"value": {
"suppressed": {
"label": "suppressed"
},
"off": {
"label": "off"
},
"enabled": {
"label": "enabled"
}
}
}
}
},
"commands": {}
}
29 changes: 29 additions & 0 deletions json/alarmsensor.i18n.fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"tag": "en",
"label": "AlarmSensor",
"attributes": {
"supportedAlarmSensorStates": {
"label": "supportedAlarmSensorStates",
"displayTemplate": "{{attribute}} of {{device.label}} was updated",
"i18n": {}
},
"alarmSensorState": {
"label": "alarmSensorState",
"displayTemplate": "{{attribute}} of {{device.label}} is {{value}}",
"i18n": {
"value": {
"suppressed": {
"label": "suppressed"
},
"off": {
"label": "off"
},
"enabled": {
"label": "enabled"
}
}
}
}
},
"commands": {}
}
73 changes: 73 additions & 0 deletions json/alarmsensor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"id": "alarmsensor",
"version": 1,
"status": "proposed",
"name": "AlarmSensor",
"ephemeral": false,
"attributes": {
"supportedAlarmSensorStates": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"title": "AlarmSensorState",
"type": "string",
"enum": [
"off",
"enabled",
"suppressed"
]
}
}
},
"additionalProperties": false,
"required": []
},
"enumCommands": []
},
"alarmSensorState": {
"schema": {
"type": "object",
"properties": {
"value": {
"title": "AlarmSensorState",
"type": "string",
"enum": [
"off",
"enabled",
"suppressed"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setAlarmSensorState",
"enumCommands": []
}
},
"commands": {
"setAlarmSensorState": {
"name": "setAlarmSensorState",
"arguments": [
{
"name": "alarmSensorState",
"optional": false,
"schema": {
"title": "AlarmSensorState",
"type": "string",
"enum": [
"off",
"enabled",
"suppressed"
]
}
}
]
}
}
}
22 changes: 22 additions & 0 deletions json/batchGasConsumptionReport.i18n.en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"tag": "en",
"label": "Batch Gas Consumption Report",
"attributes": {
"hourlyGasConsumptions": {
"label": "hourlyGasConsumptions",
"displayTemplate": "{{attribute}} of {{device.label}} was updated",
"i18n": {}
},
"hourlyUsageViewAvailable": {
"label": "hourlyUsageViewAvailable",
"displayTemplate": "{{attribute}} of {{device.label}} is {{value}}",
"i18n": {}
},
"todayUsageViewAvailable": {
"label": "todayUsageViewAvailable",
"displayTemplate": "{{attribute}} of {{device.label}} is {{value}}",
"i18n": {}
}
},
"commands": {}
}
22 changes: 22 additions & 0 deletions json/batchGasConsumptionReport.i18n.fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"tag": "en",
"label": "Batch Gas Consumption Report",
"attributes": {
"hourlyGasConsumptions": {
"label": "hourlyGasConsumptions",
"displayTemplate": "{{attribute}} of {{device.label}} was updated",
"i18n": {}
},
"hourlyUsageViewAvailable": {
"label": "hourlyUsageViewAvailable",
"displayTemplate": "{{attribute}} of {{device.label}} is {{value}}",
"i18n": {}
},
"todayUsageViewAvailable": {
"label": "todayUsageViewAvailable",
"displayTemplate": "{{attribute}} of {{device.label}} is {{value}}",
"i18n": {}
}
},
"commands": {}
}
86 changes: 86 additions & 0 deletions json/batchGasConsumptionReport.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"id": "batchGasConsumptionReport",
"version": 1,
"status": "proposed",
"name": "Batch Gas Consumption Report",
"ephemeral": false,
"attributes": {
"hourlyGasConsumptions": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"deltaUsage": {
"type": "number"
},
"usageSaved": {
"type": "number"
},
"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)?)$"
}
},
"required": [
"start",
"deltaUsage"
]
}
},
"unit": {
"type": "string",
"enum": [
"Wh",
"m^3",
"cf",
"MJ"
],
"default": "Wh"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
},
"hourlyUsageViewAvailable": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
},
"todayUsageViewAvailable": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {}
}
3 changes: 2 additions & 1 deletion json/colorControl.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"additionalProperties": false,
"required": []
},
"setter": "setColor",
"enumCommands": []
},
"hue": {
Expand Down Expand Up @@ -116,4 +117,4 @@
]
}
}
}
}
3 changes: 2 additions & 1 deletion json/custom.airConditionerOdorController.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"value"
]
},
"setter": "setAirConditionerOdorControllerState",
"enumCommands": []
}
},
Expand All @@ -60,4 +61,4 @@
]
}
}
}
}
3 changes: 2 additions & 1 deletion json/custom.airPurifierOperationMode.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"value"
]
},
"setter": "setApOperationMode",
"enumCommands": []
},
"supportedApOperationMode": {
Expand Down Expand Up @@ -53,4 +54,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion json/custom.autoCleaningMode.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
]
}
}
}
}
Loading

0 comments on commit 32bab3c

Please sign in to comment.