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