github homeassistant-extras/device-card 0.17.0
0.17.0 - Hidden Entity Filtering, Renamed Device Support, Jinja Templates, auto-entities & new documentation ๐Ÿ‘–๐Ÿชœ

5 hours ago

Documentation moved to GitHub Pages ๐Ÿ“š

Full documentation is now hosted at homeassistant-extras.github.io/device-card. The README has been slimmed down with quick start and installationโ€”see the docs for configuration, examples, and troubleshooting.

๐Ÿ”— Auto-Entities Support

Added entity config property as a convenience for use with the auto-entities card. When auto-entities generates device cards, it passes entityโ€”the card now accepts this and resolves the device automatically. Combine auto-entities filtering with device-card zoom for filtered device dashboards.

type: custom:auto-entities
card:
  type: grid
card_param: cards
filter:
  include:
    - domain: sensor
      attributes:
        device_class: temperature
  options:
    type: custom:device-card

โœจ Integration Card Jinja Template Support

Both include_devices and exclude_devices can be a list or a jinja template. Values can be device IDs or names, with or without wildcards and regex. You can dynamically filter devices based on entity states, attributes, or any other template expression that returns a list.

include_devices โ€“ show only matching devices:

type: custom:integration-card
integration: zwave_js
include_devices: |
  {{ expand(integration_entities('zwave_js'))
    | selectattr('state', 'in', ['dead'])
    | map(attribute='entity_id')
    | map('device_attr', 'id')
    | reject('match', 'None')
    | unique
    | list
    | sort
  }}

exclude_devices โ€“ hide matching devices:

type: custom:integration-card
integration: zwave_js
exclude_devices: |
  {{ expand(integration_entities('zwave_js'))
    | selectattr('state', 'in', ['dead', 'unknown'])
    | map(attribute='entity_id')
    | map('device_attr', 'id')
    | reject('match', 'None')
    | unique
    | list
  }}

The card automatically updates when entities referenced in the template change.

๐Ÿ” Hidden Entity Filtering

Hidden entities are now automatically filtered out from device cards, matching the default behavior

๐Ÿท๏ธ Renamed Device Support

Device cards now properly display user-renamed device names (name_by_user) instead of the default device name. include_devices and exclude_devices also match against the user-defined name.

User Contribution! Thanks @l00k

โšก Integration Card Render Optimization

Hass updates no longer re-render every device card in the integration card. Device cards now receive updates via events and handle them themselvesโ€”only re-rendering when their device data actually changes.


What's Changed

  • Properly handle renamed devices by @l00k in #42
  • Hidden Entity Filtering, Renamed Device Support, auto-entities & new documentation ๐Ÿ‘–๐Ÿชœ by @warmfire540 in #44

New Contributors

  • @l00k made their first contribution in #42

Full Changelog: 0.16.0...0.17.0

Don't miss a new device-card release

NewReleases is sending notifications on new releases.