The levers are just your average dwemer levers. Then I have the thing do this receiving input via the lever as an activate parent:
Scriptname PCKP_OnActivateRepeatCast extends ObjectReference Spell Property mySpell autofloat Property delay autoauto State Inactiveevent OnEndState() RegisterForSingleUpdate(delay)endEventevent OnActivate(ObjectReference akAC) gotoState("Active")endEventendStateState Activeevent OnEndState() UnregisterForUpdate()endEvent event OnActivate(ObjectReference akAC) gotoState("Inactive")endEventendStateevent OnUpdate()mySpell.Cast(self, GetLinkedRef())RegisterForSingleUpdate(delay)endEvent