Skip to content

Instantly share code, notes, and snippets.

@necccc
Last active February 22, 2021 14:27
Show Gist options
  • Save necccc/629808e16a3beeb4a2bcbaacb9e89fd2 to your computer and use it in GitHub Desktop.
Save necccc/629808e16a3beeb4a2bcbaacb9e89fd2 to your computer and use it in GitHub Desktop.
Home automation using Homekit on a budget

Software & Control

https://homebridge.io/

Has a pre-built RPI image as well.

Plugins used:

  • homebridge-broadlink-rm-pro
  • homebridge-shelly
  • homebridge-gree-heatercooler (for WIFI-enabled GREE AC units)

Each "room" in HomeKit needs a new HomeBridge instance as the room hub. This can be done using the hb-service command, see https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian#multiple-instances

Hardware

RPI to run Homebridge https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

Shelly 1 - single channel relay https://shelly.cloud/products/shelly-1-smart-home-automation-relay/

Shelly 2.5 - dual channel relay (+ power consumption measurement) https://shelly.cloud/products/shelly-25-smart-home-automation-relay/

BroadLink RM4 PRO - RF & IR over WIFI gateway https://www.ibroadlink.com/products/ir+rf

Network

Most of these IOT devices use 2.4GHz WIFI channel, and many of them is unable to set a fix IP. Use your router to assign a fix IP based on their MAC address and it will be easier to configure the Homebridge plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment