{% include 'sidebar.html' %}

Register Sensor

Add a new IoT sensor and keys
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, msg in messages %}
{{ msg }}
{% endfor %} {% endif %} {% endwith %} {% if error %}
{{ error }}
{% endif %}
Enter device ID and click "Request Key" to generate keys on Raspberry Pi
{% if not sensor_types or sensor_types|length == 0 %}
⚠️ No sensor types found. Please check database or add sensor types first.
{% endif %}
Your device will publish its key automatically. Paste manually only if needed.
Required only when status is active. You can register as inactive first.
Default: {{ default_min if default_min is not none else '-' }} to {{ default_max if default_max is not none else '-' }}
Cancel
{% include 'footer.html' ignore missing %}