ДЦ
Size: a a a
ДЦ
ДЦ
ДЦ
ДЦ
c
c
"{{ ((as_timestamp(now())|int-as_timestamp(states('sensor.uptime'))|int) / 60 )|int }}"
ДЦ
c
MM
LI
c
ДЦ
c
value_template: >-
{% set upt=((as_timestamp(now())|int-as_timestamp(states('sensor.uptime'))|int) / 60 )|int %}
{% set found=namespace(snapshot=None,time=0) %}
{% for snapshot in state_attr('sensor.snapshot_backup', 'snapshots') %}
{% if as_timestamp(snapshot.date) > found.time and snapshot.state == "Backed Up" %}
{% set found.time = as_timestamp(snapshot.date) %}
{% set found.snapshot = snapshot %}
{% endif %}
{% endfor %}
{% if upt >= 5 %}
{{ found.snapshot.name }} ({{ found.snapshot.size}})
{% else %}
Loading
{% endif %}
VC
c
c
c
c