{% for airPurifier in airPurifiers %} # {{ airPurifier.name }} - platform: xiaomi_miio host: {{ airPurifier.ip }} token: '{{ airPurifier.token }}' name: '{{ airPurifier.name }} Purifier' {% endfor %}