Describe the bug
Empty graph with entities without state history. A similar problem #41.
To Reproduce
Steps to reproduce the behavior:
sensor.voltage1 by mqtt publishrecorderrecorder.purge with data {"keep_days": 0, "repack": true}.12.3mini-graph-card on viewtype: custom:mini-graph-card
show:
graph: bar
labels: true
entities:
- entity: sensor.volatge1
- entity: sensor.volatge2
- entity: sensor.volatge3
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.
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
Most helpful comment
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