mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-08 20:18:59 +00:00
932 B
932 B
layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_category | ha_release |
---|---|---|---|---|---|---|---|---|---|---|
page | Modbus Switch | Instructions how to integrate Modbus switches into Home Assistant. | 2015-08-30 23:38 | true | false | true | true | modbus.png | Switch | pre 0.7 |
The modbus
switch platform allows you to control Modbus coils.
To use your Modbus switches in your installation, add the following to your configuration.yaml
file:
# Example configuration.yml entry
switch:
platform: modbus
slave: 1
coils:
- name: Switch1
slave: 1
coil: 13
- name: Switch2
slave: 2
coil: 14
Configuration variables:
- coils (Optional): A list of relevant coils to read from/write to
- slave (Required): The number of the slave (can be omitted for tcp and udp Modbus).
- name (Required): Name of the sensor
- coil (Required): Coil number