the1laz / cgateweb

MQTT interface for C-Bus written in Node.js
MIT License
21 stars 20 forks source link

cgateweb

MQTT interface for C-Bus lighting written in Node.js

(If you're looking for HVAC, I haven't/can't try it but have a look at this fork: https://github.com/mminehanNZ/cgateweb)

Install:

(for raspberry pi)

cd /usr/local/bin
sudo git clone https://github.com/the1laz/cgateweb.git
cd cgateweb
npm install
sudo nano settings.js

Put in your settings.

sudo cp cgateweb.service /etc/systemd/system
sudo systemctl start cgateweb
sudo systemctl enable cgateweb

Usage if not using as service:

1) Put your settings in settings.js 2) Run node index.js

Detailed guides and supporting articles will be posted on my blog: https://blog.addictedtopi.com/category/project/cbus/

Updates get published on these topics:

Publish to these topics to control the lights:

This requests an update from all lights:

Requesting an update on start or periodic updates can be set in the settings file.

This requests the network tree:

Other notes:

I made this for working with OpenHAB It assumes the default cgate ports