plan-d-io / P1-dongle

ESP32 firmware to receive, parse, store and forward energy data coming from the P1-port enabled digital meters
MIT License
21 stars 3 forks source link

Total active power no longer updated #16

Closed michaelpiron closed 2 months ago

michaelpiron commented 3 months ago

Since 20minutes ago, the dongle stopped publishing "total_active_power" values, whereas "active_power_consumption" & "active_power_production" continue to be updated.

MQTT log: data > devices > utility_meter has no "total_active_power" topic anymore: image

Sensor "active_power_injection" still being updated: image

Sensor "total_active_power" stopped being updated: image

michaelpiron commented 3 months ago

A few minutes later, the "total_active_power" topic has appeared again in the MQTT log, and the HA sensor is again being updated: image

There has been a gap for 23 minutes: image

What could be causing this?

Epyon01P commented 3 months ago

I believe the spurious reading detection is acting up again. Which release channel are you on? This should be fixed on the develop channel.

michaelpiron commented 3 months ago

I’m on dev channel, and have been on version 2.22 when the issue happened:

IMG_3627

jantielens commented 3 months ago

Same here. For a couple of weeks, the "Total active power" value "gets stuck" randomly, and for some random time. image

Epyon01P commented 3 months ago

Thx, very helpful. This is due the way the dongle currently blanks invalid readings received from the meter. I will overhaul the whole function to also fix #15 .

Epyon01P commented 3 months ago

Pushed a (long overdue) fix to dev. Should also fix #15 . The issue had to do with negative values (injection) being incorrectly flagged as invalid. This slipped through my testing routine (I don't have solar panels).

Epyon01P commented 2 months ago

Fixed in V2.23.