How to make a fabricator run on gas or electricity

I found a way to check for power by running a timer for this event


You can ignore the clear timer and powered structures check.
The set active is to auto activate if powered (optional)