Better Way to Track Pool Temperature Rise

Sorry for long post. I am trying to track my pool temperature rise over the day while the pump is running. The water temp sensor is by the pump so the first readings are ground temp from water in the pipe (60 deg F) instead of pool water temp. To solve this I wait to take a minimum temp for the day 15 min after the pump starts. Then to reset it to default I take it again at the end of the day after the pump stops and the temp sensor is ‘unknown’.

  - trigger:
      - platform: homeassistant
        event: start
      - platform: time
        at: '10:15:00'
      - platform: time
        at: '18:15:00'
    sensor:
      - name: Pool Temp Daily Min
        unique_id: pool_temp_daily_min
        state: "{{ states('sensor.pool_temp') | float(100) }}"
        unit_of_measurement: °F

I than use a helper to calculate the difference between the current pool temp and the minimum pool temp for the day.

All of this basically works it’s just breaks if I restart home assistance since it will pull the current temperature. Is there a better way to do this?

It shouldn’t. Triggered template sensors are restored, not re-evaluated. Are you sure it is not your other “difference” sensor that is causing the issue?

Yup you are correct. I did not test it properly before startup trigger.

1 Like