How can I see whether my device has already been running today?

Hi all,

I’ve made today this automation

alias: Wassi
description: ""
trigger:
  - platform: time_pattern
    minutes: /15
condition: []
action:
  - choose:
      - conditions:
          - condition: time
            weekday:
              - tue
              - thu
              - sun
          - condition: or
            conditions:
              - condition: numeric_state
                entity_id: sensor.pv_einspeisung
                above: 600
              - condition: time
                after: sensor.power_highest_peak_time_today
          - condition: state
            entity_id: switch.shellyplus1pm_d4d4da0a3c24_switch_0
            state: "off"
        sequence:
          - type: turn_on
            device_id: ff065f1e1d3b9660a1ca965ef224ac27
            entity_id: 407f3ffee0f596a6dd30b9e5249e6c47
            domain: switch
      - conditions:
          - condition: and
            conditions:
              - condition: numeric_state
                entity_id: sensor.pv_einspeisung
                above: 600
              - condition: numeric_state
                entity_id: sensor.energy_current_hour
                above: 1
              - condition: numeric_state
                entity_id: sensor.energy_next_hour
                above: 1
              - condition: state
                entity_id: switch.shellyplus1pm_d4d4da0a3c24_switch_0
                state: "off"
        sequence:
          - type: turn_on
            device_id: ff065f1e1d3b9660a1ca965ef224ac27
            entity_id: 407f3ffee0f596a6dd30b9e5249e6c47
            domain: switch
      - conditions:
          - condition: and
            conditions:
              - condition: state
                entity_id: switch.shellyplus1pm_d4d4da0a3c24_switch_0
                state: "on"
                for:
                  hours: 5
                  minutes: 0
                  seconds: 0
              - condition: numeric_state
                entity_id: sensor.solarnet_power_photovoltaics
                below: 0.1
        sequence:
          - type: turn_off
            device_id: ff065f1e1d3b9660a1ca965ef224ac27
            entity_id: 407f3ffee0f596a6dd30b9e5249e6c47
            domain: switch
mode: single

Now, my water heated today, the shelly switched off, as I made no energy anymore, but 15 minutes later, it started again, as the higest peak from pv as still reached.

Now, how can I set a reminder, that the water still heated today?

Make a date helper and set it as part of your script.

Thanks for your reply. Could you give me an example, I didn’t use this helper up Till now.