How come most of these values are unknown or 0, for this markdown card?
and from the YAML editor:
type: markdown
title: Samsung Health
content: |-
{% set sm_sensors = states
| selectattr('entity_id', 'search', 'sensor.')
| selectattr('name', 'search', 'SM-S918U')
| sort(attribute='last_updated', reverse=true)
| list %}
{% if sm_sensors | length > 0 %}
{% for s in sm_sensors -%}
{{ as_local(s.last_updated).strftime('%I:%M:%S %p') }} {{ s.name }} = {{ s.state }} {{ s.attributes.unit_of_measurement if s.attributes.unit_of_measurement is defined }}<br>
{%- endfor %}
{% else %}
None - No matching sensors found
{% endif %}
FYI: I have the Galaxy S23 Ultra (SM-S918U) and a very old original Galaxy Watch (SM-R805U) -
Thoughts anybody?
