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.

Moderators: leecollings, remb0

mayyam
Posts: 47
Joined: Saturday 14 January 2017 11:29
Target OS: Linux
Domoticz version: 4.11333
Location: Poland
Contact:

Re: Sonoff Touch

Post by mayyam »

Nice :)
Glad it's finally working.
_______________
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Sonoff Touch

Post 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 :)
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post 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.
Last edited by Eddiever on Saturday 06 May 2017 12:28, edited 3 times in total.
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Sonoff Touch

Post 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 ?
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post by Eddiever »

Looks fine to me. By the way my previous post has been edited with an extra link on how to solder
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Sonoff Touch

Post by tontze »

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.
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
mayyam
Posts: 47
Joined: Saturday 14 January 2017 11:29
Target OS: Linux
Domoticz version: 4.11333
Location: Poland
Contact:

Re: Sonoff Touch

Post by mayyam »

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.
_______________
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post by Eddiever »

Can you use that also to connect GPIO0 with ground (which is needed for flashing)?
mayyam
Posts: 47
Joined: Saturday 14 January 2017 11:29
Target OS: Linux
Domoticz version: 4.11333
Location: Poland
Contact:

Re: Sonoff Touch

Post 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.
_______________
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Sonoff Touch

Post 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 ?
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
mayyam
Posts: 47
Joined: Saturday 14 January 2017 11:29
Target OS: Linux
Domoticz version: 4.11333
Location: Poland
Contact:

Re: Sonoff Touch

Post by mayyam »

Yes, won't work constantly connected with my Sonoff Touch.
_______________
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Sonoff Touch

Post by tontze »

Thank you all, got it working :) Just one question, you have rules, where did you add them ?
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post 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 ;)
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Sonoff Touch

Post 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 ?
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Sonoff Touch

Post 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.
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: Sonoff Touch

Post 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
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Sonoff Touch

Post 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
bryan241
Posts: 15
Joined: Tuesday 29 December 2015 15:06
Target OS: -
Domoticz version:
Contact:

Re: Sonoff Touch

Post by bryan241 »

Small hack to get control over the backlight for the touch button:
sonoff touch.jpg
sonoff touch.jpg (226.81 KiB) Viewed 4075 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: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Sonoff Touch

Post 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
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
Eddiever
Posts: 105
Joined: Thursday 27 April 2017 20:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands (Hoogeveen)
Contact:

Re: Sonoff Touch

Post by Eddiever »

Do you also use the name state in the devices tab?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest