mampfes / esphome_obis_d0

esphome external component to support meters with OBIS D0 interface
MIT License
45 stars 7 forks source link

Sensors sometimes unavailable #22

Open oischinger opened 3 months ago

oischinger commented 3 months ago

Hi there. First of all thanks for this great project. I was able to set this up quickly and I get all the relevant data into Home Assistant. However I noticed that my energy Dashboard in Home Assistant goes crazy with the "Energy Provided" sensor. Even though the value barely changes HA sees a huge amount of energy returned to grid. I noticed that the values are sometimes jumping to unavailable for a very short time. It seems to be when the data doesn't match the regex. I fear this is what confuses HA

Is there a way to ignore those unavailable states?

mampfes commented 3 months ago

Hi, unavailable values should not confuse HA. But if you get unavailable regularly you probably have a bad visual connection. This may cause erroneous readouts which definitely confuses HA. I had a similar issue at the beginning and could solve it completely with the help of a 3D printed fixture which exactly positions my sensor in front of the LED.