Sonoff Tx T3 us yaml code for a double click button esphome

Hi.

First, format your post correctly. Any yaml needs to be in preformatted text tags, shown as </> on the posting toolbar. Also read topic 11 of the pinned post: How to help us help you - or How to ask a good question

I would also start by having a fiddle with the min_length: and max_length: values, maybe the defaults are too long or short.

binary_sensor:
  - platform: gpio
    # ...
    on_double_click:
      min_length: 50ms
      max_length: 350ms
      then: ...