设备列表和状态
{% for key in devices %}
{{ key }} {% if devices[key] == '开' %} 已开启(
关闭
) {% else %} 已关闭(
开启
) {% endif %}
{% endfor %}