I use the same sensor, but a less complicated setup that I feel has a little more flexibility and less chance of false alarms. Essentially, once vibration starts, it has to remain constant for at least 2 minutes. After 2 minutes, the rule knows the vibration wasn't a bump or someone taking something out of the dryer, cleaning the lint screen, etc., and it waits for the dryer to stop. Once again, the dryer has to be stopped for 3 minutes, at which point it notifies us, and resets the state of the rule completely, so it requires 2 min. of vibration again.
This 3 minute wait is good, too, for things like checking on the clothes, pulling one thing out and letting the rest dry a little longer, changing loads (you don't need to be notified it's done if you're standing right there putting the next load of clothes in it), etc.
To date, zero false alarms on that one, and it's kinda hard to imagine a scenario where you would get one.
This way, I can also use the state of the door as a variable for how it notifies. If the load is done and the door is open, you get a "Dryer door was left open" (damn kids). If the load is done and the door is closed, you get "The clothes in the dryer are ready."
EDIT: But like @Ryan780 said, vibration would be tricky for my washer, so I'm using the power draw from a peanut plug, using similar rules as above...once power draw goes above a certain threshold for a while, it knows a load has been started, and it has to drop below a certain threshold (be off) for a couple minutes to know it's done.