Monster card

Update on 6th of July: now filtering supports attributes!

Update on 12th of July: changelog added https://github.com/ciotlosm/custom-lovelace/blob/master/monster-card/changelog.md

As some of you know, in 0.72 a magical type of card called entity-filter was available in Lovelace. This card allowed for very smart content grouping without the need to specify a static list of entity_ids.

This card however was recently changed to allow only filtering on state, leaving users that desired even more flexibility without a toy.

I decided to take some code out of the original card and with guidance from @eddi89 I was able to bring back the card with more options under the name monster-card.





You can find the code here

Instructions

The instructions are also found on the above repo.

Download monster-card.js Place the file in your config/www folder Include the card code in your ui-lovelace.yaml

resources: - url: /local/monster-card.js?v=1 type: js

Note: You can change v=1 to a higher number whenever updating code to avoid having to clear cache in all browsers

Write configuration for the card in your ui-lovelace.yaml

- type: "custom:monster-card" card: type: glance title: Monster filter: include: [{}] exclude: - entity_id: "*yweather*" - domain: group - domain: zone

- type: custom:monster-card card: type: glance title: Monster filter: include: - domain: device_tracker options: secondary_info: last-changed attributes: battery: 53 source_type: gps

You can find more examples in the docs.

Reload your Lovelace tab (no need to restart Home Assistant or other things) and you should see the card.

PROFIT!

FAQ: https://github.com/ciotlosm/custom-lovelace#faq

if you like the cards so much that wish to express your gratitude.