This should go into the raw config editor, at the very top under resources.
See this guide for a good gif of that step. Save and exit the raw config editor.
Then add another card through the edit UI like you normally would but select empty card or whatever it’s called (should be at the very bottom).
Paste the following code, remember to not put a dash (-) before the type in the bottom config as this is automatically added by the editor.
Thanks for the help.
I did place the code in raw editor.
Now although everything is installed ok (i hope) again when I go to the entity card i get the following.
In the fronded the are no errors but the card is empty
Not needed when using HACS, it’s normally useful to make sure the cache is cleared when updating to a new version of the card manually but HACS handles the caching for you.
My apologies if I am repeating something already within the previous 906 posts… (I did have a quick scan through)
I am trying to set this up over the top of a picture-elements card. It works, but I would like to change the mini-graph-card’s background transparency so that I basically just have the graph line over the underlying picture. Can that be done?
Also, is there a way to make it so the graph will show the value at any point along the graph line when hovering the mouse? (like how the core history graph does)
The graph uses the card background set in your theme. If you don’t want to make all your cards transparent you can make individual cards transparent with card-mod by applying this style:
Is it possible to replace the icon with state value instead? I would like to make it a little bit slimmer and have “name” and “state” on the same row if possible?
Can´t change the hours to show and points per hour. Added the two lines already in different areas of this code and nothing changes it actually. The temp values are correct, nighttime I saw you github link.
I still think there is something odd with the state_map in my opinion.
I have now been using the input_number and it is working fine, but I also left the binary sensor there to check it and start to use it when the time was right… and now that binary sensor it’s apparently working fine, but when I add it to the graph to replace the input_number, it does not appear, feels like the on/off is not transalated to 1/0
aggregate_func: max
entities:
- entity: sensor.hourly_gas
hour24: true
group_by: hour
hours_to_show: 24
line_width: 2
name: Gas consumption
points_per_hour: 60
show:
graph: bar
labels: true
type: 'custom:mini-graph-card'
When I compare to the normal history graph, I could see abnormalities, so I opened the same graph in a new private tab in FF, then I get a correct graph. Here an example:
Original graph: