Hi,
I‘m struggling to find a time pattern config to habe it trigger every full hour and every half hour. Eg. 06:00 06:30 07:00 07:30
Already tried some solutions from the forum but no e seems to work here.
Greetings and thank you.
Hi,
I‘m struggling to find a time pattern config to habe it trigger every full hour and every half hour. Eg. 06:00 06:30 07:00 07:30
Already tried some solutions from the forum but no e seems to work here.
Greetings and thank you.
trigger:
- platform: time_pattern
minutes: 0
- platform: time_pattern
minutes: 30
?
trigger:
- platform: time_pattern
minutes: "/30"
Won’t that fire every 30 minutes regardless of when the first trigger is? So if homeassistant starts at 0618 hours, then the triggers will be 0648, 0718, 0748 etc?
From my understanding of time_pattern, @anon43302295 is correct. “/30” means “every 30 minutes”, but “30” and “00” means “on the hour and half-hour”.
My understanding is it will fire when the minutes component of the time is divisible by 30, so on the hour and on the half hour.
I think I have to recant. From the docs of the time pattern trigger:
With the time pattern trigger, you can match if the hour, minute or second of the current time matches a specific value. You can prefix the value with a
/
to match whenever the value is divisible by that number.
However this seems a bit strange. What if you have a value that doesn’t go evenly into its denominator, ie, /7
. It would trigger on 49, 56, and then not again until 7 (maybe 0?).
Eh, I guess that’s what timers are for