Skip to content

Grenton home automation gateway to Apple HomeKit

Notifications You must be signed in to change notification settings

hubertat/grengate

Repository files navigation

grengate

Apple HomeKit gateway for Grenton home automation systems, written in GO.

Based on great https://github.com/brutella/hc framework.

what it does

It is a gateway between Grenton home automation system and HomeKit. In other words: it makes possible to controll Grenton devices in Apple HomeKit system.

Of course other things are needed:

what is needed

  1. Device with grengate program running
  2. Grenton system
  3. Grenton GATE module (HTTP Gate)
  4. Lua script running on Grenton Gate module (provided here, read below)
  • some configuration

configuration

grengate

linux service

Creating user for the service:

sudo useradd -r -s /bin/false grengate

Example config for linux/unix service using systemd (to put into /etc/systemd/system):

[Unit]
Description=Grengate
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=5
User=grengate
WorkingDirectory=/srv/grengate
ExecStart=/srv/grengate/grengate -config /srv/grengate/config.json

[Install]
WantedBy=multi-user.target

Enabling service, so it will run on system startup:

sudo systemctl enable grengate

grenton GATE

http listener

lua script

changelog

v0.3

Added thermostat object, did some code refactor.

v0.2

No more js Homebridge! Using https://github.com/brutella/hc package it is a standalone app acting as HomeKit accessory and connecting to Grenton system.

So far only simple Light object present, using only Grenton DOUT.

v0.1

First working version, it is a queue between node.js Homebridge and Grenton Gate. Gate module simply couldn't keep up with many http requests, so I made this go app.

About

Grenton home automation gateway to Apple HomeKit

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages