Empty graph with entities without history states
See original GitHub issueDescribe the bug Empty graph with entities without state history. A similar problem #41.
To Reproduce Steps to reproduce the behavior:
- Stop update entity state, exp.,
sensor.voltage1
by mqtt publish - Exclude entity in component
recorder
- Only in test hass! Clear entity history states. Call service
recorder.purge
with data{"keep_days": 0, "repack": true}
. - Restart hass
- Set state for entity, exp. for voltage =
12.3
- 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
- See empty graph
Expected behavior Graph card show bars current entities state.
Screenshots
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:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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!