Page 3 of 3

Re: Sonoff Touch

Posted: Friday 18 August 2017 15:59
by tontze
Eddiever wrote: Wednesday 16 August 2017 21:15 Do you also use the name state in the devices tab?
I have 2 devices :

Re: Sonoff Touch

Posted: Friday 18 August 2017 16:18
by Eddiever
Try to change the name Sonoff 2 to button.

Re: Sonoff Touch

Posted: Sunday 03 September 2017 7:38
by tontze
Eddiever wrote: Friday 18 August 2017 16:18 Try to change the name Sonoff 2 to button.
Thnx ! that did it !

Re: Sonoff Touch

Posted: Monday 11 September 2017 10:48
by iLLiac4
There is one problem. I want the code/rule to change the status of touch also if the relay status changes to the same status as relay is in.
This is because if you remote execute the code:
http://ip/control?cmd=GPIO,12,0
Only the status of the relay changeses. The status of the touch stays in this case 1. So this causes the problem that the touch button has to be press twice; first will not react because it will only change the status to the same one as the relay is and the second press will then eventually turn on or off the light.

The rules i have are:

Code: Select all

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

on relay#switch do
if [relay#switch]=1 do
gpio,13,1
inputswitchstate 0,1
else
gpio,13,0
inputswitchstate 0,0
endif
endon
P.S.:
The above code is fixed now and it works with refreshing also the touch state.

How can i achive that the touch status will always be the same as the relay one.

Re: Sonoff Touch

Posted: Friday 10 November 2017 18:07
by Eawo
I just got my first sonoff touch I've been using the sonoff relay for lamp and stuff before.
After I flashed it with espeasy and installed it. It won't start and show up on wifi.
I think first time I powered it it flashed up in wifi but I'm not sure.
I have flashed it again and again but it won't work... I've checked the voltage and stuff and it getting 3.3v. It working well to flash no errors so I don't think it's broken


Edit: I did not know that it was a esp8285 I had and I tried flash it a few times with latest espeasy 2.0 dev12 in arduino as esp8285 but it did not work. It showed up in wifi as esp_Deaprh or something without password.

What I did was flash with old firmware I found that someone said was compiled and u used the espeasy flasher. Now everythings works great. But I'm not on the latest version

Re: Sonoff Touch

Posted: Friday 17 November 2017 13:25
by gajotnt
I really recomend using Tasmota firmware with the Touch and other sonoff devices, works really good with mqtt and domoticz

https://github.com/arendst/Sonoff-Tasmota

Re: Sonoff Touch

Posted: Friday 17 November 2017 17:24
by Eawo
gajotnt wrote:I really recomend using Tasmota firmware with the Touch and other sonoff devices, works really good with mqtt and domoticz

https://github.com/arendst/Sonoff-Tasmota
I tried that first and followed
YouTube video but I was only getting errors not sure why. But now then I have been using easyesp I start to like it

Re: Sonoff Touch

Posted: Friday 17 November 2017 20:37
by gajotnt
Never tried espeasy with mqtt but surelly its fast too

Re: Sonoff Touch

Posted: Sunday 04 March 2018 11:30
by Eddiever
I don't know if I am the only one but this switch has died on me two times! I had to replace the programmable part of the switch to get it to work again!