Skip to content

v5.4.7-dev.7

Pre-release
Pre-release

Choose a tag to compare

@AmoebeLabs AmoebeLabs released this 13 Jun 10:16
e83dab5

Add format: option in entities section to gain more control over formatting of the displayed state. With the implementation of localization, Home Assistant took control over most of the formatting. This feature takes some of the control back to the user of the card.

format:
  separator: false  # remove separator
  decimals_max: 1  # maximum decimals
  decimals_min: 0  # minimal decimals

or the raw state, ie no formatting:

format:
  raw_state_keep: true # keep raw entity state. No formatting, no locale, nothing
  raw_state_clean: true  # remove underscores from raw state

And combine this with CSS to capitalize the state.

  styles:
    text-transform: capitalize

This means that the state low or very_high will be displayed as Low and Very High

Or even another locale/country:

format:
  locale: de

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
  • feat: Add state mapping support to horseshoe by @AmoebeLabs in #226
  • feat: Add format options in entity definitions to regain control over formatting by @AmoebeLabs in #232.
    Thanks to @kkqq9320 for issue #230 !

🧰 Maintenance

  • chore: Remove vx versions of functions and classes for dev3 by @AmoebeLabs in #216

📚 Documentation

Full Changelog: v5.4.7...v5.4.7-dev.7