ДЦ
Size: a a a
ДЦ
VC
VC
c
c
ДЦ
c
LI
VC
V
ДЦ
ДЦ
value_template: >-
{%- set upt=((as_timestamp(now())|int-as_timestamp(states('sensor.uptime'))|int) / 60 )|int %}
{%- set found=namespace(snapshot=None,time=0) %}
{%- if upt >=5 %}
{%-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 %}
{%- else %}Unknown{%endif%}
V
ДЦ
c
ДЦ
V
ДЦ
FF