Controlling the TP-LINK HS100 Wi-Fi smart plug (2017)
blog.georgovassilis.com
blog.georgovassilis.com
Here's the Node package I used: https://www.npmjs.com/package/tplink-smarthome-api it could be made into a cool little CLI as well I guess.
HS100 is quite good, though after running/controlling it for a while, do end up sometimes in a case when it says its socket is off (LED shows that too), but the item plugged in is clearly powered. .. Kinda "you had one job...." situation. It doesn't happen too often, but enough to be careful about, if you switch it a lot.
It allows you to corral all these IoT devices through a massive library of open source component plugins. From there you can send control out to Amazon, Google, or Apple, or just keep control local through the web UI.
With that I can cron my Christmas lighting. Pretty cool.
(Context: I wrote the initial support for bulbs in this module, the plug support already existed)
By just reading what's there it gives the impression that, surprisingly, that project has less basic functionality than the bash script.
I don't have any smart bulbs... that always seemed kind of silly to me. The switches work fine.
Another, unrelated, automation step we implemented is an app checking alarms on our smartphones. When an alarm goes off, FHEM runs a script which switches lights on and reads aloud (with Festival) breaking news, the weather forecast and any interruptions on our daily commute.
It's a 10 plug power strip. It's got an ethernet connection with a WebUI and each outlet is individually switchable. There are two independant input power cords, and it switches automatically if one side fails (UPS dies). Really cool. Need to reboot the NAS, but it's frozen? Remote power cycle it!
1: https://www.cyberpowersystems.com/product/pdu/pdu15sw10atnet...