With the help of notifications of a third app that tells the battery level, the WLAN switch is turned off. The loading level is set in the third app for automation, which can also send it via e-mail to ifttt as a trigger.
Discover more time saving integrations for Android Device and Smart Life