Place a Redstone Comparator behind the piston, then run redstone dust to a Lever . Do not use a button —the suffocation needs to last at least 2 seconds.
Happy trapping, and may your beads never get stuck! lovely craft piston trap achievement guide patched