This activator must be linked to lever block and executing when player triggers this lever. It supports lever states - "on" and "off".
To create activator you need to look to the lever and type command:
/react add LEVER <ActivatorId> [ON | OFF | ANY]
/react add lever LeverActivator on
This activator will executed only when lever is turning on.