[SOLVED] Best approach delay a flickering contact, proxy and/or timer or?

See Generic Presence Detection and Design Pattern: Motion Sensor Timer for further examples.