Reprogramming a $13 consumer wifi-enabled outlet
rluckom.github.io
Reprogramming a $13 consumer wifi-enabled outlet
1–10 of 44 posts
Re: Reprogramming a $13 consumer wifi-enabled outlet
#2Other than that, this is exactly what I've been looking for. I have an old wireless outlet (controlled by a RF remote) that I rigged up a Raspberry Pi Zero to, but that is a lot of effort compared to soldering some headers and flashing a new firmware.
Now all we need is some good software to securely integrate this with other IoT systems.
Re: Reprogramming a $13 consumer wifi-enabled outlet
#3You can definitely achieve the same functionality cheaper with a ESP8266 breakout + shield, but this way you get a nice case that can just sit on a socket.
https://www.aliexpress.com/item/Sonoff-S22-Smart-Wifi-Power-...
Re: Reprogramming a $13 consumer wifi-enabled outlet
#4Re: Reprogramming a $13 consumer wifi-enabled outlet
#5There seems to be enough room in the enclosure to solder on some pin headers to both sides of the ESP-12. That would make getting access to them a lot easier than trying to rig up a custom 3D printed pogo pin setup. Other than that, this is exactly what I've been looking for. I have an old wireless outlet (controlled by a RF remote) that I rigged up a Raspberry Pi Zero to, but that is a lot of effort compared to sold…
Re: Reprogramming a $13 consumer wifi-enabled outlet
#6The most popular esp8266 based relay from Sonoff is designed for friendly reprogramming - http://randomnerdtutorials.com/reprogram-sonoff-smart-switch...
Re: Reprogramming a $13 consumer wifi-enabled outlet
#7According to the S20 schematic, uart is routed to a header, so it should be easier to flash. [2]
The Sonoff S20 is the same price as the mentioned model, and is supported by espurna. [3] Espurna is great, it has MQTT, Domoticz, Home Assistant, an HTTP API, and Alexa integration. Espurna also supports sending data directly to InfluxDB which is very handy.
If you want to monitor power consumption as well, I can highly recommend the Sonoff POW. [4] Although to get a plug you will need to butcher an extension cable or power strip. If you only want to monitor power consumption and don't want to have the relay, it's quite easy to solder across the relay in the Sonoff POW and use it only as a power monitoring device.
Just a reminder to anyone working with these devices: never, ever connect UART while the device is plugged into AC!!
[1] https://www.itead.cc/smart-socket.html
[2] https://www.itead.cc/wiki/S20_Smart_Socket
[3] https://bitbucket.org/xoseperez/espurna/wiki/Hardware.md
Re: Reprogramming a $13 consumer wifi-enabled outlet
#8Re: Reprogramming a $13 consumer wifi-enabled outlet
#9wifi seems overkill to send on off signals. i would use 433mzh
Re: Reprogramming a $13 consumer wifi-enabled outlet
#10The story is important and often overlooked in these moments. It's what justifies spending a hundred hours and $200 to achieve something you could probably just buy for $50.