Sonoff Touch Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
mayyam
Posts: 36
Joined: Saturday 14 January 2017 12:29
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Poland
Contact:

Re: Sonoff Touch

Post by mayyam » Tuesday 02 May 2017 22:40

Nice :)
Glad it's finally working.
_______________
- Raspberry Pi 2
- RFLink 433Mhz / NRF 2.4GHz
- different species of ESP

tontze
Posts: 231
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff Touch

Post by tontze » Saturday 06 May 2017 12:07

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 :)
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

Eddiever
Posts: 51
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post by Eddiever » Saturday 06 May 2017 12:19

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.
Last edited by Eddiever on Saturday 06 May 2017 12:28, edited 3 times in total.
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

tontze
Posts: 231
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff Touch

Post by tontze » Saturday 06 May 2017 12:24

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 ?
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

Eddiever
Posts: 51
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post by Eddiever » Saturday 06 May 2017 12:28

Looks fine to me. By the way my previous post has been edited with an extra link on how to solder
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

tontze
Posts: 231
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff Touch

Post by tontze » Saturday 06 May 2017 12:33

Nice, cant wait for my sonoff to arrive :P
Last edited by tontze on Monday 15 May 2017 18:50, edited 2 times in total.
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

mayyam
Posts: 36
Joined: Saturday 14 January 2017 12:29
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Poland
Contact:

Re: Sonoff Touch

Post by mayyam » Saturday 06 May 2017 16:24

Instead of solder, You can use pogo pins and do sort of flasher connector.
Last edited by mayyam on Saturday 06 May 2017 18:40, edited 1 time in total.
_______________
- Raspberry Pi 2
- RFLink 433Mhz / NRF 2.4GHz
- different species of ESP

Eddiever
Posts: 51
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post by Eddiever » Saturday 06 May 2017 16:49

Can you use that also to connect GPIO0 with ground (which is needed for flashing)?
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

mayyam
Posts: 36
Joined: Saturday 14 January 2017 12:29
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Poland
Contact:

Re: Sonoff Touch

Post by mayyam » Saturday 06 May 2017 18:37

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.
_______________
- Raspberry Pi 2
- RFLink 433Mhz / NRF 2.4GHz
- different species of ESP

tontze
Posts: 231
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff Touch

Post by tontze » Sunday 07 May 2017 8:23

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 ?
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

mayyam
Posts: 36
Joined: Saturday 14 January 2017 12:29
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Poland
Contact:

Re: Sonoff Touch

Post by mayyam » Sunday 07 May 2017 8:26

Yes, won't work constantly connected with my Sonoff Touch.
_______________
- Raspberry Pi 2
- RFLink 433Mhz / NRF 2.4GHz
- different species of ESP

tontze
Posts: 231
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff Touch

Post by tontze » Monday 15 May 2017 18:28

Thank you all, got it working :) Just one question, you have rules, where did you add them ?
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

Eddiever
Posts: 51
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post by Eddiever » Monday 15 May 2017 19:11

Hi tontze,
Great you have it working!. Rules need to be enabled. Do this by going to Tools -> Advanced. Then check the box Rules ;)
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

tontze
Posts: 231
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff Touch

Post by tontze » Monday 15 May 2017 19:33

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 ?
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

qwerk
Posts: 265
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi
Domoticz version: beta
Location: Netherlands
Contact:

Re: Sonoff Touch

Post by qwerk » Wednesday 17 May 2017 17:31

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.

User avatar
Westcott
Posts: 534
Joined: Tuesday 09 December 2014 18:04
Target OS: Raspberry Pi
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: Sonoff Touch

Post by Westcott » Wednesday 17 May 2017 17:51

Hi Qwerk,
Is 'button' a Sonoff device, perhaps GPIO0?
You can combine the first 2 lines of your rules -
on button#state=0 do
Zwave - Sigma Z+ stick, Fibaro 2x FGSD002, FGMS001, Horstmann - 2x HRT4, 2x C-stat-11,
4x ASR-ZW, Aeon Micro Switch, 2x TKB TZ68E
Max-EQ Cube, Valve
RFXtrx433E, RFlink - 1byone driveway, doorbell, Oregon and BangGood temp
Wifi - YeeLight RGB, 3x ESP8266

qwerk
Posts: 265
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi
Domoticz version: beta
Location: Netherlands
Contact:

Re: Sonoff Touch

Post by qwerk » Wednesday 17 May 2017 19:36

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

bryan241
Posts: 3
Joined: Tuesday 29 December 2015 16:06
Target OS: -
Domoticz version:
Contact:

Re: Sonoff Touch

Post by bryan241 » Monday 17 July 2017 14:17

Small hack to get control over the backlight for the touch button:
sonoff touch.jpg
sonoff touch.jpg (226.81 KiB) Viewed 554 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

tontze
Posts: 231
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sonoff Touch

Post by tontze » Wednesday 16 August 2017 6:45

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
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

Eddiever
Posts: 51
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post by Eddiever » Wednesday 16 August 2017 21:15

Do you also use the name state in the devices tab?
RPi 2B with Domoticz and cam module RPi 3 with cam module
1 rftxtrx433E module 1 solar-edge SE-3500
1 Sonoff Touch 3 Sonoff wifi swithes 6 kaku modules

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests