I’m trying to calculate the total water flowed in a day based off knowing when the pump is running. Currently I have
- Setup variables to be smart to know when the pump is on (based on the circuit power usage)
- Defined the pump throughput
- Defined the pool size (so I can calculate how much of the pool water has moved
I want to create a view so I can see if the pump was on for an hour how many litres has flowed (230*60 = 13800L). But pool pump throughput only shows the throughput at that given time, not the sum of for the day…
Any help is greatly appreciated.
*In templates*
#Pool
- binary_sensor:
- name: Pool Pump Status
unique_id: pool_pump_status
state: "{{ int(states('sensor.athom_energy_monitor_02a65c_power_2')) > 500 }}"
- sensor:
- name: Pool Pump Throughput
unique_id: pool_pump_throughput
state: "{% if states('binary_sensor.pool_pump_status') == 'on' %} 230 {% else %} 0 {% endif %}"
unit_of_measurement: "L/min"
state_class: measurement
- sensor:
- name: Pool Capacity
unique_id: pool_capacity
state: 12000
unit_of_measurement: "L"