Page 2 of 3

Re: Sonoff Touch

Posted: Tuesday 02 May 2017 22:40
by mayyam
Nice :)
Glad it's finally working.

Re: Sonoff Touch

Posted: Saturday 06 May 2017 12:07
by tontze
Eddiever wrote:I have a Sonoff Touch wall switch. I would like to change it's firmware through ESP Easy. I have been searching but haven't found the right firmware. Due to the fact it is using the 8285 chip instead of 8266.

Does anyone have a suggestion?
Im very new on this esp stuff, can you tell me what hardware and how did you flash it, i have few of these sonoff touches coming :) I have done lots of googleing, and have some sort off idea how to do it, but none have been guide for this sonoff touch :)

Re: Sonoff Touch

Posted: Saturday 06 May 2017 12:19
by Eddiever
Hi Tontze,

I am also very new to this but I will try to help you.

First I used this Youtube video on how to flash. This is about flashing the Sonoff wifi Switch but the basics is the same:
[youtube]https://youtu.be/fN_QKOWvG1s?list=FLEM2 ... sQ8L11mk9w[/youtube]

I used a TTL USB device, bought it from Aliexpress TTL + USB - TTL

But instead of flashing like Youtube you need to use the links provided by mayyam in this thread. Also you need to solder (with steady hands).

Click here to see how to solder.You do need to connect GPIO0 pin to GND to program. This connection can be on during programming.

Re: Sonoff Touch

Posted: Saturday 06 May 2017 12:24
by tontze
Eddiever wrote:Hi Tontze,

I am also very new to this but I will try to help you.

First I used this Youtube video on how to flash. This is about flashing the Sonoff wifi Switch but the basics is the same:
[youtube]https://youtu.be/fN_QKOWvG1s?list=FLEM2 ... sQ8L11mk9w[/youtube]

I used a TTL USB device, bought it from Aliexpress TTL + USB - TTL

But instead of flashing like Youtube you need to use the links provided by mayyam in this thread. Also you need to solder (with steady hands).
Ok cool thanx, i do have one of these coming : http://www.ebay.com/itm/USB2-0-To-TTL-S ... SwBLlU7t8J

Would it work with this ?

Re: Sonoff Touch

Posted: Saturday 06 May 2017 12:28
by Eddiever
Looks fine to me. By the way my previous post has been edited with an extra link on how to solder

Re: Sonoff Touch

Posted: Saturday 06 May 2017 12:33
by tontze
Nice, cant wait for my sonoff to arrive :P

Re: Sonoff Touch

Posted: Saturday 06 May 2017 16:24
by mayyam
Instead of solder, You can use pogo pins and do sort of flasher connector.

Re: Sonoff Touch

Posted: Saturday 06 May 2017 16:49
by Eddiever
Can you use that also to connect GPIO0 with ground (which is needed for flashing)?

Re: Sonoff Touch

Posted: Saturday 06 May 2017 18:37
by mayyam
I don't think so. Of course You can touch another (5) to GPIO0, but You have to break the connection after power on. So better use second hand with pin for that.
I've ordered those pins to do my flasher - https://pl.aliexpress.com/item/100pcs-s ... 0.0.3XBYZD
I have about 30 different ESPs (Sonoffs and bare bone ESPs)to flash, so soldering is not an option for me.

Re: Sonoff Touch

Posted: Sunday 07 May 2017 8:23
by tontze
mayyam wrote:I don't think so. Of course You can touch another (5) to GPIO0, but You have to break the connection after power on. So better use second hand with pin for that.
I've ordered those pins to do my flasher - https://pl.aliexpress.com/item/100pcs-s ... 0.0.3XBYZD
I have about 30 different ESPs (Sonoffs and bare bone ESPs)to flash, so soldering is not an option for me.
So its needed to ground gpio0 only when esp is booting to get it programming mode ?

Re: Sonoff Touch

Posted: Sunday 07 May 2017 8:26
by mayyam
Yes, won't work constantly connected with my Sonoff Touch.

Re: Sonoff Touch

Posted: Monday 15 May 2017 18:28
by tontze
Thank you all, got it working :) Just one question, you have rules, where did you add them ?

Re: Sonoff Touch

Posted: Monday 15 May 2017 19:11
by Eddiever
Hi tontze,
Great you have it working!. Rules need to be enabled. Do this by going to Tools -> Advanced. Then check the box Rules ;)

Re: Sonoff Touch

Posted: Monday 15 May 2017 19:33
by tontze
Eddiever wrote:Hi tontze,
Great you have it working!. Rules need to be enabled. Do this by going to Tools -> Advanced. Then check the box Rules ;)
Thanx :)

Do you know if there is a way to reverse blue background led ?

Re: Sonoff Touch

Posted: Wednesday 17 May 2017 17:31
by qwerk
Hi,

I have it working the switch <> domoticz

but no wifi light.
I assume that gpio 12 is the switch for the lamp.
but I also gpio 0 and 13 in this topic.
what is what?

I tried this script,

on button#state do
if [button#state]=1
gpio,12,1
gpio,13,0
endif
endon

on button#state do
if [button#state]=0
gpio,12,0
gpio,13,1
endif
endon

but then my light constantly going on and off ( yes according to the name it should :D )
but that is not what I want.
wifi light on when switched light is off and in reverse.

Re: Sonoff Touch

Posted: Wednesday 17 May 2017 17:51
by Westcott
Hi Qwerk,
Is 'button' a Sonoff device, perhaps GPIO0?
You can combine the first 2 lines of your rules -
on button#state=0 do

Re: Sonoff Touch

Posted: Wednesday 17 May 2017 19:36
by qwerk
Westcott wrote:Hi Qwerk,
Is 'button' a Sonoff device, perhaps GPIO0?
You can combine the first 2 lines of your rules -
on button#state=0 do

my problem was some much more simpler .
I used the rules as found in this topic. but I was dutch enough to rename button to schakelaar and state to status.

so it would never work.
now it does. I just have to read ........
thanks your answer set me in the right direction

Re: Sonoff Touch

Posted: Monday 17 July 2017 14:17
by bryan241
Small hack to get control over the backlight for the touch button:
sonoff touch.jpg
sonoff touch.jpg (226.81 KiB) Viewed 4074 times
Cut the copper between resistor 102 and pin 'Relay'.
Connect a wire from the cut off resistor to the esp. You can use several GPIO ports, but I used GPIO 9.

In the picture, the background led is now connected to GPIO 9 (pin 4 from bottom of the 8285 as seen in this picture).

Regards,

Bryan

Re: Sonoff Touch

Posted: Wednesday 16 August 2017 6:45
by tontze
I noticed that my sonoff touch does not change state if domoticz & rflink is down .. Can this be changed ? I have these rules :

Code: Select all

on System#Boot do
    gpio,12,1
    timerSet,1,1
  endif
endon

on Rules#Timer=1 do
    gpio,12,0
endon

on button#state do
  if [button#state]=1
    gpio,12,1
    gpio,13,0
    endif
endon

on button#state do
  if [button#state]=0
    gpio,12,0
    gpio13,1
    endif
endon

Re: Sonoff Touch

Posted: Wednesday 16 August 2017 21:15
by Eddiever
Do you also use the name state in the devices tab?