DoubleClick- and Longpress-Issue with Sonoff Touch T1

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tpuhe
Normal user
Posts: 4
Joined: 28 Oct 2019, 11:15

DoubleClick- and Longpress-Issue with Sonoff Touch T1

#1 Post by tpuhe » 28 Oct 2019, 12:08

Hi everybody,

I face an issue with Sonoff Touch T1 ESPEasy (mega-20191003) with the doubleklick-/longpress-function. When trying to use that function, it always triggers both funtions shortpress and either doubleclick or longpress! The log looks like this:

Doubleclick:

Code: Select all

840605255: SW  : GPIO=0 State=1 Output value=1
840605257: EVENT: Touch#State=1.00
840605297: ACT  : gpio,12,1
840605300: SW   : GPIO 12 Set to 1
840605335: SW  : GPIO=12 State=1 Output value=1
840605343: EVENT: Relay#State=1.00
840605364: ACT  : gpio,13,1
840605367: SW   : GPIO 13 Set to 1
840605453: SW  : GPIO=0 State=1 Doubleclick=3
840605455: EVENT: Touch#State=3.00
Longpress:

Code: Select all

840610753: SW  : GPIO=0 State=1 Output value=1
840610755: EVENT: Touch#State=1.00
840610789: ACT  : gpio,12,0
840610793: SW   : GPIO 12 Set to 0
840610835: SW  : GPIO=12 State=0 Output value=0
840610843: EVENT: Relay#State=0.00
840610869: ACT  : gpio,13,0
840610872: SW   : GPIO 13 Set to 0
840611753: SW  : LongPress: GPIO= 0 State=1 Output value=11
840611760: EVENT: Touch#State=11.00
Any suggestions? Do I get something wrong?

Thanks in advance

Tobias

TD-er
Core team member
Posts: 1808
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DoubleClick- and Longpress-Issue with Sonoff Touch T1

#2 Post by TD-er » 28 Oct 2019, 13:16

Hmm does look like at least counter-intuitive, maybe a bug.
What I also don't like is that the state apparently is written as a float value.

Can you try the most recent build (just finished, so cannot call it a 'nightly' build ;) ), since I did fix a lot of stuff related to parsing arguments.

If it is still an issue, please create an issue about it on Github.

tpuhe
Normal user
Posts: 4
Joined: 28 Oct 2019, 11:15

Re: DoubleClick- and Longpress-Issue with Sonoff Touch T1

#3 Post by tpuhe » 28 Oct 2019, 15:00

Hey, thanks for the quick reply!

Sure! Will test it within the next days!

tpuhe
Normal user
Posts: 4
Joined: 28 Oct 2019, 11:15

Re: DoubleClick- and Longpress-Issue with Sonoff Touch T1

#4 Post by tpuhe » 28 Oct 2019, 17:29

OK, I testet with todays version, same effect:

Long:

Code: Select all

115896: SW : GPIO=0 State=1 Output value=0
115898: EVENT: Touch#State=0.00
115942: ACT : gpio,12,1
115947: SW : GPIO 12 Set to 1
115983: SW : GPIO=12 State=1 Output value=1
115991: EVENT: Relay#State=1.00
116013: ACT : gpio,13,1
116017: SW : GPIO 13 Set to 1
116898: SW : LongPress: GPIO= 0 State=1 Output value=11
116909: EVENT: Touch#State=11.00
Double

Code: Select all

207621: SW : GPIO=0 State=1 Output value=1
207624: EVENT: Touch#State=1.00
207662: ACT : gpio,12,0
207666: SW : GPIO 12 Set to 0
207709: SW : GPIO=12 State=0 Output value=0
207717: EVENT: Relay#State=0.00
207744: ACT : gpio,13,0
207749: SW : GPIO 13 Set to 0
207823: SW : GPIO=0 State=1 Doubleclick=3
207825: EVENT: Touch#State=3.00
208920: SW : LongPress: GPIO= 0 State=1 Output value=11
208922: EVENT: Touch#State=11.00
For any reason there is a long press event at the end of DoubleClick-action.

So I open a issue at Github?

Thanks

Tobias

TD-er
Core team member
Posts: 1808
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: DoubleClick- and Longpress-Issue with Sonoff Touch T1

#5 Post by TD-er » 28 Oct 2019, 18:30

Yes, please do.
Then the author of the double-click event stuff will probably also have a look at it :)

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests