-
I was happily using the plotly card for plotting power entities with statistics enabled. Then, I tried doing the same with other measurements (kWh, %, temperature etc) and I found they were not plotted at all. When I disabled statistics for that waveform it got plotted just fine. Any ideas what may be getting wrong or how to debug it? I do not see any error messages. The code is a bit complicated but for the sake of completeness. The entity that is not plotted (unless I comment out statistic: section) is "SoC" - state of charge of battery in percents. I can see "SoC" showing up in the legend and the unit of axis y2 is changed to "%".
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi Andrzej, |
Beta Was this translation helpful? Give feedback.
-
I confirm this entity (among many others) is not available for use in the statistics card. I am new to Home Assistant and I was not aware of a distinction between entities with numeric values and entities which provide statistical data. An obvious follow-up question: how do I fix it? Does it have to be done at an integration level (which I do not control), can I add my own derived MQTT sensor template or is there a way of enabling statistics for an existing entity? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi Andrzej,
you most likely don't have statistics for that sensor. Try using a statistics card to confirm that