Change brightness based on global on/off

Hi, so the idea is when I check the box global turns on and when detect sunrise/fall it change to the given value. I tried but it seems that there are not formula option under "touch". Is there any other way to achieve this, thanks in advance.

Your best bet would probably be linking to a Tasker task that controls brightness.