v0.15.7
This commit is contained in:
+8
-6
@@ -1,6 +1,6 @@
|
||||
# GREE Controller API reference
|
||||
|
||||
HTTP and WebSocket API for GREE Controller **0.15.6**.
|
||||
HTTP and WebSocket API for GREE Controller **0.15.7**.
|
||||
|
||||
[← Main documentation](../README.md)
|
||||
|
||||
@@ -241,7 +241,7 @@ Response:
|
||||
{
|
||||
"status": "ok",
|
||||
"name": "gree-controller",
|
||||
"version": "0.15.6",
|
||||
"version": "0.15.7",
|
||||
"uptime_seconds": 1234,
|
||||
"control_ready": true,
|
||||
"time": "2026-08-30T06:54:00Z"
|
||||
@@ -304,7 +304,7 @@ Returns the initial Web UI snapshot:
|
||||
"control_plan": {"generated_at": "2026-09-04T08:00:00Z", "zones": [], "rules": []},
|
||||
"control_plan_revision": 42,
|
||||
"system": {
|
||||
"version": "0.15.6",
|
||||
"version": "0.15.7",
|
||||
"uptime_seconds": 1234,
|
||||
"auth_required": false,
|
||||
"control_ready": true,
|
||||
@@ -388,9 +388,9 @@ Scans without adding or binding anything. Request body fields are optional:
|
||||
}
|
||||
```
|
||||
|
||||
`protocol_version` accepts `0` (auto/both), `1` (AES-ECB only) or `2` (AES-GCM only). Explicit V1/V2 selection rejects replies from the other protocol generation before decryption. The UDP scan packet itself is common to both generations.
|
||||
`protocol_version` accepts `0` (auto/both), `1` (AES-ECB only) or `2` (AES-GCM only). The UDP scan packet is common to both generations, and newer V2-capable modules may advertise through a legacy/plain discovery envelope. Discovery therefore decodes the reply first and uses the inner `ver` metadata as the protocol hint (`V1.*` -> V1, `V2.*` and newer -> V2). Auto keeps unresolved replies as protocol `0`; explicit V1/V2 scans return only candidates whose hint matches the selected generation.
|
||||
|
||||
The response contains candidates with MAC, IP, detected protocol and an `already_added` flag:
|
||||
The response contains candidates with MAC, IP, protocol hint, a `protocol_locked` flag and an `already_added` flag:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -402,6 +402,7 @@ The response contains candidates with MAC, IP, detected protocol and an `already
|
||||
"ip": "192.168.50.30",
|
||||
"port": 7000,
|
||||
"protocol_version": 1,
|
||||
"protocol_locked": false,
|
||||
"model": "GREE",
|
||||
"firmware": "",
|
||||
"already_added": false
|
||||
@@ -423,6 +424,7 @@ Add only selected candidates returned by `/api/discovery/scan`:
|
||||
"ip": "192.168.50.30",
|
||||
"port": 7000,
|
||||
"protocol_version": 1,
|
||||
"protocol_locked": false,
|
||||
"model": "GREE",
|
||||
"firmware": "",
|
||||
"already_added": false
|
||||
@@ -431,7 +433,7 @@ Add only selected candidates returned by `/api/discovery/scan`:
|
||||
}
|
||||
```
|
||||
|
||||
Each selected candidate is bound strictly with its detected `protocol_version`. Existing MAC addresses are skipped.
|
||||
For Auto discovery (`protocol_locked=false`), `protocol_version` is only the preferred bind order. The controller falls back to the other generation if needed and stores the protocol that actually binds successfully. Explicit V1/V2 discovery returns `protocol_locked=true` and binds strictly with the selected protocol. Existing MAC addresses are skipped.
|
||||
|
||||
### `GET /api/devices`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user