MK
Size: a a a
MK
WM
В
В
Ⓣ
В
Ⓣ
В
{% set domains = ['sensor', 'binary_sensor', 'switch','light'] -%}
{%- for domain in domains -%}
{% set ns = namespace(counter = 0) -%}
{%- for item in states[domain] if ((item.state == "unavailable") or (item.state == "unknown")) -%}
{%- set ns.counter = ns.counter + 1 -%}
{%- endfor %}
{{ ns.counter }}
{%- endfor %}
0
0
0
2
Д
D
В
{% set ns = namespace(counter = 0) -%}
{% set domains = ['sensor', 'binary_sensor', 'switch','light'] -%}
{%- for domain in domains -%}
{%- for item in states[domain] if ((item.state == "unavailable") or (item.state == "unknown")) -%}
{%- set ns.counter = ns.counter + 1 -%}
{%- endfor %}
{%- endfor %}
{{ ns.counter }}
AS
В
AS
- wait_template: "{{ is_state('binary_sensor.mega_motion', 'on') }}"
Д
Д
V
Д
V
A