#24942·Tasmota

Universal touch driver GT911 example reports both 'touch down' and 'touch release' as 'touch down'

Author: LesNewellCreated Aug 5, 2026Updated Aug 30, 2026

PROBLEM DESCRIPTION

The GT911 examples in the documentation reads address 8140 and checks the upper nibble is 8 (touch). However it ignores the lower nibble (number of touch points). On release the GT911 reports touch with no points. As the example is written this is still interpreted as touch down. The end result is that Tasmota's touch up event triggers some time after the screen is released, making buttons for instance sluggish to respond.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • [ x] Read the Contributing Guide and Policy and the Code of Conduct
  • [ x] Searched the problem in issues
  • [ x] Searched the problem in discussions
  • [x ] Searched the problem in the docs
  • [x ] Searched the problem in the chat
  • [ x] Problem is not scripter related, in this case open a discussion and tag gemu2015
  • [ x] Device used (e.g., Sonoff Basic): Any board using GT911 touch
  • Tasmota binary firmware version number used: _____
    • Pre-compiled
    • Self-compiled
  • Flashing tools used: _____
  • Provide the output of command: Backlog Template; Module; GPIO 255:
lua
  Configuration output here:

  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
lua
  Rules output here:

  • Provide the output of this command: Status 0:
lua
  STATUS 0 output here:

  • Set weblog to 4 and then, when you experience your issue, provide the output of the Console log:
lua
  Console output here:

TO REPRODUCE

Use this debug UTT section of the code: :UTT RDW 814E MV 0 1 DBG 1 AND 80 CPR 80 RTF DBG 2 RDWM 8150 8 WRW 814E 00 DBG 3 RT

the result will be something like this: 10:43:29.359 UTDBG 1: 81 : 81,02,51,00 10:43:29.359 UTDBG 2: 01 : 81,02,51,00 10:43:29.361 UTDBG 3: 01 : 53,02,51,00 10:43:29.459 UTDBG 1: 81 : 81,02,51,00 10:43:29.459 UTDBG 2: 01 : 81,02,51,00 10:43:29.461 UTDBG 3: 01 : 53,02,51,00 10:43:29.560 UTDBG 1: 81 : 81,02,51,00 10:43:29.560 UTDBG 2: 01 : 81,02,51,00 10:43:29.562 UTDBG 3: 01 : 53,02,51,00 10:43:29.660 UTDBG 1: 80 : 80,02,51,00 10:43:29.660 UTDBG 2: 01 : 80,02,51,00 10:43:29.662 UTDBG 3: 01 : 53,02,51,00

EXPECTED BEHAVIOUR

Touch release should be handled correctly.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

This code returns false when the screen is released: :UTT RDW 814E MV 0 1 AND 80 CPR 80 RTF MV 0 1 AND 0F RDWM 8150 8 WRW 814E 00 RT

(Please, remember to close the issue when the problem has been addressed)