Skip to content

Commit

Permalink
fixup! fixup! Add last seen sensor to zwave node list
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-V committed Aug 12, 2024
1 parent 1a125f2 commit 18f387a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_templates/dashboards/zwave.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'type': 'custom:battery-entity-row',
'entity': entity.entity_id,
'name': entity.name | title | replace(': Node Status', ''),
'secondary': '{{ time_since(states(\'' + entity.entity_id | replace('_node_status', '_last_seen') +'\'), 2) }}',
'secondary': '{{ states(\'' + entity.entity_id | replace('_node_status', '_last_seen') +'\') | as_datetime | time_since(2) }}',
}] %}
{%- endif %}
{%- endfor %}
Expand Down

0 comments on commit 18f387a

Please sign in to comment.