Page 1 of 1

sonoff t1eu2c how to config

Posted: 07 Mar 2019, 17:57
by goofas
Hi im new with easpeasy ;)
i just get my first sonoff touch t1eu2c flashed with espeasy (after "some" time) but now i dont know how to configure hardware/devices.
I found rules for sonofo basic etc but can someone help me with touch 2c ? i don't know how to set up buttons and relays :( which gpio should i use ?

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 18:31
by grovkillen
https://www.letscontrolit.com/wiki/inde ... noff_Touch

That's the 1-button version. Use that guide and see where it gets you.

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 18:56
by goofas
i found that gpio9 is switch2 gpio5 i relay2 gpio12 is relay1 13 is wifi led... i cant find switch1 gpio :/

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 19:21
by grovkillen
2ch
Switch1: GPIO-0
Switch2: GPIO-9
Relay1: GPIO-12
Relay2: GPIO-5
LED: GPIO-13

3ch
Switch1: GPIO-0
Switch2: GPIO-9
Switch 3: GPIO-10
Relay1: GPIO-12
Relay2: GPIO-5
Relay3: GPIO-4
LED: GPIO-13

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 19:35
by goofas
i found that before but cant set up like this
if i use http://192.168.100.203/control?cmd=GPIO,1,1 then it turn on again http://192.168.100.203/control?cmd=GPIO,1,1 turn it off, ok it depends if i check internal pull up but cant change state with touch

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 19:44
by grovkillen
Why are you trying to set GPIO 1 to high?

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 20:18
by goofas
just try everything ;) im new

https://ibb.co/CVLbDJF
https://ibb.co/cNBZRn6

rule1:
on touch2#switch2 do
if [touch2#switch2]=1
gpio,5,1
else
gpio,5,0
endif
endon

rule2:
on touch#switch do
if [touch#switch]=1
gpio,12,1
else
gpio,12,0
endif
endon


its my second day with sonoff and esp easy and i think its not so easy for me ;)

the same if i set button to gpio1

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 20:45
by grovkillen
Have you set the switch to "normal switch"?

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 21:08
by goofas
yes and activate low too, just wonder is it ok that after gpio-d3 i see "!"

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 21:13
by grovkillen
In the screenshot you have not set it to "normal switch"...

Re: sonoff t1eu2c how to config

Posted: 07 Mar 2019, 21:37
by goofas
no but i checked all options. even if i use factory reset with predefined config for toucz t2, buttond one dont wanna to work :/

ps if i take wire and shorcut gnd to gpio0 (r19) then switch change state and i can see it on log

Re: sonoff t1eu2c how to config

Posted: 08 Mar 2019, 19:15
by goofas
is there a way to check button ? when i hold it i hear "bip" but i tested tasmota and ther button1 doeasnt work too. i dont have backup of oryginal software so i cant check it :(