{% load i18n vite %} {{ sensor.name }} · {% trans "Settings" %} {% vite_asset "frontend/src/entries/settings.js" %}
← {% trans "Settings" %}

{{ sensor.name }}

{% if messages %}{% endif %} {% if token %}
{% trans "Copy this token now. For security reasons it will not be shown again." %} {{ token }}
{% endif %}
{% with status=heartbeat %}

● {{ status.1 }}

{% endwith %}

{% trans "Last heartbeat" %}: {{ sensor.last_heartbeat|date:"j M Y, H:i"|default:"—" }}

{% trans "Last submission" %}: {{ sensor.last_submission|date:"j M Y, H:i"|default:"—" }}

{% trans "Token prefix" %}: {{ sensor.token_prefix|default:"—" }}

{% trans "Created" %}: {{ sensor.created_at|date:"j M Y, H:i" }}

{% trans "Rename" %}

{% csrf_token %} {{ form.name }}{{ form.name.errors }}

{% trans "Device access" %}

{% if sensor.is_active %}{% trans "Enabled" %}{% else %}{% trans "Disabled" %}{% endif %}

{% csrf_token %}

{% trans "Reissue API token" %}

{% trans "The old token will immediately stop authenticating." %}

{% csrf_token %}

{% trans "Remove sensor" %}

{% trans "This disables the device and revokes its token. Historical events remain linked to it." %}

{% csrf_token %}