Example REST call to turn my office lights on to 100%:
$ curl 'http://192.168.1.9:8177/devices/office%20lights.json?brightness=100&_method=put'
curl and a shell command prevents Bunch from trying to open the URL in the browser, performing the HTTP GET request in the background. You can also use
curl to perform POST requests, add headers and body content, and anything else you need to do.
Like the Indigo automation, you can set up IFTTT applets to respond to Webhooks and call them with
curl. You’ll need your Maker key, which you can get when you’re signed in, visit this link, and click “Documentation.” Create a new applet with a Webhook for the “If”, and give it an event name, and add your “Then” actions. Your URL will look like:
$ curl -X POST https://maker.ifttt.com/trigger/EVENTNAME/with/key/YOURMAKERKEY
If you have a home automation system that’s scriptable, I’d love to include details here. Please pop into the Discussions and let me know. I swear there has to be a way to script HomeKit devices outside of the Home app and Shortcuts, but I haven’t found it…