{% set active_project = projects|selectattr('active')|first %}

🌐 Devices

{% if active_project %}

Managing {{ active_project.devices|length }} devices in {{ active_project.name }}

{% else %}

All devices across all projects

{% endif %}
{% if active_project and active_project.devices %}
{% for device_id in active_project.devices %} {% set device = devices|selectattr('id', 'equalto', device_id)|first %} {% if device %}

{{ device.emoji }} {{ device.name }}

{% if device.active %} ✓ Active {% endif %}

{{ device.description or 'No description' }}

Connection: {{ device.connection_type }}
Host: {{ device.host }}:{{ device.port }}
Protocol: {{ device.protocol }}
{% if device.firmware_version %}
Firmware: {{ device.firmware_version }}
{% endif %} {% if device.last_connected %}
Last Connected: {{ device.last_connected[:19] }}
{% endif %}
{% if device.tags %}
{% for tag in device.tags %} #{{ tag }} {% endfor %}
{% endif %}
{% endif %} {% endfor %}
{% elif devices %}
{% for device in devices %}

{{ device.emoji }} {{ device.name }}

{{ device.host }}:{{ device.port }}

{{ device.connection_type }}

{% endfor %}
{% else %}

No devices configured. Add a device to get started!

{% endif %}