Instance of: Binary switch

Coffee machine

OffUnknown

Object & API

This synthetic object powers the controls above. Requests run in this browser.

Object schema · Explore in graph

GET /api/devices/demo-device-31

Current object state
{
  "schemaVersion": 1,
  "id": "demo-device-31",
  "name": "Coffee machine",
  "status": "online",
  "health": {
    "status": "healthy",
    "detail": "Simulated device",
    "checkedAt": "2000-01-01T00:00:00.000Z"
  },
  "manufacturer": "TP-Link",
  "model": "Kasa plug",
  "capabilities": {
    "binarySwitch": {
      "id": "demo-device-31",
      "state": {
        "availability": "online",
        "observedAt": "2000-01-01T00:00:00.000Z",
        "value": "off"
      },
      "actions": {
        "turnOn": {},
        "turnOff": {},
        "toggle": {},
        "getState": {}
      }
    }
  }
}

Capabilities & actions

binarySwitch

Capability schema

turnOn
POST /api/devices/demo-device-31/capabilities/binarySwitch/controls/turnOn

Action description

{}
turnOff
POST /api/devices/demo-device-31/capabilities/binarySwitch/controls/turnOff

Action description

{}
toggle
POST /api/devices/demo-device-31/capabilities/binarySwitch/controls/toggle

Action description

{}
getState
POST /api/devices/demo-device-31/capabilities/binarySwitch/controls/getState

Action description

{}