M8-T11: add WarmteLink discovery and history API
This commit is contained in:
+115
-6
@@ -1945,7 +1945,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "start",
|
||||
"name": "from",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": {
|
||||
@@ -1958,11 +1958,11 @@
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Start"
|
||||
"title": "From"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "end",
|
||||
"name": "to",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": {
|
||||
@@ -1975,7 +1975,7 @@
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "End"
|
||||
"title": "To"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -3462,6 +3462,27 @@
|
||||
"title": "CatalogEntrySchema",
|
||||
"description": "An entity from the catalog with its current toggle state."
|
||||
},
|
||||
"ChannelBindingSummaryResponse": {
|
||||
"properties": {
|
||||
"count": {
|
||||
"type": "integer",
|
||||
"title": "Count"
|
||||
},
|
||||
"meter_ids": {
|
||||
"items": {
|
||||
"type": "integer"
|
||||
},
|
||||
"type": "array",
|
||||
"title": "Meter Ids"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": [
|
||||
"count",
|
||||
"meter_ids"
|
||||
],
|
||||
"title": "ChannelBindingSummaryResponse"
|
||||
},
|
||||
"ChannelReadingResponse": {
|
||||
"properties": {
|
||||
"recorded_at": {
|
||||
@@ -4055,6 +4076,67 @@
|
||||
"title": "DeviceInfoSchema",
|
||||
"description": "HA device grouping info for an exposable entity."
|
||||
},
|
||||
"DiscoverChannelResponse": {
|
||||
"properties": {
|
||||
"uuid": {
|
||||
"type": "string",
|
||||
"title": "Uuid"
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"title": "Label"
|
||||
},
|
||||
"unit": {
|
||||
"type": "string",
|
||||
"title": "Unit"
|
||||
},
|
||||
"latest_value": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Latest Value"
|
||||
},
|
||||
"latest_at": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Latest At"
|
||||
},
|
||||
"latest_quality": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Latest Quality"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": [
|
||||
"uuid",
|
||||
"label",
|
||||
"unit",
|
||||
"latest_value",
|
||||
"latest_at",
|
||||
"latest_quality"
|
||||
],
|
||||
"title": "DiscoverChannelResponse"
|
||||
},
|
||||
"DiscoverResponse": {
|
||||
"properties": {
|
||||
"requested": {
|
||||
@@ -4069,6 +4151,17 @@
|
||||
"type": "string",
|
||||
"title": "Status"
|
||||
},
|
||||
"request_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Request Id"
|
||||
},
|
||||
"detail": {
|
||||
"anyOf": [
|
||||
{
|
||||
@@ -4079,6 +4172,13 @@
|
||||
}
|
||||
],
|
||||
"title": "Detail"
|
||||
},
|
||||
"channels": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/DiscoverChannelResponse"
|
||||
},
|
||||
"type": "array",
|
||||
"title": "Channels"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
@@ -4691,12 +4791,17 @@
|
||||
"total": {
|
||||
"type": "integer",
|
||||
"title": "Total"
|
||||
},
|
||||
"source_status": {
|
||||
"type": "string",
|
||||
"title": "Source Status"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": [
|
||||
"items",
|
||||
"total"
|
||||
"total",
|
||||
"source_status"
|
||||
],
|
||||
"title": "MeterSourceChannelListResponse"
|
||||
},
|
||||
@@ -4781,6 +4886,9 @@
|
||||
},
|
||||
"type": "array",
|
||||
"title": "Bound Meter Ids"
|
||||
},
|
||||
"binding_summary": {
|
||||
"$ref": "#/components/schemas/ChannelBindingSummaryResponse"
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
@@ -4794,7 +4902,8 @@
|
||||
"latest_at",
|
||||
"latest_quality",
|
||||
"binding_count",
|
||||
"bound_meter_ids"
|
||||
"bound_meter_ids",
|
||||
"binding_summary"
|
||||
],
|
||||
"title": "MeterSourceChannelResponse"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user