Modbus is a serial communication protocol to control PLCs. It currently supports sensors and switches which can be controlled over serial, TCP and UDP connections.
# Example configuration.yaml entrymodbus:type:serialmethod:rtuport:/dev/ttyUSB0baudrate:9600stopbits:1bytesize:8parity:Nsensor:platform:modbusslave:1registers:16:name:My integer sensorunit:C24:bits:0:name:My boolean sensor2:name:My other boolean sensorswitch:platform:modbusslave:1registers:24:bits:0:name:My switch2:name:My other switch