Smart Plug Battery Auto Charge (IFTTT, Basic)

by Liz Calkins

Version 2 (December 30, 2020)

Download (14 downloads)

This flow lets you combine Automate, IFTTT, and IFTTT-compatible smart plug(s) to keep your device in that sweet 20-80% spot for optimal battery life.

This is a bare bones functionality version of this idea. If you want a fancier version with better notifications and a morning top-off option, check out this flow: https://llamalab.com/automate/community/flows/38089

First get your smart plug service hooked up to IFTTT, then make two applets:

Webhook "Receive a web request" with "{eventname}on" ("plugon", for example) > Service - "Switch on"
Webhook "Receive a web request" with "{eventname}off" ("plugoff", for example) > Service - "Switch off"

Make note of both the Event Name (everything before the "on/off", "plug", for example) you used and your Maker Key from My Services > Webhooks > Documentation in the IFTTT app.

Then run the flow. It'll ask for your Maker Key and Event Name, put them both in. And that's it. No more worrying about overcharging, especially overnight. (Note that you do have to set your internet in Android to never sleep.)

If you want to turn on/off more than one plug, either create scenes for all of them to go on/off and have those as the Then in your IFTTT applets, or in the case of SmartThings, create a Virtual Switch for IFTTT to turn on and off in SmartApps > three dots menu > SmartThings Labs, then also set up an Automation in the SmartThings app to have all your plugs turn on/off when the Virtual Switch does.