How to switch an Automation on/off with an automation?

When you activate the script and the light turns off, do you see the automation switch turn off and back on or does it stay on?