gadgetchnnel / lovelace-card-templater

Custom Lovelace card which allows Jinja2 templates to be applied to other cards
121 stars 6 forks source link

Question: "create" attributes #49

Closed loeffelpan closed 2 years ago

loeffelpan commented 2 years ago

I'm new to your card and I'm wondering if it would be helpful in my case. Your entities: option can template states or attributes rendered by other cards. It is possible to "create" any templated attributes this way?

My case is this: I have a entity with an attribute departureWeekdayMask which is ynynyny. Every y or n is a 'yes' or 'no' for every weekday. In my lovelace I would like to display every weekday in a single attribute (with multiple-entitiy-row).

So can I template a state for an attribute which doensn't exist for real but for this specific card?

loeffelpan commented 2 years ago

I simply tried that. And it works. You can just template attributes, which do not exist. But the entity must exist.