Skip to content

v5.4.5

Choose a tag to compare

@AmoebeLabs AmoebeLabs released this 17 May 07:40
96d4bbc

A feature-packed release!

A new horseshoes section

A new section is added to the layout section to allow multiple horseshoes to be used and positioned on the card:

  • the definition is extended with xpos, ypos to position the horseshoe
  • radius, tickmarks radius, and the size of the horseshoe, arc_degrees have been added too
image
          layout:
            horseshoes:
              - entity_index: 0
                xpos: 50
                ypos: 50
                radius: 45
                tickmarks_radius: 43
                arc_degrees: 260
                show:
                  horseshoe: true
                  scale_tickmarks: true
                  horseshoe_style: colorstop
                horseshoe_scale:
                  min: 0
                  max: 40
                  width: 6
                  color: var(--secondary-background-color)
                  ticksize: 10
                horseshoe_state:
                  width: 12
                color_stops:
                  0: '#00bcd4'
                  20: '#4caf50'
                  30: '#ff9800'
                  40: '#f44336'

JavaScript templating

Templating has been extended with styles, color_stops, entities, and the horseshoe_scale. The latter makes it possible to use an input state to define min/max values from the horseshoe.

The variables section allows for defining templates and using them on all parts of the card. So you define a color stop once, and use it on lines, states, etc.

Icon coloring, localizations

Localizations have been added to the horseshoe so you get your local formatting for states, and translations!
Furthermore, Icon state coloring is now up to date by using sources from the Home Assistant frontend in this card.

Areas

The card now fetches areas from Home Assistant, so no need to define the area in the entities section anymore if you want to display the entity's location.

What's Changed

🚀 New features

  • feat: Experiment with generic template and dictlist features part 1 by @AmoebeLabs in #158
  • Part 1: Add Templates, ConfigHelper and ColorStops normalizers by @AmoebeLabs in #161
  • feat: Experiment with generic template and dictlist features by @AmoebeLabs in #165
  • feat: Allow more than 1 horseshoe configured and displayed in 'horseshoes' section by @AmoebeLabs in #169
  • feat: Add icon domain stuff and localizations from home assistant by @AmoebeLabs in #173
  • feat: Extend template engine with reusable variables and nesting by @AmoebeLabs in #175
  • feat: Revisit icon state colors once again by @AmoebeLabs in #177
  • feat: Add fire dom event to tap action from #78 by @AmoebeLabs in #179
  • feat: Add templates to entities configuration by @AmoebeLabs in #164

🧰 Maintenance

Other changes

New Contributors

Full Changelog: v5.4.4...v5.4.5