Sonoff Touch Topic is solved
Moderators: leecollings, remb0
-
- Posts: 47
- Joined: Saturday 14 January 2017 11:29
- Target OS: Linux
- Domoticz version: 4.11333
- Location: Poland
- Contact:
Re: Sonoff Touch
Nice
Glad it's finally working.
Glad it's finally working.
_______________
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Sonoff Touch
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 touchEddiever 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?
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
- 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
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.
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.
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Sonoff Touch
Ok cool thanx, i do have one of these coming : http://www.ebay.com/itm/USB2-0-To-TTL-S ... SwBLlU7t8JEddiever 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).
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]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
- 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
Looks fine to me. By the way my previous post has been edited with an extra link on how to solder
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Sonoff Touch
Nice, cant wait for my sonoff to arrive
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]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
-
- Posts: 47
- Joined: Saturday 14 January 2017 11:29
- Target OS: Linux
- Domoticz version: 4.11333
- Location: Poland
- Contact:
Re: Sonoff Touch
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
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
- 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
Can you use that also to connect GPIO0 with ground (which is needed for flashing)?
-
- Posts: 47
- Joined: Saturday 14 January 2017 11:29
- Target OS: Linux
- Domoticz version: 4.11333
- Location: Poland
- Contact:
Re: Sonoff Touch
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.
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
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Sonoff Touch
So its needed to ground gpio0 only when esp is booting to get it programming mode ?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.
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
-
- Posts: 47
- Joined: Saturday 14 January 2017 11:29
- Target OS: Linux
- Domoticz version: 4.11333
- Location: Poland
- Contact:
Re: Sonoff Touch
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
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Sonoff Touch
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]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
- 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
Hi tontze,
Great you have it working!. Rules need to be enabled. Do this by going to Tools -> Advanced. Then check the box Rules
Great you have it working!. Rules need to be enabled. Do this by going to Tools -> Advanced. Then check the box Rules
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Sonoff Touch
ThanxEddiever 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
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]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
-
- Posts: 222
- Joined: Tuesday 22 July 2014 7:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Netherlands
- Contact:
Re: Sonoff Touch
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 )
but that is not what I want.
wifi light on when switched light is off and in reverse.
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 )
but that is not what I want.
wifi light on when switched light is off and in reverse.
- 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
Hi Qwerk,
Is 'button' a Sonoff device, perhaps GPIO0?
You can combine the first 2 lines of your rules -
on button#state=0 do
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
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
-
- Posts: 222
- Joined: Tuesday 22 July 2014 7:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Netherlands
- Contact:
Re: Sonoff Touch
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
Small hack to get control over the backlight for the touch button:
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
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
-
- Posts: 317
- Joined: Thursday 12 January 2017 15:30
- Target OS: Linux
- Domoticz version: Beta Ch
- Location: Finland
- Contact:
Re: Sonoff Touch
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]
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
- 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
Do you also use the name state in the devices tab?
Who is online
Users browsing this forum: No registered users and 0 guests