This commit is contained in:
Mateusz Gruszczyński
2026-09-18 23:57:28 +02:00
parent 00cbe975bb
commit be3708f14d
17 changed files with 424 additions and 83 deletions
+39 -4
View File
@@ -2,7 +2,7 @@
"openapi": "3.1.0",
"info": {
"title": "GREE Controller API",
"version": "0.15.7",
"version": "0.15.8",
"summary": "Local HTTP/WebSocket API for GREE Controller",
"description": "Local API used by the GREE Controller Web UI and Home Assistant integration.",
"license": {
@@ -2635,7 +2635,7 @@
"Flows"
],
"summary": "Export Flow source",
"description": "Exports a versioned `gree-controller-flow` document containing only the source graph, never generated schedules/automations.",
"description": "Exports a versioned `gree-controller-flow` document containing the source graph plus definitions of referenced Shared Inputs, never generated schedules/automations.",
"operationId": "exportFlow",
"parameters": [
{
@@ -2686,7 +2686,7 @@
"Flows"
],
"summary": "Import Flow source",
"description": "Imports either a `gree-controller-flow` envelope or a direct Flow source payload. A new Flow ID/revision is created; executable imports are validated and recompiled, drafts remain disabled.",
"description": "Imports either a `gree-controller-flow` envelope or a direct Flow source payload. Flow envelopes may include Shared Input definitions; missing inputs are created automatically and conflicting IDs are safely remapped. A new Flow ID/revision is created; executable imports are validated and recompiled, drafts remain disabled.",
"operationId": "importFlow",
"requestBody": {
"required": true,
@@ -5967,7 +5967,7 @@
},
"version": {
"type": "string",
"example": "0.15.7"
"example": "0.15.8"
},
"uptime_seconds": {
"type": "integer",
@@ -8026,6 +8026,41 @@
"type": "string",
"format": "date-time"
},
"shared_inputs": {
"type": "array",
"description": "Portable definitions for Shared Inputs referenced by the Flow. Import creates missing inputs and safely remaps ID collisions.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "shared-7bdc11d1-2d98-48c2-ba9f-ed2f13cd867b"
},
"name": {
"type": "string",
"example": "Room humidity"
},
"kind": {
"type": "string",
"example": "ha_numeric"
},
"config": {
"type": "object",
"additionalProperties": true,
"example": {
"entity_id": "sensor.room_humidity"
}
}
},
"required": [
"id",
"name",
"kind",
"config"
],
"additionalProperties": false
}
},
"flow": {
"$ref": "#/components/schemas/FlowInput"
}