GET /states
Every State with whether it is on, since when, and whether it is forced or paused.
Details #
Returns a list: name, symbol, active, since (when it last changed), forced (on or off while it is held that way, with forcedUntil when it is for a while), and paused (its conditions are not being read).
curl -s -H "Authorization: Bearer $TOKEN" http://127.0.0.1:48080/states
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X GET http://localhost/states
Every State with whether it is on, since when, and whether it is forced or paused. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.