{% from "macros.html" import temp_class, batt_class %} {% if sensors %}
{% for sensor_id, readings in sensors.items() %}
📡 {{ sensor_id }} {% if device_active %} {% endif %}
{% if readings %} {% set latest = readings[0] %}
🌡 Temp
{{ "%.1f"|format(latest.temperature) }}°C
💧 Humidity
{{ "%.1f"|format(latest.humidity) }}%
🌀 Pressure
{{ "%.0f"|format(latest.pressure) }}hPa
🔋 Battery
{{ latest.battery_pct }}%
Last: {{ latest.ts.strftime('%H:%M:%S') if latest.ts else '—' }} {{ readings | length }} readings
{% else %}

No recent readings

{% endif %}
{% endfor %}
{% else %}
📡

No sensors detected — seed data with make seed

{% endif %}