Hey there!
I would try something like this:
create a numeric variable for the lever.
If player is overlapping Lever:
-every 0.5 seconds add 0.5 to variable.
If player is not overlapping lever:
-set variable to 0
If variable is greater or equal to 1.5
Set animation to (your animation name)