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

Report settings

Scheduled reports

Manage recipients and recurring PDF report schedules.

Recipients

Email addresses that can receive scheduled reports.

{% for recipient in recipients %} {% else %} {% endfor %}
Email Name Status
{{ recipient.email }} {{ recipient.name or "n/a" }} {{ "Active" if recipient.active else "Paused" }}
No recipients configured.

Add schedule

Schedules send the previous complete day, week, or month.

Active schedules

Each schedule is guarded by a database run record, so a period is sent once.

{% for schedule in schedules %} {% else %} {% endfor %}
Recipient Cadence Device Status
{{ schedule.recipient.email }} {{ schedule_labels[schedule.id] }} {{ schedule.device.name if schedule.device else "All devices" }} {{ "Active" if schedule.active else "Paused" }}
No scheduled reports configured.

Recent runs

The scheduler writes one run record per schedule and report period.

{% for run in runs %} {% else %} {% endfor %}
Created Recipient Cadence Period Status Error
{{ run.created_at }} {{ run.scheduled_report.recipient.email }} {{ run.scheduled_report.cadence|title }} {{ run.period_start }} to {{ run.period_end }} {{ run.status|title }} {{ run.error or "" }}
No scheduled report runs yet.
{% endblock %}