{% extends "base.html" %} {% block title %}Dashboard - SwitchBot Temps{% endblock %} {% block content %}

Today so far

Temperature dashboard

Local timezone: {{ timezone }}. Collector interval: {{ collect_interval_seconds // 60 }} min.

Make report
{% if devices %}
{% for device in devices %} {% set reading = latest.get(device.id) %} {% set stat = stats.get(device.id) %}

{{ device.name }}

{{ device.device_type }}
{% if reading %}
{{ "%.1f"|format(reading.temperature) if reading.temperature is not none else "n/a" }}°C {{ reading.humidity if reading.humidity is not none else "n/a" }}% RH
Day low
{{ "%.1f"|format(stat.low) if stat else "n/a" }}°C
Day high
{{ "%.1f"|format(stat.high) if stat else "n/a" }}°C
Battery
{{ reading.battery if reading.battery is not none else "n/a" }}%
{% else %}

Waiting for the first reading.

{% endif %}
{% endfor %}

Day graph

Temperature readings from midnight to now.

{% else %}

No devices yet

Start the collector and it will populate device names from the SwitchBot API automatically.

{% endif %} {% endblock %}