Automation - How to check state continuously

Hello,
I’m trying to control a circulation pump triggered by another pump.

Unfortunately sometime the circulation pump does not switch on. It will not turn on until the initiating pump is turned off and then on again.

I would like to implement something, which will check every 5 Minutes if the initiating pump is on and if so, the circulation pump will be started, if not running.

Does anyone know how this is called and how to do?
Thanks!

Time Pattern Trigger

  trigger:
    - platform: time_pattern
      minutes: '/5'
1 Like

thanks!

Does it work this way?

alias: Pumpe ein
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.hmip_fal230_c6_obergeschoss_state_ch1
      - binary_sensor.hmip_fal230_c6_erdgeschoss_state_ch1
    to: "on"
  - platform: time_pattern
    minutes: '/5'
condition: []
action:
  - type: turn_on
    device_id: 1d232d42fde1dfebe5e20ae57a83bd5f
    entity_id: light.pumpensteuerung
    domain: light
mode: single

It will work, assuming this is what you want:

  • Turn on the light whenever either of the binary sensors turns on.
  • Turn on the light every 5 minutes.

NOTE

Be advised that it’s the slash in '/5' that instructs the Time Pattern Trigger to repeat every 5 minutes. If you were to remove the slash, it will trigger at 5 minutes after the hour, every hour (not every 5 minutes).

1 Like

Hm I I’m not sure. I want that every 5 minutes is a check, if one of the Binary Sensors is on. If its off, the automation should stop.

alias: Pumpe ein
description: ""
trigger:
  - platform: time_pattern
    minutes: '/5'
condition:
  - condition: template
    value_template: >
      {{ is_state('binary_sensor.hmip_fal230_c6_obergeschoss_state_ch1', 'on') or 
        is_state('binary_sensor.hmip_fal230_c6_erdgeschoss_state_ch1', 'on') }}
action:
  - type: turn_on
    device_id: 1d232d42fde1dfebe5e20ae57a83bd5f
    entity_id: light.pumpensteuerung
    domain: light
mode: single

Ahhhh it is the other way around! Thank you.
Set the timer and the initiating pumps as condition!
Thanks a lot!

1 Like

Just what I was looking for, thanks!