Page 1 of 1

Sonoff Wifi Switch with Feedback

Posted: Mon Jun 04, 2018 11:56 pm
by flinke flasche
I found this very cheap wifi switches in the internet.

Image

With a different firmware (Tasmota) you can use it with demopad even with feedback :D
You can use Tasmota with the most of the Sonoff devices.

Flash your Sonoff like the the manuals you can find in the internet. My manuals are in german, so you must find yours.

You can control the sonoff switch with the following commands:
Add a new device with the IP of the sonoff an Port 80.

Commands:
Toggle Power -> GET /cm?cmnd=Power%20TOGGLE HTTP/1.0\x0D\x0A
Power on -> GET /cm?cmnd=Power%20ON HTTP/1.0\x0D\x0A
Power off -> GET /cm?cmnd=Power%20OFF HTTP/1.0\x0D\x0A

For the Feedback (sonoff uses JSON) you must use "feedback matches specific data"
in the Data fiel insert "POWER":"ON" or "POWER":"OFF".
In the Field upper right (i don't know the name right now) insert "}"

Have fun with your Wifi Switches

Re: Sonoff Wifi Switch with Feedback

Posted: Thu Jun 14, 2018 2:03 pm
by hengenl
I use exactly the same, with Tasmota software running.
They are very neat, and do work fine.

I even purchased a few Sonoff S20 Sockets and updated to Tasmota firmware.

And yes the codes work too :)

Re: Sonoff Wifi Switch with Feedback

Posted: Sun Jun 17, 2018 7:26 pm
by asimp11
Thats good to know. But does the Sonoff relay still work with Alexa direct through the Ewelink skills app ?

I guess if its re-flashed you might lose the compatability. Does Tasmoto have dedicated skills?

I was using Sonoff relay to trigger Demopad macros by switching Centro inputs, works every time with no IFTTT delays. I think the Sonoff relay was only €24 on Amazon.

Re: Sonoff Wifi Switch with Feedback

Posted: Sun Oct 07, 2018 2:49 pm
by Smarthuset AS
asimp11 wrote:
Sun Jun 17, 2018 7:26 pm
But does the Sonoff relay still work with Alexa direct through the Ewelink skills app ?

I guess if its re-flashed you might lose the compatability. Does Tasmoto have dedicated skills?
Any updates on this, and Sonoff control in general ?

We are interested to share knowledge as we are thinking of takning in a few products for testing.

Has anyone tried Sonoff with Alexa, Google or any other "smart" voicecommand devices and could share some feedback on this?

Re: Sonoff Wifi Switch with Feedback

Posted: Thu Oct 11, 2018 11:33 am
by DemoPad
You could use IFTTT / Alexa / Google to control the unit via a Centro-8M

Re: Sonoff Wifi Switch with Feedback

Posted: Sat Sep 21, 2019 7:08 am
by flinke flasche
Hello,

now i have round about 15-20 Sonoff switches wich i control in my home cinema.
i noticed, that the control of the switches are very slow over demopad with get over http like in the first post.

Do you habe the same problem? when i log in on the ip address of the switch i can control it much faster.

I use the old demopad App.

Re: Sonoff Wifi Switch with Feedback

Posted: Thu Oct 24, 2019 3:49 pm
by manaman
I just bought a couple of these, and tried to flash with Tasmota over WiFi using Sonota.py (using this method: https://youtu.be/ONFhXM5R-t4), but it keeps failing. Does anyone know if it's because the latest firmware has blocked the ability to flash with Tasmota?

Update: I eventually got a USB to serial adapter and flashed with a wired connection instead.

Re: Sonoff Wifi Switch with Feedback

Posted: Sat Oct 26, 2019 10:23 pm
by manaman
flinke flasche wrote:
Sat Sep 21, 2019 7:08 am
Hello,

now i have round about 15-20 Sonoff switches wich i control in my home cinema.
i noticed, that the control of the switches are very slow over demopad with get over http like in the first post.

Do you habe the same problem? when i log in on the ip address of the switch i can control it much faster.

I use the old demopad App.
I had this delay issue too, but if you put \x0D\x0A in the Command Suffix field in Device Properties (even though it is already at the end of each command as in OP's first post), it makes the command pretty much instant.

Re: Sonoff Wifi Switch with Feedback

Posted: Tue Dec 31, 2019 2:41 pm
by manaman
Also there is a new Tasmota Firmware which works much faster with DemoPad. It can be downloaded to your Tasmota devices over the air - very easy. Get it at http://thehackbox.org/tasmota/release/tasmota.bin