Skip to content

Switch the fan

POST
/api/v1/fan
curl --request POST \
--url http://pwrman.local/api/v1/fan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "on": true }'

{"on": true} or {"on": false} holds the fan on or off. {"mode": "auto"} hands it back to the automatic rules. Saved, and applied at once. With the fan held off it still starts when a blade gets too warm.

Media typeapplication/json
One of:
Manual
object
on
required
boolean

Examples

{
"on": true
}

Done.

Media typeapplication/json
object
ok
required
boolean

Example

{
"ok": true
}

The token is missing or wrong, or no token is set yet.

Media typeapplication/json
object
error
required

Why the request was refused, in words.

string

Examples

{
"error": "bearer token required"
}

The controller is busy with another request. Try again.

Media typeapplication/json
object
error
required

Why the request was refused, in words.

string

Example

{
"error": "busy, retry"
}

USB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.