DST/PST change trigger (solved)

Is there a way to trigger a rule when DST/PST changes?

I have a clock on my Zigbee thermostat with a clock, and this morning it showed the old time. No prob, I was able to go into devices and click 'set the clock' and that worked.

I want this to happen automatically (this is all about home automation after all) but I can't find trigger that works either on DST/PST changes, or "first Sunday in November or (the other one).

I can go off on a rant about how dumb DST changes are, but I need to stay focused.

I am thinking I can setup a cron job on a desktop somewhere to trigger an http get endpoint trigger to set any dumb clocks on the HE network.

Is this the only way?

Thanks, Mark.

Why not simply create a RM Rule that runs every Sunday morning at ~2:15am to set the clock on these devices? That way, they will always have the correct time, regardless of when DST changes occur.

5 Likes

One way of detecting if you have a Hub Information v3 device - the day before the DST change the sunrise and sunriseTomorrow will differ by β‰₯ 1 hour instead of the normal minute or 2. timeZone attribute should have the start/end month(need to add 1) and day in the JSON.

You could use my variable - and just wait for it to change state: (Found in Date/Time Parse

image

1 Like

I think I'll go for oglewon's approach.

It has the added side effect of keeping the clock on the thermostat better synced. I notice it was off a few minutes after a few months.

Thanks, Mark.

2 Likes