v5.4.7-dev.5
Pre-release
Pre-release
A 2025 feature request to show an SVG or Image instead of the Icon itself!
On the left the Kleenex pollen radar which uses a state map to fetch an external SVG.
And on the right an external SVG has replaced the default 'power' Icon.
The state map in the Icon section configuration:
state_map:
map:
- state: 'low'
icon: url(/local/images/kleenex/pollen_weed_low.svg)
- state: 'moderate'
icon: url(/local/images/kleenex/pollen_weed_moderate.svg)
- state: 'high'
icon: url(/local/images/kleenex/pollen_weed_high.svg)
- state: 'very_high'
icon: url(/local/images/kleenex/pollen_weed_very_high.svg)Specification of icon using an URL:
entities:
- entity: sensor.dsmr_reading_electricity_currently_delivered
decimals: 2
name: 'Electricity'
area: ':35:'
# icon: url(/local/icons/icon-test.png)
icon: url(/local/images/tomorrow/pollen_grass_high.svg)What's Changed
🚀 New features
- feat: (beta) Add labels and ticks to horseshoe by @AmoebeLabs in #212
- feat: Add external json color palettes to support darklight mode for custom colors not in the theme by @AmoebeLabs in #214
- feat: Extend same_as with named tags, and auto-ids when not assigned based on index in list, delta's and calc() functions by @AmoebeLabs in #218
- feat: Add static constants and ref support for reusable layout configuration by @AmoebeLabs in #221
- feat: Add display svg or image instead of icon by @AmoebeLabs in #225
🧰 Maintenance
- chore: Remove vx versions of functions and classes for dev3 by @AmoebeLabs in #216
Full Changelog: v5.4.7...v5.4.7-dev.5