Time-Triggered Automation, not fire as should be expected, I put an interval of 5 hours but instead, as you can see in the screenshot, he fire every day at 5 am and/or pm (wtf)
Your automation is designed to trigger at 05:00:00 or when Home Assistant starts.
The screenshot you posted, displaying a list of times for the last 5 traces that were produced, shows that it triggered four times at 05:00:00, corresponding to the Time Pattern Trigger, and once at 17:20:15 which probably corresponds to when Home Assistant was restarted.
Check the trace produced at 17:20:15 and it will reveal which of the automationâs two triggers was responsible for triggering the automation. Itâs likely to be the Home Assistant Event Trigger.
For future reference, creating automations with the UI doesnât always support everything that Home Assistantâs scripting language can do. Even when the UI does support a given scripting feature, it might only support it partially and require that you switch to YAML mode to support it fully or assumes you already know what you can/canât enter.
In this particular case, the UI doesnât provide much guidance and assumes you are already familiar with the Time Pattern Trigger and know what to enter in the Hours field.
This hours: '/5' will certainly get the OP closer to triggering every 5 hours than this hours: '5' but not completely; the final period of each day will be 4 hours owing to the way the Time Pattern Trigger computes repeating intervals.
You can prefix the value with a / to match whenever the value is divisible by that number.
In your case, the time interval you specified is hours: '/5' so that means it will trigger when the current hour is divisible by 5. What that implies is the current hour must be evenly divisible (no remainder) by the value 5.
0/5 = 0
5/5 = 1
10/5 = 2
15/5 = 3
20/5 = 4
So, like finity explained, it will trigger when the current hour is 0, 5, 10, 15, and 20. Thatâs 5 hours apart except for the period between 20:00 and 00:00.