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