I have some graphs showing my PC’s usage with data drawn from HASS.Agent. When the PC is off, it shows NaN as the entities are unavailable. How can I go about making it display “OFF” when the PC isn’t running?
My initial thought is to make a template sensor for each one that returns OFF when NaN and the entity_id when the state is available, but if there’s a better way to go about it I’d like to get some insight. Many thanks.
I’ve been using this widget to track rainfall in my garden, but coming up against a funny problem. When I set it to ‘bar’ each bar shows the actual total reading for the day when I hover over the bar. But if I use ‘line’ (much prettier), it seems to show the average between days when I hover over the points.
Any ideas on how to set the hover points to show the daily reading instead when using the line?
The card has an option “entities” - which is a list of entries.
Each entry is “entity object”.
An example was provided here.
In your case it should be like
type: custom:mini-graph-card
entities:
- entity: sensor.unraid_disk_1_usage
attribute: total_size
...
- entity: sensor.unraid_disk_1_usage
attribute: free_space
...
...similarly for other numerical attributes
You may try using card-mod (you will have to learn how to use it); also you may try other people’s forks of this card (cannot suggest you a particular fork).
BTW, you got currently ONE reading for THREE sensors - so you got THREE bars.
After some period you may see more bars (6,9,12,…) - depends on your sensors, points_per_hour & hours_to_show.
In this case you may want to see a value for every bar (i.e. “last value” & “some old value”) - which is not supported by this card & cannot be achieved by card-mod.