Toliet time sensor?

Has anyone tried using a small, Arduino controlled servo connected to the flush lever?
This thread has some suggestions on talking to Arduinos from SmartThings.