Modbus Switch


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