Apple HomeKit gateway for Grenton home automation systems, written in GO.
Based on great https://github.com/brutella/hc framework.
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:
- Device with grengate program running
- Grenton system
- Grenton GATE module (HTTP Gate)
- Lua script running on Grenton Gate module (provided here, read below)
- some configuration
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
Added thermostat object, did some code refactor.
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.
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.