Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After updating HA to 2022.12.0 apexcharts stopped working with statistics as source of the data #449

Closed
4 tasks done
cziter15 opened this issue Dec 8, 2022 · 7 comments
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@cziter15
Copy link

cziter15 commented Dec 8, 2022

Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser
  • I verified that I'm really running the lastest version in my browser console
  • I checked if there is another issue opened with the same problem

Description:
After updating to latest home assistant core (from 2022.11.0 to 2022.12.0:

  • Charts for long term statistics stopped working.
  • Infinite loading spinner is displayed.

Versions of the card:

  • 2.0.1
  • master

To Reproduce use this yaml (you need modify entity id)

type: custom:apexcharts-card
header:
  show: true
  title: Fuel usage for latest 30 days
  show_states: true
series:
  - entity: sensor.dzienne_zuzycie_pelletu
    statistics:
      type: state
      period: day
    name: Fuel usage
graph_span: 30d
span:
  end: day

Screenshots
image

Expected behavior

  • Chart is properly displayed when the data is sourced from long term statistics.

Desktop:

  • OS: Windows 10
  • Browser: Chrome 108.0.5359.98

Additional context

  • Unknown command errors in console (see below).
@cziter15 cziter15 added the bug Something isn't working label Dec 8, 2022
@michaelblight
Copy link

michaelblight commented Dec 8, 2022

Don't you hate it when you spend ages typing up a bug, only to find somebody else doing the same and they submit first! My graphs are doing the same after upgrade to 2022.12, and both use long term statistics.

Further info to add, there are errors in the console for my two graphs:

image

One of my graphs displays some of the chart if I change HA tabs (but not browser tabs). Here is the before:

image

And here is the after if I change HA tabs. The two green lines and grey background plot appear, although the green lines are wrong - before they were more "spread out" horizontally. However, the graph is missing the orange line that should be plotted (the N/A in the title). If I refresh it goes back to the above with "Loading".

image

@cziter15
Copy link
Author

cziter15 commented Dec 8, 2022

This issue is likely caused by:
https://developers.home-assistant.io/blog/2022/11/16/statistics_refactoring/
home-assistant/core@d794f4e

@appsheld
Copy link

appsheld commented Dec 8, 2022

Me too, after update to HA Core 2022.12.0.

@RomRider
Copy link
Owner

RomRider commented Dec 8, 2022

Duplicate of #417.

@chatziko
Copy link

chatziko commented Dec 8, 2022

Just installed v2.0.2, problem is fixed, thanks!!

@cziter15
Copy link
Author

cziter15 commented Dec 8, 2022

Thanks, RomRider. I checked but didn't find that. Closing.
2.0.2 has been released and update is visible in HA.

@cziter15 cziter15 closed this as completed Dec 8, 2022
@seagyn
Copy link

seagyn commented Jan 4, 2023

Just leaving this here as I couldn't find it in search. Console error:

{code: "unknown_command", message: "Unknown command."}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants