I wanted to give a few examples of how to use the time pattern trigger for automation in Home Assistant. This trigger is very powerful and can achieve precise timings of repetitive tasks.
You can read about this trigger here https://www.home-assistant.io/docs/automation/trigger/#time-pattern-trigger
If the time pattern never gets matched, please note that on some versions, there is a bug in the UI editor. Please use the YAML editor.
Match every one hour:
1
2
|
platform: time_pattern
hours: /1
|
Match every half an hour: