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

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: Wednesday 16 August 2017 21:15 Do you also use the name state in the devices tab?
I have 2 devices :
Attachments
gr2.PNG
gr2.PNG (18.07 KiB) Viewed 1945 times
gr1.PNG
gr1.PNG (17.8 KiB) Viewed 1945 times
-----------------------------------------
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 »

Try to change the name Sonoff 2 to button.
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: Friday 18 August 2017 16:18 Try to change the name Sonoff 2 to button.
Thnx ! that did it !
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
iLLiac4
Posts: 17
Joined: Thursday 31 August 2017 8:13
Target OS: -
Domoticz version:
Contact:

Re: Sonoff Touch

Post by iLLiac4 »

There is one problem. I want the code/rule to change the status of touch also if the relay status changes to the same status as relay is in.
This is because if you remote execute the code:
http://ip/control?cmd=GPIO,12,0
Only the status of the relay changeses. The status of the touch stays in this case 1. So this causes the problem that the touch button has to be press twice; first will not react because it will only change the status to the same one as the relay is and the second press will then eventually turn on or off the light.

The rules i have are:

Code: Select all

on touch#switch do
if [touch#switch]=1 do
gpio,12,1
else
gpio,12,0
endif
endon

on relay#switch do
if [relay#switch]=1 do
gpio,13,1
inputswitchstate 0,1
else
gpio,13,0
inputswitchstate 0,0
endif
endon
P.S.:
The above code is fixed now and it works with refreshing also the touch state.

How can i achive that the touch status will always be the same as the relay one.
Eawo
Posts: 7
Joined: Tuesday 01 December 2015 7:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sonoff Touch

Post by Eawo »

I just got my first sonoff touch I've been using the sonoff relay for lamp and stuff before.
After I flashed it with espeasy and installed it. It won't start and show up on wifi.
I think first time I powered it it flashed up in wifi but I'm not sure.
I have flashed it again and again but it won't work... I've checked the voltage and stuff and it getting 3.3v. It working well to flash no errors so I don't think it's broken


Edit: I did not know that it was a esp8285 I had and I tried flash it a few times with latest espeasy 2.0 dev12 in arduino as esp8285 but it did not work. It showed up in wifi as esp_Deaprh or something without password.

What I did was flash with old firmware I found that someone said was compiled and u used the espeasy flasher. Now everythings works great. But I'm not on the latest version
gajotnt
Posts: 70
Joined: Monday 06 February 2017 12:48
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.9700
Location: Azores
Contact:

Re: Sonoff Touch

Post by gajotnt »

I really recomend using Tasmota firmware with the Touch and other sonoff devices, works really good with mqtt and domoticz

https://github.com/arendst/Sonoff-Tasmota
Eawo
Posts: 7
Joined: Tuesday 01 December 2015 7:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sonoff Touch

Post by Eawo »

gajotnt wrote:I really recomend using Tasmota firmware with the Touch and other sonoff devices, works really good with mqtt and domoticz

https://github.com/arendst/Sonoff-Tasmota
I tried that first and followed
YouTube video but I was only getting errors not sure why. But now then I have been using easyesp I start to like it
gajotnt
Posts: 70
Joined: Monday 06 February 2017 12:48
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.9700
Location: Azores
Contact:

Re: Sonoff Touch

Post by gajotnt »

Never tried espeasy with mqtt but surelly its fast too
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 »

I don't know if I am the only one but this switch has died on me two times! I had to replace the programmable part of the switch to get it to work again!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest