Hello,
I have ESP32-S, and LDR sensor with 10Kohm resistor.
Using Homeassistant with ESPhome, all updates done.
I can follow our electricity consumption with this code:
sensor:
-
platform: pulse_meter
pin: GPIO25
unit_of_measurement: ‘kW’
internal_filter_mode: pulse
internal_filter: 5ms
state_class: measurement
device_class: power
name: ‘Kokonaiskulutus’
filters:- multiply: 0.06
id: kokonaiskulutus
- multiply: 0.06
-
platform: total_daily_energy
name: kulutus_pv
power_id: kokonaiskulutus
filters:- multiply: 1
unit_of_measurement: kwh
device_class: energy
- multiply: 1
-
platform: wifi_signal
name: “esp32_wifi_signal”
update_interval: 60s
And the Total amount is almost “there” where it should be, but, i have really weird 600W spikes every 20sec of time in my HA.
And i really dont know why… If i change internal_filter to 50, 100, 150, 200, consumption is not correct, and still have spikes in my consumption.
And yes, i dont have those spikes in my home, And, HA is calculation too much power because of these spikes. And, i have 2 different type of LDR, same with both of them. Our electricity meter is 1000imp/kwh.
Anybody has the same problem, or ideas what to do ?