Closed Mariusthvdb closed 3 months ago
Currently using this on all uses of the template entity row:
state: >
{{states(config.entity)}} {{state_attr(config.entity, 'unit_of_measurement')}}
just a long overdue update on this:
state: >
{{states[config.entity].state_with_unit}}
works nicely ;-)
as does:
{{ states(config.entity, with_unit=True) }}
closing with that
scroll down this post please... FR add
unit
to: if this evaluates to an entity id, icon, name, state and image will be taken from that entity unless manually overriddenusing:
doesn't respect the entity unit_of measurement:
which is set, as displayed in the second entity of the screenshot. It is also showed in the more-info when clicked in the template-entity-row entity:
and in states:
please have a look? thanks
btw, I do know we can use:
but it would simply be cool if an entity, without a non set
state:
would respect the unit of that entity, just like does for the icon, name state and image, as described in the optionsmaybe I should simply rephrase this as: please add
unit
to that list.....