Created
September 13, 2020 07:26
-
-
Save meteozond/fcf6e28e0030527c52cf2bbf68ee097b to your computer and use it in GitHub Desktop.
HomeBridge bash curl plug controlling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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