Skip to content

Quick Start

crxporter edited this page Apr 15, 2020 · 5 revisions
  1. Follow the install instructions on the read me page

  2. Copy and paste the following into node red to have a bridge and on/off switch:

[{"id":"ed2d8340.e1d5d8","type":"homekit-service","z":"7b43483c.39305","bridge":"d334490b.40dac","name":"Example Switch","serviceName":"Switch","topic":"","manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{}","x":360,"y":160,"wires":[["5844674e.178708"]]},{"id":"8db975bc.c2e9d","type":"inject","z":"7b43483c.39305","name":"On","topic":"","payload":"{\"On\":true}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":120,"wires":[["ed2d8340.e1d5d8"]]},{"id":"5844674e.178708","type":"debug","z":"7b43483c.39305","name":"HomeKit Out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":550,"y":160,"wires":[]},{"id":"629771.da7c409","type":"inject","z":"7b43483c.39305","name":"Off","topic":"","payload":"{\"On\":false}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":180,"wires":[["ed2d8340.e1d5d8"]]},{"id":"d334490b.40dac","type":"homekit-bridge","z":"","bridgeName":"Example Bridge","pinCode":"111-11-111","port":"","allowInsecureRequest":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number"}]
  1. Click Deploy in Node-RED (please note it is recommended to deploy only modified nodes)

  2. Once the flow has been deployed, open the Home app on an iOS device and click "Add Accessory".

  3. Click "Don't Have a Code or Can't Scan?".

  4. At this point you should see "Example Bridge" on your screen - click that and enter the code 111-11-111.

Congratulations! You should now be able to press the "on" and "off" inject nodes in Node-RED to see the switch change in the Home app. You can also change the switch in your Home app and watch the debug screen in Node-RED to see {"On":true} and {"On":false} messages come in.

Head over to our other examples for more!

Clone this wiki locally