TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Reprogramming a $13 consumer wifi-enabled outlet

165 点作者 zipfle超过 7 年前

14 条评论

kogepathic超过 7 年前
This looks quite similar to the Sonoff S20. [1] Although they opted for the ESP module instead of designing a custom PCB around the ESP8266 chip as Sonoff does.<p>According to the S20 schematic, uart is routed to a header, so it should be easier to flash. [2]<p>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.<p>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&#x27;t want to have the relay, it&#x27;s quite easy to solder across the relay in the Sonoff POW and use it only as a power monitoring device.<p>Just a reminder to anyone working with these devices: never, ever connect UART while the device is plugged into AC!!<p>[1] <a href="https:&#x2F;&#x2F;www.itead.cc&#x2F;smart-socket.html" rel="nofollow">https:&#x2F;&#x2F;www.itead.cc&#x2F;smart-socket.html</a><p>[2] <a href="https:&#x2F;&#x2F;www.itead.cc&#x2F;wiki&#x2F;S20_Smart_Socket" rel="nofollow">https:&#x2F;&#x2F;www.itead.cc&#x2F;wiki&#x2F;S20_Smart_Socket</a><p>[3] <a href="https:&#x2F;&#x2F;bitbucket.org&#x2F;xoseperez&#x2F;espurna&#x2F;wiki&#x2F;Hardware.md" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;xoseperez&#x2F;espurna&#x2F;wiki&#x2F;Hardware.md</a><p>[4] <a href="https:&#x2F;&#x2F;www.itead.cc&#x2F;sonoff-pow.html" rel="nofollow">https:&#x2F;&#x2F;www.itead.cc&#x2F;sonoff-pow.html</a>
评论 #15778569 未加载
评论 #15779262 未加载
评论 #15778891 未加载
peterburkimsher超过 7 年前
A few months ago there was a similar post about Edimax power sockets and the Raspberry Pi. I commented that I&#x27;d like to automatically reset my WiFi router&#x2F;modem when the Internet connection fails.<p>Someone commented to tell me about the ResetPlug, which does just that. I&#x27;m now the very happy owner of one.<p>I don&#x27;t mean that as a advert, but as an encouragement that when you comment useful links to products that already exist, it does make a difference, and I appreciate it. (not spam, but user recommendations).
评论 #15781920 未加载
评论 #15780433 未加载
martyvis超过 7 年前
The most popular esp8266 based relay from Sonoff is designed for friendly reprogramming - <a href="http:&#x2F;&#x2F;randomnerdtutorials.com&#x2F;reprogram-sonoff-smart-switch-with-web-server&#x2F;" rel="nofollow">http:&#x2F;&#x2F;randomnerdtutorials.com&#x2F;reprogram-sonoff-smart-switch...</a>
评论 #15778175 未加载
peteforde超过 7 年前
I really enjoyed reading this, but it wasn&#x27;t entirely clear to me what the author planned to reprogram the unit to actually do. So from my perspective, the article ended abruptly when the author declared success even though I was looking forward to a description of the conclusion.<p>The story is important and often overlooked in these moments. It&#x27;s what justifies spending a hundred hours and $200 to achieve something you could probably just buy for $50.
评论 #15778682 未加载
评论 #15779905 未加载
tga超过 7 年前
The Sonoff S22 is a good candidate for reprogramming, with the bonus option that it supports external temperature+humidity sensors.<p>You 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.<p><a href="https:&#x2F;&#x2F;www.aliexpress.com&#x2F;item&#x2F;Sonoff-S22-Smart-Wifi-Power-Socket-AU-CN-Plug-Wireless-Outlet-Socket-Support-Temperature-Humidity-Monitor&#x2F;32824258981.html" rel="nofollow">https:&#x2F;&#x2F;www.aliexpress.com&#x2F;item&#x2F;Sonoff-S22-Smart-Wifi-Power-...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;arendst&#x2F;Sonoff-Tasmota&#x2F;issues&#x2F;627" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;arendst&#x2F;Sonoff-Tasmota&#x2F;issues&#x2F;627</a>
Johnny555超过 7 年前
While DIY can be fun, I prefer to buy a finished product when there&#x27;s a solution readily available... Especially when dealing with home wiring.<p>When faced with a similar problem (big room, wanted to control multiple lights without pulling wires), I used an Insteon battery operated remote switch:<p><a href="https:&#x2F;&#x2F;www.smarthome.com&#x2F;insteon-2342-242-mini-remote-switch.html" rel="nofollow">https:&#x2F;&#x2F;www.smarthome.com&#x2F;insteon-2342-242-mini-remote-switc...</a> ($42)<p>And an inline switch module that went up in the ceiling light housing: <a href="https:&#x2F;&#x2F;www.smarthome.com&#x2F;insteon-2443-222-micro-on-off-module.html" rel="nofollow">https:&#x2F;&#x2F;www.smarthome.com&#x2F;insteon-2443-222-micro-on-off-modu...</a> ($49)<p>And a couple plug in lamp modules:<p><a href="https:&#x2F;&#x2F;www.smarthome.com&#x2F;lamplinc-insteon-2457d2-plug-in-lamp-dimmer-module-dual-band-2-pin.html" rel="nofollow">https:&#x2F;&#x2F;www.smarthome.com&#x2F;lamplinc-insteon-2457d2-plug-in-la...</a> ($39)<p>One advantage of the off the shelf products is that they are all UL approved for the use, so if it catches fire and burns my house down, I don&#x27;t have to prove that it wasn&#x27;t my fault.
Robotbeat超过 7 年前
I&#x27;ve noticed a big market gap, ever since I got an electric car. Every EV owner has a 120V AC charger that they can plug in almost anywhere with an outlet, however getting permission is a challenge. Owners of the outlets rightfully want compensation. But a full commercial charger rig is like $1000 at least. That&#x27;s way too much!<p>What I&#x27;d like is for outlets to have wifi or bluetooth connectivity on them. I just tell the outlet to turn on via some app, and the app&#x2F;outlet keep track of how long the outlet is on and charges me a flat rate per unit time. Simple. The smarts for this need only cost $13 above what a regular outlet costs, as this project shows.<p>This would be especially useful in apartments or parking garages. Provided you already have lights, it&#x27;d be cheap to run a 120V outlet to within reach of most (or at least a large number of) parking spots. $13 of electronics plus maybe $50 (i.e. a quad outlet of $200 split among 4) to install an outdoor outlet is all it&#x27;d cost to electrify a parking space. The owner of the parking lot could offer low cost electricity and, say, make a profit off the difference between residential and commercial&#x2F;industrial electrical rates (might take a few months to pay for the outlet, but not more than a year for a well-used spot, then the owner makes an easy profit). Everyone wins, and urban EVs become practical for everyone (and a slow charge is fine. of course, you would still want fast chargers to top up if you were doing a lot of driving, but that can be done elsewhere). Also would be pretty cheap to install on all parking meters.<p>Just need someone to develop that app and an outdoor outlet with a $13 bluetooth relay that talks to the user&#x27;s app (only the user&#x27;s app would necessarily need internet connectivity). Someone do this and be a hero.
评论 #15779801 未加载
评论 #15779979 未加载
xt00超过 7 年前
I think it’s great that the author did this as a learning experience. It seems like soldering on a few wires could have saved you like 3 weeks.. but anyway, the ESP8266 is a great platform. Super cheap, minimal components, easy to program, you can write code natively using the SDK or various script based languages. And has good support from the manufacturer.
colemannugent超过 7 年前
There 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.<p>Other than that, this is exactly what I&#x27;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.<p>Now all we need is some good software to securely integrate this with other IoT systems.
评论 #15778099 未加载
gumby超过 7 年前
I like the explanation of the &quot;journey&quot; rather than just the description of &quot;how you can do this too.&quot;
rcarmo超过 7 年前
I’m looking for a direct hardware equivalent with an EU plug - anyone got references to share?
unixhero超过 7 年前
I use tp-link hs110, Wi-Fi enabled metering plugs. Highly recommended.
jtchang超过 7 年前
Cool I was actually working on this exact thing!
z3t4超过 7 年前
wifi seems overkill to send on off signals. i would use 433mzh
评论 #15778601 未加载
评论 #15778497 未加载