HABpanel Graphs assume straight line between distant measurements

My zWave devices don’t really report a lot when they’re not doing any current. Certainly not in the persistent tables (mySQL). So Watts will report as 0 when they switch off, and then 18 hours later it reports 20W or so… But the graphs draw that s a triangle. Assuming that they can interpret the interval linearly.

The reports looks like

2017-12-22 21:08:56.172 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 4.4 to 3.3
2017-12-22 21:09:12.162 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 3.3 to 4
2017-12-22 21:09:47.788 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 4 to 3.5
2017-12-22 21:10:11.836 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 3.5 to 4.4
2017-12-22 21:10:45.619 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 4.4 to 0
2017-12-23 09:01:25.048 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 0 to 3.3
2017-12-23 09:01:40.858 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 3.3 to 3.7
2017-12-23 09:01:52.886 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 3.7 to 3.1
2017-12-23 09:02:35.040 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 3.1 to 3.7
2017-12-23 09:02:40.016 [vent.ItemStateChangedEvent] - ZWWaterfallSwitch_ElectricMeterWatts changed from 3.7 to 3.5

Which basically looks like a weird sawtooth when graphed.

You could change your persistence strategy to every minute or so.

Hmm… Hadn’t considered that. I’ll see how well that goes for volume.

Thanks.