Page 1 of 1

Control Sonoff wall swith

Posted: Wed Nov 07, 2018 10:40 am
by maniattico
Hi!

I found this:
https://www.amazon.com/Sonoff-T1-US-Sta ... rds=sonoff

Do you know if there is any way to control it via wifi with a Raspberry (python, bash...) or Home Assistant?

I know that Sonoff Basic has custom firmware to do that, however I need a wall switch too, not only a relay.

Thanks and regards!

Re: Control Sonoff wall swith

Posted: Tue Nov 13, 2018 11:32 am
by oldjake
I did a bit of research on this on a slightly different Sonoff switch but I think the principle is the same. It was a little while ago now and I ended up going down a different route so it's a bit fuzzy. The only way I've found is to use IFTTT and webhooks.

The biggest problem I found is that these switches kill the power to the relay. I hoped that the switch would issue a command to switch the relay off.

It's a real shame that there's no proper API for Sonoff. I've got a few relays and I find them to be fantastic for the money.

Re: Control Sonoff wall swith

Posted: Tue Nov 13, 2018 12:50 pm
by maniattico
I've found Espurna custom firmware:

https://github.com/xoseperez/espurna

If I finally buy that switch, I'll try it.

Regards

Re: Control Sonoff wall swith

Posted: Tue Nov 20, 2018 2:58 am
by howesfam
I would recommend flashing the Sonoff with Tasmota (https://github.com/arendst/Sonoff-Tasmota) and using MQTT Mosquito to control it