Turning off/on Sonoff S20 based on battery level of laptop/android/ios

Hi guys, so I have sonoff s20 socket that I just flashed to tasmota firmware
I’d like to know if there’s an app/service on android/windows that I can use to monitor battery level on phone/laptop & triggers mqtt based on the battery level.
For example if the battery is fully charged, it would send mqtt off command to turn off the S20 & vice versa

Any recommendation for this setup?