POST /api/debug/relay/start/ and POST /api/debug/relay/stop/
Service relay test.
Auth: Bearer (powerUser).
Diagnostic mode must be active. Otherwise, the endpoints return 403 ERROR_NO_ACCESS.
POST /api/debug/relay/start/
Section titled “POST /api/debug/relay/start/”Force the relays into test states.
Request
Section titled “Request”{ "state": { "trip": true, "alarm": false, "fan": false, "fault": false }}| Field | Type | Required | Description |
|---|---|---|---|
state | object | yes | Relay states |
state.trip | boolean | yes | Trip relay |
state.alarm | boolean | yes | Alarm relay |
state.fan | boolean | yes | Fan relay |
state.fault | boolean | yes | Fault relay |
Response 200
Section titled “Response 200”{}POST /api/debug/relay/stop/
Section titled “POST /api/debug/relay/stop/”Stop the test and return control to the normal logic.
Request
Section titled “Request”No request body is required.
Response 200
Section titled “Response 200”{}The core logic automatically restores normal control after a timeout, even if the client does not call stop.