Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
111 lines (76 sloc) 3.25 KB


Home automation for the geek home. Built in Go.

Build Status GoDoc


  • Lightweight, small memory footprint (runs on the Raspberry Pi)
  • Modular, distributed and extendible
  • Remotely controllable
  • RFID keyless entry
  • Smart burglar alarm
  • Historic weather monitoring and alerting
  • Zoned central heating control
  • Automatic plant irrigation system
  • Sunset / sunrise triggered home lighting

Devices supported

  • rfxcom RFXtrx433 USB device (
  • Homeeasy remote control sockets/lights (
  • Arduino with relay module (
  • ZTE 3g modem (ZTE MF110/MF627/MF636, SMS support)
  • USB 125KHZ EM4100 RFID Proximity Reader (RFID tag reader)
  • Oregon Scientific WMR100/200 weather station
  • Audio out (espeak text to speech)
  • Foscam wireless IP cameras
  • Motion webcam application
  • Currentcost electricity monitor
  • LIRC infra-red transmitters

Services supported


Installation is easy, just download the binary from the github releases page (builds are available for Linux 32-bit, 64-bit and ARM):

For the raspberry pi, download the ARM build.

Rename and make the download executable:

$ cp gohome-my-platform /usr/local/bin; chmod +x /usr/local/bin/gohome

You also will need mosquitto installed:


$ apt-get install mosquitto
$ service mosquitto start


$ packer -S mosquitto
$ systemctl enable --now mosquitto


An example configuration is at:

Edit this to match your setup and upload:

$ curl -XPOST localhost:8723/config?path=config --data-binary config.yml


gohome runs as a set of distributed and independent processes/services. They can run across different hosts connecting to the same network, with the pubsub bus (MQTT) connecting all the components together.

To manually run a gohome service:

$ gohome run <service>

The best way to manage the whole set of services is using your user systemd - because you probably want to ensure they are restarted if they happen to crash. Any recent Archlinux comes with this preconfigured, you just need to install the gohome services by running the script provided:

$ cd systemd && ./

This will enable and start all the services defined in by SERVICES=... in

The 'services' don't necessarily have to be gohome itself - you can add scripts to the system of your own crafting. The script service can wrap external scripts and passes on any events printing to stdout by the external script into gohome, allowing quick and easy integration.

Building from source

To build yourself from source:

$ go get
$ cd $GOPATH/src/
$ make install

This will produce a binary gohome in ~/go/bin (ie. $GOPATH/bin), after this follow the steps as above.