MODBUS help needed - Ampinvt solar controller to Home Assistant via ESPhome

You can use interval: and uart.write.

Once you have response in log,

adapt the other topic solution:

The main difference, you need active requests.

# Example configuration entry
interval:
  - interval: 1min
    then:
      - switch.toggle: relay_1