Closed bkenobi closed 1 year ago
Oh, I would have submitted this to the forum or at least checked to see if there was a similar question, but the forum has been taken offline.
I beleive this is somehow related to duplicate values being added. I have 2 values being added from MQTT at the same time. Both come in via the same message. In this case, one value bounces around (humidity, sensor varies by 5%) but the other is fairly stable (temperature, usually the same, but periodically jumps by 2 deg C). The stable value has gaps whereas the other looks correct.
I have several weather type sensors that I use in my HA setup. I interface these to HG via MQTT messages processed by other controllers. When HG sees a new MQTT message come in via an APP I wrote (based on your example), it writes the new data to the appropriate sensor and type of data (temperature, humidity, etc).
This works fine for data that is always changing. However, if the data value is constant (which will be the case for inside home temperature), I see a huge section of missing data in the plot.
I assume this is done to reduce storage in the HG database, but there should be a flag to turn this feature off. Alternately, the latest data should be kept and the previous identical value dropped. This means there would be 2 identical to show a horizontal line. The current method keeps the last unchanged value and then the first new value resulting in a slope where none exists.