Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 763 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 763 Bytes

mqtt-hue-bridge

This node.js server listens on MQTT messages for lights and translates it to the philips hue bridge

Example

Clone the repository

$ git clone https://github.com/dennisdegreef/mqtt-hue-bridge.git
$ cd mqtt-hue-bridge
$ npm install

Start up the server by editing the config.js first to suit your needs

$ $EDITOR config.js
$ node server.js

Or by using environment variables

$ MQTT_HOSTNAME="192.168.0.1" HUE_HOSTNAME="192.168.0.2" HUE_USERNAME=$(whoami) node server.js

Publish some MQTT messages to try it out (I use mosquitto server for this, but whatever MQTT server should work)

$ mosquitto_pub -m "on" -t "light/all/state"
$ mosquitto_pub -m "50" -t "light/2/brightness"