Raspbery Pi Image for Homebridge and Node-Red

Download 700+mb image.
I've created an image that starts with Homebridge-Raspian-Image then layers on, a Node-Red installation including a dozen Hubitat common Palettes.

In other words, it's a very good place to start if you're new to Hubitat, Node-Red or Homebridge.

[Note: I happened to choose Homebridge-Raspian-Image over HOOBS because I personally have had better luck with that image. It's just a personal preference.]

Upon boot, as with Homebridge-Raspian-Image or HOOBS, there's a wifi-direct SSID that you join with a phone or similar device and select your home's WiFi and password. It takes at least a minute perhaps two, for the SSID to appear... be patient.

SSID--> Homebridge WiFi Setup

After selecting your WiFi and entering your Wifi password, the pair of NodeJS servers will start and you can browse to them as usual:

http://<your rPi IP address>/ <-- Homebridge
http://<your rPi IP address>:1880/ <-- Node-Red

Both Homebridge plugins for Hubitat are preloaded. Use either HubConnect or MakerAPI.

The following Node-Red palettes are preloaded:
  • node-red-contrib-bigtimer
  • node-red-contrib-boolean-logic-ultimate
  • node-red-contrib-castv2
  • node-red-contrib-hubitat
  • node-red-contrib-noop
  • node-red-contrib-pushover
  • node-red-contrib-state-machine
  • node-red-contrib-stoptimer2
  • node-red-contrib-string
  • node-red-contrib-time-range-switch
  • node-red-contrib-unsafe-function
  • ttb-node-red-counter

Configuring and Using Homebridge with Hubitat

You will first decide to use Homebridge via MakerAPI or HubConnect.

Hubitat's Built-In App: MakerAPI. This should be your default choice if you're unfamiliar with the choices. HubConnect is the correct choice if you already have it installed. You will simply build anther instance and enter the values.

Having made the choice of communications method, you will need to prepare Hubitat with that choice. Create a new Instance using Homebridge OR Install MakerAPI and configure it with one or more devices to send to Homebridge. Start small, then if you have to start over, you haven't invested a lot of time. Next, you will need to create a config.json for Homebridge.

Visit the config builder and follow the instructions.

Because you're using the Homebridge UI X to manage Homebridge, once the config is built, you'll copy the 'orange' portion into the base config, then restart Homebridge.

=== Create a Homebridge image and boot to it.
=== Install both Hubitat plugins and update the UI and Homebridge if needed.

=== Then install Node-Red:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

=== and install the set of Palettes via cmd line:
cd $HOME/.node-red
npm install node-red-contrib-bigtimer
npm install node-red-contrib-boolean-logic-ultimate
npm install node-red-contrib-castv2
npm install node-red-contrib-hubitat
npm install node-red-contrib-noop
npm install node-red-contrib-pushover
npm install node-red-contrib-state-machine
npm install node-red-contrib-stoptimer2
npm install node-red-contrib-string
npm install node-red-contrib-time-range-switch
npm install node-red-contrib-unsafe-function
npm install ttb-node-red-counter

sudo systemctl enable nodered.service

Reference: Homebridge-Raspian-Image