Apple Home

Forget a controller

DEL/api/homekit/pairings/{id}
Admin. Needs an unlock token (x-tempolight-token) while a PIN lock is set; without a lock, anyone can call it.

Forgets one paired controller.

Path parameters

idstringrequired

A pairing id from pairings.

Responses

200OKapplication/json
enabledboolean
statestring
One of "off" "starting" "ready" "error"
errorstring | null
mdnsErrorstring | null
portinteger | null
namestring
deviceIdstring
pairedboolean
setupCodestring
setupUristring

X-HM://…, for the QR code.

pairingsobject[]
accessoriesinteger
403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

404No such id.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X DELETE 'http://localhost:8080/api/homekit/pairings/pairings'
Response
{
  "enabled": true,
  "state": "ready",
  "error": null,
  "mdnsError": null,
  "port": 51826,
  "name": "Tempolight 3F2A",
  "deviceId": "3F:2A:10:C4:9B:E1",
  "paired": false,
  "setupCode": "123-45-678",
  "setupUri": "X-HM://0023ISYWY3F2A",
  "pairings": [],
  "accessories": 7
}
Edit on GitHub