Right now, setting the bridge is as simple as:
http://homebridge.localI use several USB WiFi plugs to control dumb devices, and adding them is as easy as installing the plugin @bwp91/homebridge-ewelink and configure them using your Ewelink account. Adding devices must be done through the official app.
I have an Broadlink IR blaster to control infrared devices, which can be added to Homebridge using the plugin @kiwi-cam/homebridge-broadlink-rm-pro. This plugin configuration is through a JSON configuration and all the valid options can be checked in the official documentation.
The key part of the configuration is using the blaster to learn the hex codes for each instruction, which can be done through both Apple Home and Homebridge using the provided “Learn” switch. To do so,
This is an outline of my configuration:
{
"platform": "BroadlinkRM",
"name": "Broadlink RM",
"hideScanFrequencyButton": true,
"hideLearnButton": false,
"hideWelcomeMessage": true,
"hosts": [
{
"address": "192.168.1.XXX",
"mac": "00:00:00:00:00:01",
"isRFSupported": true,
"isRM4": true
}
],
"accessories": [
{
"name": "Air Conditioner (Office)",
"type": "heater-cooler",
"host": "00:00:00:00:00:01",
"minTemperature": 16,
"maxTemperature": 30,
"fanStepSize": 20,
"tempStepSize": 1,
"turnOnWhenOff": false,
"data": {
"heat": {
"on": "2600...",
"off": "2600...",
"temperatureCodes": {
"16": {
"rotationSpeed20": "2600...",
"rotationSpeed40": "2600...",
"rotationSpeed60": "2600...",
"rotationSpeed80": "2600...",
"rotationSpeed100": "2600..."
},
"17": {
"rotationSpeed20": "2600...",
"rotationSpeed40": "2600...",
"rotationSpeed60": "2600...",
"rotationSpeed80": "2600...",
"rotationSpeed100": "2600..."
},
// ...
"30": {
"rotationSpeed20": "2600...",
"rotationSpeed40": "2600...",
"rotationSpeed60": "2600...",
"rotationSpeed80": "2600...",
"rotationSpeed100": "2600..."
}
}
}
}
},
{
"name": "Learn (office)",
"type": "learn-code",
"host": "00:00:00:00:00:01"
}
]
}
Some important notes:
hosts entry and all their references in the devices are optional; if you are using a single IR blaster there is no need to define it and the auto-discover feature will sort it out for you.