{% for device in network %}
{% endfor %}
{{ device.id }}{% if not device.locked %}{% else %}{% endif %}
{{ device.description }}{% if not device.locked %}{% endif %}
{{ device.location }}{% if not device.locked %}{% endif %}
{{ device.ip_address }}{% if not device.locked %}{% endif %}
{% if device.type == 'RelayDevice' %}
{% for sub_device in device.sub_devices %}
{% endfor %}
{% elif device.type == 'LightStrip' %}
{% for n in range(24) %}
{% endfor %}
{% endif %}
{{ sub_device.id }}
{{ sub_device.description }}{% if not device.locked %}{% endif %}