Hello Everyone,
I have configured a pulse_meter sensor to measure my electricity consumption at home. But I get strange results from pulse_meter I want to share with you.
Please find first my sensor configuration:
sensor:
# Used for Energy Monitoring
- platform: pulse_meter
name: 'Electricity Power Usage'
id: sensor_pulse_meter
device_class: power
state_class: measurement
internal_filter: 1s
internal_filter_mode: PULSE
accuracy_decimals: 3
pin: D5
total:
name: "Electricity Energy Usage"
accuracy_decimals: 1
binary_sensor:
- platform: gpio
name : "Electricity pulse"
pin: D6
I have also added a gpio binary sensor for debugging.
First of all, I use the internal filter of the pulse_meter with 1s filtering and PULSE mode (for a very conservative filtering of my signal and be sure, I donāt get a wrong pulse).
My signal is ON for around 5 seconds and OFF for 2 minutes. So I expect to get a signal with a frequency of around 0,5 pulse / min.
The problem is, pulse_meter always report additional pulses that are not possible. Here an example of the log I get from the sensor:
You can notice two different problems. The first one, I get regularly a log for a pulse with a frequency of 0.01397 pulses / min. So with a period of more than 71 min. Which is not possible in the time frame. I just measured for 10 minutesā¦
The second problem is a pulse with a high frequency. Hier 15673 pulses / min. That means a period of 3,8 ms. Which is again not possible, because my filter configuration doesnāt allow the detection of pulses with a period less than 2s (1s high, 1s low).
Do you have any idea, what could be the origin of this behaviour? It seems for me pulse_meter implementation is somehow buggyā¦
Thanks for your help!


