Skip to content

Instantly share code, notes, and snippets.

@meteozond
Created September 13, 2020 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meteozond/fcf6e28e0030527c52cf2bbf68ee097b to your computer and use it in GitHub Desktop.
Save meteozond/fcf6e28e0030527c52cf2bbf68ee097b to your computer and use it in GitHub Desktop.
HomeBridge bash curl plug controlling
# on
curl -X PUT
--data '{"characteristics":[{"aid": 6, "iid":10, "value": 1}]}' \
--header "authorization:031-45-154" \
--header "Content-Type:Application/json" \
http://localhost:53102/characteristics
# off
curl -X PUT
--data '{"characteristics":[{"aid": 6, "iid": 10, "value": 0}]}' \
--header "authorization:031-45-154" \
--header "Content-Type:Application/json" \
http://localhost:53102/characteristics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment