Periodic check if conditions for automation are met?

Hello guys, I need some helpe here…

I have automation triggering at 12:00 and if two conditions are met (PV production > 6600 W and hot water temperature in storage is < 42°C) the signal is sent to heat-pump to heat water in storage.

The automation is as follows:

alias: Heating hot water to 58°C when PV production is over 6.6 kW and HWT is above 42°C
description: >-
  Ob 12h preveri ali so izpolnjeni pogoji (min 6.6kW PV in voda pod 42°C) in
  vklopi grelce do 58°C
trigger:
  - platform: time
    at: '12:00'
condition:
  - condition: numeric_state
    entity_id: sensor.solaredge_modbus_ac_power
    above: '6600'
  - condition: and
    conditions:
      - condition: numeric_state
        entity_id: sensor.hot_water_temperature
        below: '42'
action:
  - service: mqtt.publish
    data:
      topic: ebusd/ehp/BackupModeHwc/set
      payload: '2'
  - delay: '00:00:05'
  - service: mqtt.publish
    data:
      topic: ebusd/hwc/StorageTempDesiredStop/set
      payload: '58'
  - delay: '00:00:05'
  - service: mqtt.publish
    data:
      topic: ebusd/hwc/load/set
      payload: 'on'
  - delay: '00:00:05'
mode: single

Problem:
Sometimes one condtition (or maybe two) are temporartly (f.i. PV production) not met, but in next 2 min or less the PV production is met (f.i. small cloud over my PV and it lowers production to 5000 W or less).

Questions:

  1. How to configure automation to trigger again in 3 mins…and then again in 3 min…till automation is deployed or till 16h in the afternoon?
  2. Is it possible to get notification if automation (for heating hot water) was successfull? How to do that? I’m thinking on another automation…?

Thank you!

Put all of your conditions also as triggers (time, power and temperature) then put a new time condition along with the other two existing ones.

As for the notification just add your notification as the last step in the same automation. If you get the notification you at least know that prior steps ran ok.

It won’t tell you if the water actually got heated up or not tho. For that you would need other checks.

1 Like

Thanks @finity . I think I got your approach :slight_smile: I have to test it a little bit more and when it’s not so sunny…now we have sun and clear weather every day :slight_smile: