Bug in insights diagram?

This diagram shows a compressors On/Off state… looking at the latest 24h it looks as expected…

But when selecting 7 days or more the diagram does not make sense at all :smiley:
The data is still 0 or 1…

Ideas? Bug that Athom needs to take a look at?

Older values will get averaged.

so it will take the sum and divide on hours or something like that?

are you sure that’s the issue?.. looking at the scale its 0,0,0,1,1,1… feels like a config problem :stuck_out_tongue:

Also it still shows per hour… so I don’t think this is a sum problem…

Yes

You could argue that it’s a bit silly to round the values (0.2, 0.4, 0.6, 0.8) to the nearest integer, but I wouldn’t necessarily call it a bug.

hmm… not sure I follow…
In this diagram there should be only 2 different values right?.. 0 and 1…

My guess is that it’s using multiple data files/buckets: one for the last 24 hours, with a fine resolution and one for 7 days (or perhaps more) with a coarse resolution.

At some point it will average the values for a range of hours, say 12:
(1 + 1 + 0 + 0 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0) / 12 = 0.58

It will only store that value for that 12-hour period.

hmm… but the value I see in the peaks are still just 1… (Switching between 24h and 7 days)
Here’s a video to show…
Kapture 2023-01-25 at 11.31.41

It could of course be that the values being shown in the 7-day graph are also rounded to the nearest integer (and then shown with a single decimal after the separator).