1.0.3 • Published 6 months ago
homebridge-modbus-relay v1.0.3
homebridge-modbus-relay
Control Waveshare Modbus 8-ch Ethernet Relay Module Card with Homebridge
homebridge-modbus-relay
This is a waveshare modbus relais card plugin for homebridge that features setting every relais on or off or an auto toggle/switch-off after setable time (for garage opener or stairs light. You can download it via npm.
Feel free to leave any feedback here.
Features
- see status of every configured relais
- sert every relay status on or off
- reconnects websocket connections
Installation
- Install homebridge using:
npm install -g homebridge
- Install this plugin using:
npm install -g homebrigde-modbus-relay
Note: The installation might take 1 minute. - Configure via the plugin
homebridge-config-ui-x
or update your configuration file manually. See the explanation and sample below.
Configuration
Below are example configuration for 2 relais.
Example
"accessories": [
{
"accessory": "ModbusRelay",
"name": "Relay 1",
"ip": "192.168.0.200",
"port": 4196,
"relay": 0,
"mode": "switch"
},
{
"accessory": "ModbusRelay",
"name": "Relay 2 Garage Opener",
"ip": "192.168.0.200",
"port": 4196,
"relay": 1,
"mode": "auto-off",
"autoOffDelay": 1000
}
]
Example Use Cases
- Switch on a light or other devices connected to te relay.
- trigger a garage door or a stair light with a toggle.