Closed Mariusthvdb closed 3 years ago
What's the difference from
state: {{ states(config.entity) }} {{'Day' if state_attr(config.entity, 'days') == '1' else 'Days'}}
?
Not sure ;-) Guess put like your template, we 'fake' a State and Unit into 1 line, while separating like in mine, we adhere to the HA usage of state and unit_of_measurement ?
I think this adds unnecessary complexity. The difference between value and unit doesn't matter because this is purely for display purposes.
Would be really nice if we could further refine the frontend using the templates in your card, by adding support for the Unit field, eg:
thanks for considering !