This plugin uses simple-api to provide iobroker states to homebridge as a Lightbulb
npm install -g homebridge-iobroker2
.In most cases, simply adding this plugin to the homebridge config.json and changing the devices states will be enough:
"platforms": [
{
"platform" : "IoBroker",
"name" : "IoBroker",
"url": "192.168.xx.xx",
"port": 8087,
"devices": [
{
"name": "FirstState",
"onstate": "0_userdata.0.firststate",
"colortemp": "0_userdata.0.colortemp",
"brightness": "0_userdata.0.bri"
},
{
"name": "SecondState",
"onstate": "0_userdata.0.secondstate"
},
{
"name": "Switch",
"onstate": "0_userdata.0.testswitch",
"switch": true
}
]
}
]