SK
Size: a a a
SK
VT
SK
SK
SK
A

A
- type: entities
entities:
- entity: binary_sensor.leak_toilet_water_leak
secondary_info: last-updatedA
M
ДЦ
VT
SK
LI
ДЦ
VT
ДЦ
- name: GW3 NonResposing Devices
state: >-
{%- macro dev_list() -%}
{%- for state in states.sensor -%}
{%- if state.entity_id.endswith("_zigbee") and (as_timestamp(now())|int-as_timestamp(state.state)|int(0) > 2*60*60) -%}
X
{%-endif-%}
{%-endfor-%}
{%-endmacro-%}
{%- if dev_list()[0] == "X" -%}
{{dev_list()|list|length }}
{%- else -%}
0
{%- endif -%}
attributes:
list: >-
{%for state in states.sensor
if state.entity_id.endswith("_zigbee") and (as_timestamp(now())-as_timestamp(state.state) > 2*60*60) %}
{{ state.name}}: {{((as_timestamp(now())|int-as_timestamp(state.state))|int(0)/60)|int}}min{%- if not loop.last %};{%endif%}
{%-endfor%}
icon: mdi:zigbee
unit_of_measurement: 'ea'
LI
SK
ДЦ
M