Tado unreliable - can I create a periodically triggered automation?

Hi,

I have been using Tado with Home Assistant all winter, it is generally working great.

But occasionally my automation runs but the desired heating mode isn’t set on Tado, there are no errors / warnings in the log and if I manually run the automation it works fine:

alias: Turn Heating On when Home
description: ""
trigger:
  - platform: state
    entity_id:
      - zone.home
    for:
      hours: 0
      minutes: 0
      seconds: 30
    from: "0"
    to: "1"
condition: []
action:
  - service: climate.set_preset_mode
    target:
      entity_id: climate.hall
    data:
      preset_mode: home
mode: single

It works fine 95% of the time.

Working out the root cause of the failures would be ideal but I was thinking maybe I can workaround the issue by creating a new automation with runs every 5 mins with pseudo code:

IF zone.home > 0 and tado mode = away
  SET tado mode = home
ELSE IF zone.home = 0 and tado mode = home
  SET tado mode = away

I cant see any way in the UI to run a schedule an automation every 5 minutes, it that possible?

:thinking:

...

trigger:
  - platform: time_pattern
    minutes: "5"
...

/
:thinking:

alias: Turn Heating On when Home
description: ""
trigger:
  - platform: state
    entity_id:
      - zone.home
    for:
      hours: 0
      minutes: 0
      seconds: 30
    to: "1"      
condition: []
action:
  - service: climate.set_preset_mode
    target:
      entity_id: climate.hall
    data:
      preset_mode: home
mode: restart 

That works