maniattico
Posts: 35
Joined: Thu Jan 25, 2018 12:40 pm

Control Sonoff wall swith

Wed Nov 07, 2018 10:40 am

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!

oldjake
Posts: 90
Joined: Fri Aug 03, 2018 12:39 pm

Re: Control Sonoff wall swith

Tue Nov 13, 2018 11:32 am

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.

maniattico
Posts: 35
Joined: Thu Jan 25, 2018 12:40 pm

Re: Control Sonoff wall swith

Tue Nov 13, 2018 12:50 pm

I've found Espurna custom firmware:

https://github.com/xoseperez/espurna

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

Regards

howesfam
Posts: 1
Joined: Thu Aug 06, 2015 11:16 am

Re: Control Sonoff wall swith

Tue Nov 20, 2018 2:58 am

I would recommend flashing the Sonoff with Tasmota (https://github.com/arendst/Sonoff-Tasmota) and using MQTT Mosquito to control it

Return to “Automation, sensing and robotics”