Juice

An IOT hub

{% for device in network %}
{{ device.id }}{% if not device.locked %}{% else %}{% endif %}
{{ device.description }}{% if not device.locked %}{% endif %}
{{ device.location }}{% if not device.locked %}{% endif %}
{% if device.type == 'RelayDevice' %}
{{ device.ip_address }}{% if not device.locked %}{% endif %}
{% elif device.type == 'LightStrip' %}
{{ device.mqtt_root }}{% if not device.locked %}{% endif %}
State


Red
Green
Blue
Animation
Delay
{% elif device.type == 'LixieClock' %}
{{ device.mqtt_root }}{% if not device.locked %}{% endif %}


{% endif %}
{% for sub_device in device.sub_devices %}
{% if sub_device.type == 'RelayOutlet' %}
{{ sub_device.id }}
{{ sub_device.description }}{% if not device.locked %}{% endif %}
{% elif sub_device.type == 'NeoPixel' %} {% elif sub_device.type == 'LixieDisplay' %} LixieDisplay {% endif %}
{% endfor %}
{% endfor %}