Skip to content

Weekly AI summary

Michal Zaniewicz edited this page Dec 3, 2026 · 21 revisions

Once a week, an AI model of your choice writes a summary of the school week, split into sections:

Section What it covers
Grades Every grade from the week (subject, category, weight, teacher's comment), including text and descriptive grades, what went well and what didn't, and how the averages moved compared with a week earlier
Attendance Absences and lates, which subjects were missed, what still needs to be excused, lessons the school cancelled or covered with a substitute, subjects where at most 3 more lessons can be missed this semester
Behaviour Notes from the week, the behaviour grade, streaks
Next week Tests and other agenda entries, homework due, cancelled lessons and substitutions, free days and, after 0.12.60, activities outside the timetable (Librus's own and the calendars picked under Other calendars with activities)
From the school (optional) The important points of the week's messages and announcements: meetings, trips, payments, deadlines

On top: a one-line headline and an overall status (good / OK / needs attention). At the bottom: 2-4 concrete to-dos for the coming week, and a warning only when something really needs attention. Each section has its own status too, so a dashboard card or a notification can show at a glance what to look at.

Weekly AI summary card

Shown in the Weekly AI summary card (example text).

How to set it up

You need Home Assistant 2025.8 or newer (it uses the built-in AI Task feature). There is no API key in this integration: the summary goes through whatever AI provider you already use in Home Assistant.

  1. Add an AI provider to Home Assistant, if you don't have one yet: Settings → Devices & services → Add integration, then pick e.g. Google Generative AI (Gemini), OpenAI, Anthropic or Ollama (runs locally, nothing leaves your network). Follow its own setup (usually an API key from the provider). It creates an AI Task entity such as ai_task.google_ai_task.

  2. Turn the summary on: Settings → Devices & services → Librus Synergia → Configure → Weekly AI summary, and fill in:

    Field What to choose
    AI model The AI Task entity from step 1. Leave it empty to turn the feature off
    Written to Parent: third person, with what you can do. Student: written to your child directly, encouraging. Parent and student (0.12.30+): two separate texts each week, one for each - see below
    Language Automatic (default) writes in Home Assistant's server language, set under Settings → System → General - not the language of your user profile. Polish or English (0.12.32+), Ukrainian or Portuguese (0.12.44+), Russian, German or French (0.12.46+) force that language, e.g. a Polish summary in an English-language Home Assistant
    Day and Time When the weekly summary is written (default Sunday 18:00). It covers the 7 days up to that day and previews the 7 days after
    Include messages and announcements Off by default. On adds the From the school section, but then private messages and school announcements are sent to the AI provider
    Your notes for the AI Optional context, e.g. "Eighth-grade exam this year, chemistry is the weaker subject"

    Save. Three new entities appear on the student's device:

    • Weekly summary sensor: the headline is its state; sections, to-dos and warning are attributes.
    • Generate weekly summary button.
    • Automatic weekly summary switch.
  3. Write the first one now: press Generate weekly summary. It takes a few seconds; then the Weekly summary sensor shows the headline.

  4. Show it on a dashboard with the Weekly AI summary card from Librus Synergia Cards (type: custom:librus-ai-summary-card, no other configuration needed). It has tabs for the sections and its own Generate now button.

  5. Get it on your phone with the Weekly AI Summary Report blueprint. It sends a short report (headline, section statuses, to-dos) or the full text. You choose the sections, and can limit it to weeks that need attention. Telegram or WhatsApp shows only the first part? Set Send as: One message per section - each section then arrives as its own message ("(1/4)", "(2/4)"...), with the headline in the first one and the to-dos in the last one. Put {{ message }} in your action ({{ message_full }} works too and holds the same part). If even one section is too long - CallMeBot for WhatsApp takes about 800 characters - set Longest message (e.g. 700) and a long section is split into more messages.

With more than one child, set it up on each child's entry. Each one gets its own summary, and the blueprint's title says whose it is.

One for you, one for your child

Pick Written to: Parent and student (0.12.30+) to get two texts each week: one written to you, one written to your child. Then import the Weekly AI Summary Report blueprint twice: one automation sends to your phone with Version: For the parent, the other to your child's phone with Version: For the student. An automation left at Any sends both texts.

On a dashboard, the Weekly summary sensor shows the parent's text; the student's is in its versions attribute. This costs two AI requests a week instead of one.

What gets sent, and when

  • Only data the integration already has: no extra Librus requests. The AI provider receives the student's name and class, the week's grades (with teachers' names and comments), the averages and the grade forecast, the week's attendance, behaviour notes and the behaviour grade, streaks, how many absences are still unexcused, the topics of the lessons missed this week, justifications still waiting or rejected, the lessons the school cancelled or covered with a substitute (this week and the year's totals), new school documents, and the coming week's agenda (with the topics to revise for each test), homework due (with the names of attached files), school trips, timetable changes and days off, plus your own notes for the AI. Messages and announcements are included only if you turned that on. Use a local model (Ollama) if nothing should leave your network.
  • One request a week (two with Parent and student), plus any time you press the button. A run missed because Home Assistant was off is made up within 2 days. A week with no lessons and nothing coming up (holidays) is skipped, so it costs nothing.
  • The Automatic weekly summary switch pauses the schedule; the button still works.
  • The result is stored, so a restart does not pay for the same summary twice. A new summary fires the librus_synergia_weekly_summary event (once per text, with audience saying whose it is).

If something doesn't work

  • "The AI Task integration is not available" when opening Weekly AI summary: update Home Assistant to 2025.8+ and add an AI provider first (step 1).
  • The sensor stays empty after pressing the button: look at its error attribute. It holds the provider's message, e.g. an exhausted quota or a wrong API key.
  • "Reached the output token limit" (or a similar max-tokens error): the answer didn't fit in the provider's limit. The summary is a few sections of text, and with thinking turned on the model's reasoning counts against the same limit. Claude's default of 3000 tokens is often too little, especially in Polish. Go to Settings → Devices & services → your AI provider → the AI Task entry (it has its own settings, separate from the conversation agent) → Configure, untick the recommended model settings and raise the maximum tokens to about 8000. You pay for the tokens the model actually writes, not for the limit. Turning thinking off also helps and makes the summary cheaper. The data sent to the AI is a few thousand tokens and doesn't need any limit. Versions from 0.12.37 add this hint to the error itself.
  • The summary is in the wrong language: set Language under Configure → Weekly AI summary (0.12.32+), then press Generate weekly summary. Automatic follows Home Assistant's server language (Settings → System → General), not your profile, and a note such as "write in Polish" in Your notes for the AI doesn't override it. The card's own labels have a separate Card language option in the card editor.
  • The text is written by an AI model. It is told to stick to the data it gets, but it can still make mistakes, so check anything important in Librus itself.

Clone this wiki locally