I have 4 ESPHome current transformers providing input for my energy panel.
Each is configured in ESPHome as follows:
sensor:
- platform: adc
pin: GPIO34
id: adc_sensor1
accuracy_decimals: 5
update_interval: 6s
attenuation: 11db
- platform: ct_clamp
sensor: adc_sensor1
id: ${device_id}_1_amps
name: ${device_name}-1-amps
unit_of_measurement: A
device_class: current
accuracy_decimals: 5
sample_duration: 200ms
update_interval: 6s
filters:
- calibrate_linear:
- ${logzero1} -> 0
- ${logknowna1} -> ${knowna1}
# - ${logknownb1} -> ${knownb1}
- platform: total_daily_energy
id: ${device_id}_1_kwh
name: ${device_name}-1-kwh
power_id: ${device_id}_1_amps
accuracy_decimals: 5
unit_of_measurement: kWh
device_class: energy
state_class: total
filters:
- lambda: return x * ${volts1} * .001;
How do I keep the enegy panel from acting like a NET meter and subtracting the previous days total when the total_daily_energy is cleared ?