homebridge-hdl-buspro
is a homebridge plugin to control your devices on the HDL Buspro buses from Home app on iOS. It currently supports the following types of devices:
- Relay Lightbulbs
- Relay Dimmable Lightbulbs
- Sensors 8 in 1 (dry contacts not supported yet)
- Dry contact relays (leak and contact sensors)
- Relay locks
- Relay curtains (including custon valve usage)
Heaters and security systems will be supported in later versions, as well as more types of dry contact sensors.
If you are new to homebridge, please first read the homebridge documentation. If you are running on a Raspberry, you will find a tutorial in the homebridge wiki.
Install homebridge:
sudo npm install -g homebridge
Install homebridge-hdl-buspro:
sudo npm install -g homebridge-hdl-buspro
Add the HDLBusproHomebridge
platform in config.json
in your home directory inside .homebridge
.
This plugin cannot discover devices on its own, for this you should use software like HDL Buspro setup tool v2 (you can download it here). Use it to get info on your bus ip, port, its subnets, devices and all separate channels on relays to use these numbers in config with your custom names. You should also give a number for a virtual device on each subnet that will be used by plugin to send and receive commands and data on behalf of this plugin. Just choose whatever number is not occupied by other devices.
Typical HDL structure goes like this: bus-subnet-device-channel
Example configuration:
{
"buses": [
"bus_name": "Main Bus",
"bus_IP": "10.0.0.1",
"bus_port": 6000
{
"subnets": [
{
"subnet_number": 1,
"cd_number": 55,
"devices": [
{
"device_name": "Living room lights",
"device_address": 13,
"device_type": "relaylightbulb",
"channel": 4
},
{
"device_name": "Dining room sensor",
"device_address": 21,
"device_type": "sensor8in1"
},
{
"device_name": "Bathroom leak sensor",
"device_address": 69,
"device_type": "drycontact",
"area": 1,
"channel": 1,
"drycontact_type": "leaksensor",
"nc": false
},
{
"device_name": "Garden backdoor",
"device_address": 6,
"device_type": "relaylock",
"channel": 2,
"nc": true
}
]
}
]
}
],
"platform": "HDLBusproHomebridge"
},
platform
[required] Should always be "HDLBusproHomebridge".buses
[required] A list of your buses
bus_name
[required] Name of your bus.bus_ip
[required] ip address of your busport
[required] port of your bussubnets
[required] A list of subnets on this bus
subnet_number
[required] Separate number for each subnetcd_number
[required] Any unoccupied number on subnet to control your devices fromdevices
[optional] Add all devices on subnet you need
device_name
[optional] Your custom name for device, will be shown in Home app by defaultdevice_address
[required] Number of device in subnetdevice_type
[required] Specify the type of device- Available values:
- "relaylightbulb" - relay lights
- "relaydimmablelightbulb" - relay dimmable lights
- "sensor8in1" - multisensor
- "relaylock" - custom use of light relay to control a lock
- "drycontact" - dry contact relay
- "relaycurtains" - relay curtains (have to be calibrated in HDL)
- "relaycurtainvalve" - custom usage of curtains relay to control a water valve
- Available values:
channel
[optional] Specify channel for a specific light group, curtains or dry contact of relayarea
[optional] Needed for some dry contact relaysnc
[required] You can flip the logic of dry contact relay or lock with this parameterdrycontact_type
[required] Specify what your dry contact sensor does- Available values:
- "leaksensor" - leak sensor
- "contactsensor" - contact sensor
- Available values:
lock_timeout
[required] An option to close lock automatically after specified time. Default is 0, which is usual lock behaviorduration
[required] HDL can only control partial curtain opening by timer, so you have to calibrate how long it takes to fully open curtain, put this value to HDL and copy it here to avoid misalignmentcurtains_precision
[required] Due to a lag between HDL and HB curtain timers there has to be some precision offset, or it might get bugged in "opening" status. Increase this value if you encounter it.valvetype
[required] You can choose 4 valve types: "General Valve", "Irrigation", "Shower Head", "Water Faucet".
If you have any issues with the plugin then you can run homebridge in debug mode, which will provide some additional information. This might be useful for debugging issues.
Please keep in mind that I could only test how plugin works on devices I have at home, and some devices were coded only based on documentation. So feel free to open issues here if you encounter problems/need your device supported!
Homebridge debug mode:
homebridge -D
caligo-mentis for his great work on Node.js remote control module for HDL Buspro.