RomRider / apexcharts-card

📈 A Lovelace card to display advanced graphs and charts based on ApexChartsJS for Home Assistant
MIT License
1.08k stars 75 forks source link

unsure if issue or feature request .... strange states vs. graphs (-x days) in combination with "now" #701

Open commentsonly opened 2 months ago

commentsonly commented 2 months ago

See snappy. Values mismatch the graphs.

Version of the card Version: 2.0.4

To Reproduce This is the configuration I used:

series:
  - entity: sensor.byd_battery_box_premium_hv_state_of_charge
    name: heute
    extend_to: now
  - entity: sensor.byd_battery_box_premium_hv_state_of_charge
    name: gestern
    offset: '-1d'
  - entity: sensor.byd_battery_box_premium_hv_state_of_charge
    name: vorgestern
    offset: '-2d'

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior If having added a "now" I would have expected to get the values of now -1d and now -2d besides the actual today value presented in the states since this is what's of interest. Any idea about how / if this is possible somehow? I failed in adding a "now" below of the entities itself, looking for something such as "show: states: now or such like. But perhaps I still missed the documentation on how to get this solved.

rr

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

RomRider commented 1 week ago

try with in_header: before_now for eg.

commentsonly commented 1 week ago

sorry I don't get that, since I can't find an example on how to make us of that. I do understand the description and it likely would do what I expected but a quick try did lead to nothing.

RomRider commented 1 week ago
series:
  - entity: sensor.byd_battery_box_premium_hv_state_of_charge
    name: heute
    extend_to: now
  - entity: sensor.byd_battery_box_premium_hv_state_of_charge
    name: gestern
    offset: '-1d'
    show:
      in_header: before_now
  - entity: sensor.byd_battery_box_premium_hv_state_of_charge
    name: vorgestern
    offset: '-2d'
    show:
      in_header: before_now