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.
Explore more great ways to automate Android Device and Smart Life