mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
19 lines
335 B
YAML
19 lines
335 B
YAML
uart:
|
|
- id: uart_modbus
|
|
tx_pin: 17
|
|
rx_pin: 16
|
|
baud_rate: 9600
|
|
|
|
modbus:
|
|
id: mod_bus1
|
|
flow_control_pin: 15
|
|
|
|
modbus_controller:
|
|
- id: modbus_controller1
|
|
address: 0x2
|
|
modbus_id: mod_bus1
|
|
allow_duplicate_commands: true
|
|
on_offline:
|
|
then:
|
|
logger.log: "Module Offline"
|
|
max_cmd_retries: 10
|