question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Empty graph with entities without history states

See original GitHub issue

Describe the bug Empty graph with entities without state history. A similar problem #41.

To Reproduce Steps to reproduce the behavior:

  1. Stop update entity state, exp., sensor.voltage1 by mqtt publish
  2. Exclude entity in component recorder
  3. Only in test hass! Clear entity history states. Call service recorder.purge with data {"keep_days": 0, "repack": true}.
  4. Restart hass
  5. Set state for entity, exp. for voltage = 12.3
  6. Add mini-graph-card on view
type: custom:mini-graph-card
show:
  graph: bar
  labels: true
entities:
  - entity: sensor.volatge1
  - entity: sensor.volatge2
  - entity: sensor.volatge3
  1. See empty graph

Expected behavior Graph card show bars current entities state.

Screenshots 1 2

Home Assistant Version: 0.93 Tested: 0.92.2

mini-graph-card Version: v0.3.3

Additional context I exclude domain sensor and include entities those that are needed off history. Because i have a lot sensors and i want to see only current value.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kalkihcommented, May 16, 2019

Hey, Thanks for the extensive report! The graph is completely based on the entity history and will therefore not work without history data, (history data also includes the latest/current state), so this is kind of expected behaviour

Could possibly add a fallback to use the current state if no history is available.

Also, check out the bar-card, could possibly be used in place of this card for your use case https://github.com/custom-cards/bar-card

0reactions
stale[bot]commented, Apr 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

If my entity has not changed state in days, it gets purged from ...
I was debugging an issue where some of my sensors were disappearing from my lovelace dashboard's history graphs.
Read more >
Zero values show as current value · Issue #41 - GitHub
It appears that whilst the line graph is correct, hovering over a zero value ... Empty graph with entities without history states #89....
Read more >
Introducing the Knowledge Graph: things, not strings
So today I'm really excited to launch the Knowledge Graph, which will help you ... entities and their relationships to one another: things,...
Read more >
Data Points - Handling the State of Disconnected Entities in EF
The problem with disconnected data escalates as graphs of data get passed back and forth. One of the biggest problems is when those...
Read more >
How do I clear tracked entities in entity framework
This meant that I had to set tracked entries state to "Detached" without checking current state, so that my tests run all correctly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found