This flow creates a Quick Settings icon in the notification pannel to control the backlight timing. The sleep time increments on each click. And a toast message will be displayed showing the sleep time.
P.S: This works only on Android 6+. If you want it modified for earlier version make me know.
Before starting the flow follow these steps to setup the quick setting icon
1.Open the System UI Tuner, or long-click the “cog” icon atop of the expanded status bar.
2.Open the Quick Settings screen
3.Click Add tile at the bottom
4.Choose Broadcast Tile
5.Write or paste com.llamalab.automate.tile.Automate1then click OK.