%- for sensor in states.sensor %}
{%- if sensor.attributes.device_class == ‘battery’ and sensor.state | int(0) < 20 %}
- {{ sensor.name }}: {{ sensor.state }}%
{%- endif %}
{%- endfor %}
(Просмотров 8, 1 за сегодня)
%- for sensor in states.sensor %}
{%- if sensor.attributes.device_class == ‘battery’ and sensor.state | int(0) < 20 %}
- {{ sensor.name }}: {{ sensor.state }}%
{%- endif %}
{%- endfor %}