Closed kaizersoje closed 4 months ago
This is about the whole expression with relative_time
.
Try to reproduce my test:
type: entities
entities:
- type: custom:template-entity-row
icon: mdi:bed-king
name: Bedroom
state: '{{relative_time(states.input_number.test_number.last_changed)}}'
- entity: input_number.test_number
secondary_info: last-changed
{{relative_time(states.input_number.test_number.last_changed)}}
Check this clip (GIF), wait till the end (~72 sec)
And same is with this card:
type: vertical-stack
cards:
- type: markdown
content: '{{relative_time(states.input_number.test_number.last_changed)}}'
- type: entities
entities:
- entity: input_number.test_number
secondary_info: last-changed
Probably a card is updated when the entity is changed. Since the entity is NOT changed, then the card is NOT updated.
Also, a conventional secondary_info
value seems to be updated periodically.
Has anyone found a work around for this? I see that the built-in entity row seems to work just fine with updating relative_time.
can be closed
I have created a row that displays how long a sensor value has changed. However, I have noticed that the value is not getting updated as expected.
It shows 33 minutes in the
more-info
dialog for the entity.The value in the template row gets updated only when I refresh the screen.