Sonoff Touch

elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

Added double click for direct link.

in WiFiConfig add the direct links in this format:

Code: Select all

/direct/xx/xxxxxxxxx/toggle
with a double press of the touch the corresponding direct link is sent, the single press continues to control the relay as before.
so for example with a sonoff basic we can control the relay with a single click or send direct link with a double click.

supla_Touch_Dlink_Json6_DOUT_8Mbit.rar
(377.22 KiB) Downloaded 117 times
User avatar
ritual
Posts: 80
Joined: Mon Apr 20, 2020 11:47 am

elmaya wrote: Tue Sep 01, 2020 10:25 am Added double click for direct link.

in WiFiConfig add the direct links in this format:

Code: Select all

/direct/xx/xxxxxxxxx/toggle
with a double press of the touch the corresponding direct link is sent, the single press continues to control the relay as before.
so for example with a sonoff basic we can control the relay with a single click or send direct link with a double click.


supla_Touch_Dlink_B_DOUT_8Mbit.rar
This is genius.
miko1282
Posts: 538
Joined: Wed Dec 06, 2017 10:15 pm
Location: Brodnica

:lol: How does it work ? Inthe application, only turn off and turn on and that's it
wsosniak
Posts: 718
Joined: Sat Jun 02, 2018 8:02 am

@elmaya - it would be a perfect to have a possibility to start this links (urls), not only supla direct links , but the public links from https://supla.fracz.com too. Par example to start urls in format :

SERVER: https://supla.fracz.com
LINK: /api/scenes/public/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

:)
Last edited by wsosniak on Sat Dec 26, 2020 3:47 pm, edited 1 time in total.
elmaya
Posts: 1482
Joined: Wed Jun 27, 2018 5:48 pm
Location: El Saucejo - Sevilla

miko1282 wrote: Sat Dec 26, 2020 11:15 am :lol: How does it work ? Inthe application, only turn off and turn on and that's it
I assume you mean the version with direclink.
From the App it is the same, you control the module's relays but by double clicking on the module touch you send the corresponding directlink to control another device.
Post Reply

Return to “Ideas and concepts”