I have some current transducers that monitor the power usage on various circuits, and send the current reading every 20 secs to HA via MQTT. They monitor things like the consumption of the waterheater, and this works well.
They are set up as sensors in HA, and when I view the graphs I see a sawtooth pattern instead of the expected pulses. I think it is because when the circuit is not drawing power, the sensor simply sends unchanging zero values every 20 sec, and because this is not a state change, nothing is recorded. At least that is my understanding.
What can I do to make the graph for the sensor display nonchanging date ?