We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
I tried to copy the example in the docs, and added:
value_override: '"Changed: {last_changed|reltime()}"'
to my card. However, this does not result in relative times, but instead an output like:
"Changed: <rt>2024-08-26T21:53:45.731Z</rt>
How to reproduce Add the reltime() function in a template.
reltime()
Expected behavior I expected a relative time, like 5 minutes ago.
5 minutes ago
YAML configuration
type: custom:battery-state-card title: Battery levels value_override: '"Changed: {last_changed|reltime()}"' non_battery_entity: true default_state_formatting: false filter: include: - name: entity_id value: '*_last_seen' unit: null sort: - state
Entity debug data
Dev console errors
Screenshots
Version
I am using the latest version from HACS.
The text was updated successfully, but these errors were encountered:
Same here 👋🏼
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I tried to copy the example in the docs, and added:
to my card. However, this does not result in relative times, but instead an output like:
How to reproduce
Add the
reltime()
function in a template.Expected behavior
I expected a relative time, like
5 minutes ago
.YAML configuration
Entity debug data
Dev console errors
Screenshots
Version
I am using the latest version from HACS.
The text was updated successfully, but these errors were encountered: