I was able to flash ESPHome on a Sonoff Tx 3 gang touch wall switch. It has an ESP8285 chip. The board name is T0US Touch 1.0 - 2018.11.15.
I followed the Sonoff-T1/T2/T3/TX instructions for Tasmota, shorting R19 to GND to enter flash mode. The UK version of the file is here for the T1/T2/T3. The GPIO pins are the same in both.
The below configuration file is working for the TX/T0US, with the exception of OTA updates.
esphome:
name: sonoff-tx
friendly_name: Sonoff Tx T0US Touch
esp8266:
board: esp01_1m
api:
ota:
- platform: esphome
logger:
wifi:
ssid: "wifi_network"
password: "wifi_password"
fast_connect: true
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode:
input: true
pullup: true
inverted: true
id: button_1
on_press:
then:
- light.toggle: light_1
- platform: gpio
pin:
number: GPIO9
mode:
input: true
pullup: true
inverted: true
id: button_2
on_press:
then:
- light.toggle: light_2
- platform: gpio
pin:
number: GPIO10
mode:
input: true
pullup: true
inverted: true
id: button_3
on_press:
then:
- light.toggle: light_3
- platform: status
name: "TX Status"
output:
- platform: gpio
pin: GPIO12
id: relay_1
- platform: gpio
pin: GPIO5
id: relay_2
- platform: gpio
pin: GPIO4
id: relay_3
light:
- platform: binary
name: "TX L1"
id: light_1
output: relay_1
- platform: binary
name: "TX L2"
id: light_2
output: relay_2
- platform: binary
name: "TX L3"
id: light_3
output: relay_3
status_led:
pin:
number: GPIO13
inverted: yes