Files
econet-exporter/contrib/econet-exporter.swagger.json
T
rmcguire b2ec72352a
Build and Publish / go-binaries (push) Has been skipped
Build and Publish / container-images (push) Has been skipped
Build and Publish / helm-release (push) Successful in 19s
Build and Publish / check-chart (push) Successful in 52s
implement econet exporter
2026-07-04 17:22:31 -04:00

196 lines
4.4 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "econet/v1alpha1/econet.proto",
"version": "version not set"
},
"tags": [
{
"name": "EconetService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1alpha1/devices": {
"get": {
"operationId": "EconetService_ListDevices",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1alpha1ListDevicesResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"EconetService"
]
}
},
"/v1alpha1/devices/{serialNumber}": {
"get": {
"operationId": "EconetService_GetDevice",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1alpha1GetDeviceResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "serialNumber",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"EconetService"
]
}
}
},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v1alpha1Device": {
"type": "object",
"properties": {
"serialNumber": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"friendlyName": {
"type": "string"
},
"type": {
"type": "string",
"title": "water_heater, thermostat, unknown"
},
"genericType": {
"type": "string",
"title": "e.g. heatpumpWaterHeater, gasWaterHeater"
},
"connected": {
"type": "boolean"
},
"wifiSignal": {
"type": "integer",
"format": "int32",
"title": "dB, MQTT-only"
},
"mode": {
"type": "string",
"title": "kebab-case, e.g. heat-pump, energy-saving"
},
"enabled": {
"type": "boolean"
},
"running": {
"type": "boolean"
},
"runningState": {
"type": "string"
},
"setpoint": {
"type": "integer",
"format": "int32",
"title": "degrees Fahrenheit"
},
"setpointMin": {
"type": "integer",
"format": "int32"
},
"setpointMax": {
"type": "integer",
"format": "int32"
},
"hotWaterAvailability": {
"type": "integer",
"format": "int32",
"title": "0/33/66/100, -1 unknown"
},
"alertCount": {
"type": "integer",
"format": "int32"
},
"away": {
"type": "boolean"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
}
},
"description": "Device is the live state of a single Rheem EcoNet device\n(typically a water heater) as reported by the Rheem cloud."
},
"v1alpha1GetDeviceResponse": {
"type": "object",
"properties": {
"device": {
"$ref": "#/definitions/v1alpha1Device"
}
}
},
"v1alpha1ListDevicesResponse": {
"type": "object",
"properties": {
"devices": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1alpha1Device"
}
}
}
}
}
}