Here’s an updated (and simpler) flow for Automate that fix the screen on brightness problem that has been reported in another thread .
Version 1.1 in didn’t work well due to the way the Fairphone 2 lux sensor stores light intensity levels when the screen is turned off.
Screen on brightness level is modified according to the time of the day to avoid light bursts when turning on the phone at night.
Parameters can be customized if necessary by changing the flow blocks.
Screen on brightness fix, version 2.0
Make sure to give permissions to all necessary Automate functions.