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.
- chore: bumps version to 0.17.0 by @gh-action-bump-version
- update doc index & format, code smells by @warmfire540
- auto-entities support - thanks @misc-brabs! by @warmfire540
- docs moved to gh pages by @warmfire540
- integration card uses name_by_user for matching by @warmfire540
- integration card include_devices & exclude_devices accept jinja - thanks @LenirSantiago by @warmfire540
- hidden entity respect - thanks @misc-brabs! by @warmfire540
- Properly handle renamed devices (#42) by @l00k
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
Full Changelog: 0.16.0...0.17.0