Skip to content

Homebridge accessory plugin that create an HomeKit Switch based on MQTT topics

License

Notifications You must be signed in to change notification settings

ameeuw/homebridge-mqttlightbulb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-mqttlightbulb

An homebridge plugin that create an HomeKit Lightbulb accessory mapped on MQTT topics

Installation

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

Release notes

Version 0.0.1

  • Initial public draft

Configuration

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

About

Homebridge accessory plugin that create an HomeKit Switch based on MQTT topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%