Skip to content

4.8.0

Latest

Choose a tag to compare

@jpettitt jpettitt released this 02 Aug 22:54

What's new

Jinja templating, rendered server-side by Home Assistant and updated live whenever the entities a template references change. Any supported option containing {{ }} is treated as a template: name, icon, icon_color, secondary_info text, hide_if (string form or hide_if.template), and the new template: option that replaces the displayed value entirely. Each template gets an entity variable holding the owning entity's id.

- type: custom:multiple-entity-row
  entity: sensor.next_ferry
  name: "Next ferry {{ state_attr(entity, 'time') }}"
  hide_if: "{{ is_state('binary_sensor.ferry_service', 'off') }}"
  entities:
    - entity: sensor.travel_time
      template: "{{ states(entity) | round(0) }} min"

Full documentation: docs/templating.md. A template: result is shown verbatim — do rounding in the template, format: is ignored. hide_if templates hide on true/yes/on/1. Templated rows open directly in the code editor, since Jinja can't be round-tripped safely through the visual editor.

wrap: true reflows entities onto multiple lines instead of overflowing the card on narrow screens.

Fixed

  • Custom width/justify-content styling of .entities-row had no effect since 4.7.0 (#411)
  • Clicking the name or header of a toggle: true entity did nothing since 4.7.0 (#415)
  • Entities using name: ' ' sat a line higher than their siblings since 4.7.1, misaligning toggles and values (#418)
  • unit: overrides ignored on state values of integrations with translated units, e.g. Analytics Insights (#413)

Note for upgraders: the #411 fix restores the pre-4.7.0 DOM, which also drops HA's .text-content/.state wrapper styling (text-align: right, direction: ltr). If you added CSS to compensate during 4.7.x, you may want to revisit it.

Full Changelog: v4.7.1...v4.8.0