by Sid Stone
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.
For Tasmota :
Enter the device url in the config variable.
also edit the on and off in the config variable to "On" and "Off".
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.
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/