Put the magnets on the second hand for minute polls.
Put the magnets on the minute hand for hour polls.
Put the magnets on the hour hand for once a day polls.
If the hands are not magnetic, put a magnet on each side of the hand.
The clock will show open for about 40-50 minutes and closed for 10-20 minutes
…depending on how you position things and magnet strength on the minute hand.
…Once positioned its very consistent.
You can trigger on the open, or the close…or both!
Use state or atomic state variables to keep track if you need to.
Use Date() if you really want to know what time it is.
Don’t include the Clock door sensor in your alarm system unless…
Place the clock horizontally if its plastic and the magnets are heavy.
Turn the door Sensor so the magnets pass over the reed
…and don’t get stuck on the sensor battery.
If it’s too hard to make work…
…Get a bigger better clock with a sturdy second hand and a heavy duty movement.
Write your own version of cron in groovy.
And finally…
Throw the analog clock away and use a Repeat Cycle Timer
…with the contact connection inside the sensor.
Hehe …well Eric, this actually works. It just closes and opens a door switch…which you can use to trigger other events. Thing is, it triggers it on a regular basis - nice for polling. Though I haven’t written a cron to use the ticks from the clock. I suppose it would be possible. I should have waited to post this on April 1st though…then more folks would think it was fake…when in actuality it really works. I have a backwards sense of humor that way. With the schedule-poll-reschedule thing breaking after a few hours or days, it’s kind of nice to have something that just keeps ticking.
I think it’s kind of funny, there’s been reports that throughout last night a lot more schedules worked, but there’s been no official word why. Maybe they did get a clock and a magnet. Ha!