Apex Chart Daily Graph

I use apex chart to display history of my download usage per day.
But if i check why today data is incorrect, we can see the value is 494 for download based in this picture

but the sensor return around 440

and here my config

type: custom:apexcharts-card
graph_span: 7d
span:
end: day
header:
title: Data Transferred
show: true
all_series_config:
stroke_width: 2
type: column
update_interval: 1m
series:

  • entity: sensor.fw_rx_bytes
    name: Download
    color: green
    group_by:
    func: max
    duration: 1d
  • entity: sensor.fw_tx_bytes
    name: Upload
    color: blue
    group_by:
    func: max
    duration: 1d

Looks like your sensors are not resetting exactly at midnight but a bit after. Share the history graph for sensor.fw_rx_bytes zoomed in to around midnight.

Try changing that to func: last

Also in future please: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

hi @tom_l
Seem change to ‘last’ is working, let i monitor for some days.