{% if tile.state == 'online' %}{{ pill('Online', 'online') }}
{% elif tile.state == 'restarting' %}{{ pill('Startet neu', 'warning') }}
{% elif tile.state == 'offline' %}{{ pill('Offline', 'offline') }}
{% elif tile.state == 'disabled' %}{{ pill('Deaktiviert', '') }}
{% else %}{{ pill('Unbekannt', 'warning') }}{% endif %}
{{ tile.name }}
{% if detailed %}{{ tile.ip }}
{% endif %}
{% if tile.location %}
{% endif %}
{% if detailed %}
-
{% if tile.switch %}
- Switch
- {{ tile.switch }} / {{ tile.port }} {% endif %} {% if tile.latency_ms %}
- Antwortzeit
- {{ tile.latency_ms | millis }} {% endif %} {% if tile.last_change_at %}
- Seit
- {{ tile.last_change_at | dt }} {% endif %}
Details
{% if current_user.has('devices.execute') and tile.restart_methods %}
{% set method = tile.restart_methods[0] %}
{% endif %}
{% if current_user.has('devices.edit') and tile.state == 'disabled' %}
{% endif %}
{% endif %}