{% include 'sidebar.html' %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, msg in messages %}
{{ msg }}
{% endfor %} {% endif %} {% endwith %}

Sensors

Registered IoT devices and key metadata
Register New Sensor
Note: It is recommended to have at most 3 devices active at a time per user for optimal performance. You can activate or deactivate devices using the Edit button.
{% if sensors and sensors|length > 0 %}
{% for s in sensors %} {% endfor %}
Device ID Type Location Threshold Status Registered At Actions
{{ s.device_id }} {{ s.device_type }} {{ s.location or '-' }} {% set minv = s.min_threshold_effective %} {% set maxv = s.max_threshold_effective %} {% if minv is none and maxv is none %} - {% else %} {{ minv if minv is not none else '-' }} – {{ maxv if maxv is not none else '-' }} {% if s.threshold_source == 'custom' %} custom {% elif s.threshold_source == 'default' %} default {% endif %} {% endif %} {{ s.status }} {{ s.registered_at or '-' }}
{% else %}
No sensors registered yet. Click "Register New Sensor" to add one.
{% endif %}
{% include 'footer.html' ignore missing %}