Install the File Editor add-in, then you can upload the file within that (in a browser)
brilliant, i will try that, thank you!
this is great, am getting there but struggeling to get the OilTank.png being recognised.
Up to now I have the level showing but I dont have a background.
Where should that /local/icons/OilTank.png be copied too? many thanks!
many thanks. just tried and uploaded to www/icons/OilTank.png and copied Blue407’s code and adapted the entity name to what i use. . the preview in the visual editor shows the right litres but not the png…
Clearly i am doing something dumb, just not sure what…
type: custom:fluid-level-background-card
card:
show_state: true
show_name: false
camera_view: auto
type: picture-entity
image: local/icons/OilTank.png
entity: sensor.oil_volumeft
entity: sensor.oil_volumeft
fill_entity: sensor.oil_volumeft
background_color:
- 61
- 114
- 62
severity:
- value: 20
color: red
- value: 25
color: yellow
- value: 40
color: blue
full_value: 100
grid_options:
rows: 5
columns: 9
Try clearing your browser cache and restart HA.
thank you for trying to help me! I just tried both but no luck.
You need to add / to image: /local/icons/OilTank.png
Thanks Zenia, I understood that my www folder is the same as /local/ as per LiQuid_cOOleds reponse? https://community.home-assistant.io/t/card-for-showing-liquids-fluid-level-background-card/758558/66?u=theragingfury
no, i did not manage.
My png is in the www/icons/OilTank.png where, as i understand, www represents local.
My code
I notice that you mentioned the pdg shoudl be uploaded to /local/icons/png but your code has only /local/***png (without the /icons/ maybe that is my error?
I mean, it was missing backslash symbol / in front of local, but now I can see in your screenshot it is there.
it works. I uploaded the png via the configuration using the upload function rather that the file i manually copied using file editor.
Thank you both!