Lilygo ESP32 reading Solis modbus

Hi folks,
I'm currently attempting to read modbus from a solis S5 inverter. I'm using a Lilygo ESP32 CAN RS485. I have sanity checked the modbus parameters on the inverter. Baud rate, parity, stop bits, slave address and believe I have them right. I have tried numerous yaml configurations and always with A/B swapped as well. But I haven't had any luck. Does anything jump out in the yaml as incorrect?

esphome:
  name: inverter-modbus
  friendly_name: Inverter Modbus
  on_boot:
    priority: 800
    then:
      - output.turn_on: rs485_se

output:
  - platform: gpio
    pin: GPIO19
    id: rs485_se

    
esp32:
  board: esp32dev
  framework:
    type: esp-idf

# Enable logging
logger:
  level: DEBUG
  logs:
    modbus: DEBUG
    modbus_controller: DEBUG

# Enable Home Assistant API
api:
  encryption:
    key: ****

ota:
  - platform: esphome
    password: ***

wifi:
  ssid: ***
  password: ***

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Inverter-Modbus Fallback Hotspot"
    password: ***

captive_portal:

uart:
  id: mod_uart
  tx_pin: GPIO22
  rx_pin: GPIO21
  baud_rate: 9600
  data_bits: 8
  parity: NONE
  stop_bits: 1

modbus:
  id: modbus1
  uart_id: mod_uart
  flow_control_pin: GPIO17
  send_wait_time: 1000ms

modbus_controller:
  - id: solis
    address: 0x01
    modbus_id: modbus1
    setup_priority: -10
    update_interval: 30s

sensor:
  - platform: modbus_controller
    modbus_controller_id: solis
    name: "Solis Temperature"
    register_type: read
    address: 3041
    value_type: U_WORD`

I have never used that board, but I think you should remove the flow control lines from modbus component and put both gpio17/19 to high state.
For example:

switch:
  - platform: gpio
    name: "RS485 RE"
    pin: GPIO17
    restore_mode: RESTORE_DEFAULT_ON

  - platform: gpio
    name: "RS485 SHDN"
    pin: GPIO19
    restore_mode: RESTORE_DEFAULT_ON

Edit: I now saw you already had SHDN on_boot automation, you can try similarly with RE

Try something like this

uart:

  id: modbus_serial
  rx_pin:
    number: 4
    mode:
      input: true
      pullup: true
  tx_pin: 5
  baud_rate: 9600
  stop_bits: 1

Thanks to both for replying, I have tried both with no success. I have ordered a USB to modbus adapter to see if I can read it direct from the laptop. I should add, the response I get. See attached.