Automating Android auto-sync toggle while charging

My older Nexus tablet is slow when toggling WiFi so I disabled accounts auto-sync, but needed a solution to auto enable when charging.

So I found an automation app Automate and made a flow for it.

Android Automate app flow
Android Automate app flow

Timed WiFi enable/disable (MikroTik)

During sleep I don’t need WiFi and while the router is in my room where I sleep it would be health beneficial to sleep without WiFi signal.

Thankfully Mikrotik has some great features

First I needed scripts for enable and disable. After that they could be executed via Scheduler.

Screen Shot 2017-03-16 at 06.48.34