ESPHome Sonoff dual

At the moment i own a Sonoff dual running ESPeasy using some extra plug-in because of the serial chip on this (older) version .
The Sonoff uses this plugin : ESPeasy forum

When i have a look at the ESPhome website it tells me that i must use the GPIO ports, but is there a way to talk/ use the serial port on this Sonoff dual together with ESPhome ?

googled around, and found this : Github
, so i tried this , what makes my config :

esphome:
  name: sonoff_dual_garage
  platform: ESP8266
  board: esp01_1m

wifi:
  ssid: "xx"
  password: "xxxx"
  fast_connect: true

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

uart:
  tx_pin: GPIO01
  rx_pin: GPIO03
  baud_rate: 19200

switch:
  - platform: uart
    id: relay_12_off
    data: [0xA0, 0x04, 0x00, 0xA1]
    
  - platform: uart
    id: relay_1_on
    data: [0xA0, 0x04, 0x01, 0xA1]
    
  - platform: uart
    id: relay_2_on
    data: [0xA0, 0x04, 0x02, 0xA1]
    
  - platform: uart
    id: relay_12_on
    data: [0xA0, 0x04, 0x03, 0xA1]
    
  - platform: template
    id: relay1
    name: "Garage_relais1"
    turn_on_action:
      if:
        condition:
          switch.is_off: relay2
        then:
          - switch.turn_on: relay_1_on
        else:
          - switch.turn_on: relay_12_on
    turn_off_action:
      if:
        condition:
          switch.is_off: relay2
        then:
          - switch.turn_on: relay_12_off
        else:
          - switch.turn_on: relay_2_on
    optimistic: true
        
  - platform: template
    id: relay2
    name: "Garage_relais2"
    turn_on_action:
      if:
        condition:
          switch.is_off: relay1
        then:
          - switch.turn_on: relay_2_on
        else:
          - switch.turn_on: relay_12_on
    turn_off_action:
      if:
        condition:
          switch.is_off: relay1
        then:
          - switch.turn_on: relay_12_off
        else:
          - switch.turn_on: relay_1_on
    optimistic: true
  
status_led:
  pin:
    number: GPIO13
    inverted: yes
  
# Example configuration entry
web_server:
  port: 80

  

Flash this tomorrow and hope solves this