An homebridge plugin that create an HomeKit Lightbulb accessory mapped on MQTT topics
Follow the instruction in homebridge for the homebridge server installation. The plugin is published through NPM and should be installed "globally" by typing:
npm install -g homebridge-mqttlightbulb
Version 0.0.1
- Initial public draft
Remember to configure the plugin in config.json in your home directory inside the .homebridge directory. Configuration parameters:
{
"accessory": "mqttlightbulb",
"name": "<name of lightbulb>",
"url": "<url of broker>", // i.e. "http://mosquitto.org:1883"
"username": "<username>",
"password": "<password>",
"caption": "<label>",
"topics":
{
"getOn": "<topic to get the status>",
"setOn": "<topic to set the status>",
"getBrightness": "<topic to get the brightness>",
"setBrightness": "<topic to set the brightness>",
"getHue": "<topic to get the hue>",
"setHue": "<topic to set the hue>",
"getSaturation": "<topic to get the saturation>",
"setSaturation": "<topic to set the saturation>"
}
}
Look for a sample config in config.json example