Skip to content

Instantly share code, notes, and snippets.

@twonk
twonk / gist:48981062d863e429206dca1cbcc6f5d3
Last active November 29, 2016 18:06
Node-Red flow to set Hive hot water boost (and start it from Alexa via HA-Bridge)
A node-red flow to switch Hive Hot Water boost on for 30 Minutes!
http://your-node-red-server:1880/HotWaterOn to turn on or
http://your-node-red-server:1880/HotWaterOff to turn off
Copy the flow below, and in node-red use the menu - "Import - Clipboard" and paste in:
[{"id":"5839ae0e.452f5","type":"http request","z":"e5a8dfd7.979f9","name":"Login to Hive","method":"POST","ret":"obj","url":"https://api-prod.bgchprod.info/omnia/auth/sessions","x":470,"y":220,"wires":[["594f91a4.a0ee9"]]},{"id":"809c9c17.bc751","type":"function","z":"e5a8dfd7.979f9","name":"set headers, Username and Password","func":"\nmsg.headers = {\n 'Content-Type' : 'application/vnd.alertme.zoo-6.1+json',\n 'Accept' : 'application/vnd.alertme.zoo-6.1+json',\n 'X-Omnia-Client' : 'Hive Web Dashboard'\n};\nmsg.payload = JSON.stringify({\n sessions: [\n { username: \"EnterYourHiveUserIDHere\",\n password: \"EnterYourHivePasswordHere\",\n caller: \"WEB\" \n

Keybase proof

I hereby claim:

  • I am twonk on github.
  • I am andrewholmes (https://keybase.io/andrewholmes) on keybase.
  • I have a public key whose fingerprint is 509E 8592 529F 7D4E D4BC 8584 348C E072 AA69 E423

To claim this, I am signing this object: