by Sid Stone
Version 1 (April 12, 2020)
Download (188 downloads)
Never over charge your phone, just plug your charger into a smart socket/device that works with Shelly, Tasmota or Ifttt.
ON/OFF when battery level is below/above levels entered into config variable, in variable set block.
For Shelly :
Enter the url of your shelly device in the config variable.
e.g. "http://ip_of_device/relay/0?turn=##1##".
For Tasmota :
Enter the device url in the config variable.
e.g. "http://ip_of_device/cm?cmnd=Power+##1##".
also edit the on and off in the config variable to "On" and "Off".
For Ifttt:
Go to https://ifttt.com/maker_webhooks, login and go to documentation to create your secret key.
Enter your ifttt maker url into the config variable variable, in variable set block.
e.g. "https://maker.ifttt.com/trigger/charger_##1##/with/key/fggs78g7g7s7hhsGFhyytj"
In Ifttt - Create 2 applets using ifttt maker webhooks.
If Maker Event "charger_on", then turn on name_of_smart_socket.
If Maker Event "charger_off", then turn off name_of_smart_socket.
You can edit the on/off replacement text in the config variable. You can also add any other device the accept a http request.
Need help ask here https://www.reddit.com/r/AutomateUser/