I’m not aware of an option to get a double touch signal from Sonoff Touch, but of course you can detect ON/OFF duration. If position lasts less than a Second, detect it as a double touch, if position lasts more than a Second, detect a single touch. Makes only sense if not using the relay
I got it working. I created a mqtt device with the double tap mqtt topic and a string value. So is not a Classic on/off switch. It just gets a string with the value TOGGLE from the sonoff.
Perfect. This was the last thing that i have to do for the change from fhem to openhab2.