Skip to content

Configuration

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

Settings → Devices & services → Librus Synergia → Configure. The menu has two parts: Settings (below) and Weekly AI summary (see Weekly AI summary). With more than one child, each child's entry has its own options.

Settings

Option Default What it does
Poll interval 20 minutes How often grades, attendance, the timetable and the rest are refreshed (10-180 minutes). Keep it modest - it's an unofficial API
Smart polling off Keeps the poll interval on school days between 06:00 and 22:00, but fetches at most hourly on days without lessons and at most every 3 hours at night
Quiet hours off, 23:00-06:00 Nothing is fetched from Librus during this window; entities keep their last state. The window can span midnight. Even the refresh action waits while it's on
Grade average shown as the sensor state weighted Weighted uses each grade category's weight (what Librus itself shows); arithmetic is a plain mean. Both stay available as attributes
Grade forecast thresholds 1.75, 2.75, 3.75, 4.75, 5.50 Minimum average for a 2, 3, 4, 5 and 6. Check your school's statute (WSO) - schools use different ones. Used by the Grade forecast sensor and Grade at risk
Point grade forecast thresholds (%) empty Only for schools that grade some subjects in points. Minimum percentage of points for a 2, 3, 4, 5 and 6 (e.g. 40, 55, 75, 90, 98; decimal commas and % are fine). With it, a subject graded only in points gets a forecast grade from its percentage and counts in the Grade forecast, Grade at risk, the honours badge, the AI summary and Assist. A subject that also has 1-6 grades keeps its usual forecast. Empty: point-graded subjects stay out of the forecast, since there's no common scale
Point grade thresholds per subject empty Only if a teacher uses a different scale. One subject a line: name, colon, the minimum percentage for a 2, 3, 4, 5 and 6 - e.g. fizyka: 30, 50, 70, 85, 96. Case and Polish letters don't matter (the subject id works too). These subjects use their own scale, the others the general one. Entries that match no subject or have unusable numbers are listed in the Grade forecast sensor's point_thresholds_unmatched
Hide subjects without grades off A subject's average sensor appears only with its first grade (e.g. Religia early in the year)
Merge lessons held at the same time on Lessons with the same start and end (a subject plus Wspomaganie, split groups) are one Timetable calendar entry, e.g. "Edukacja wczesnoszkolna + Wspomaganie", with all teachers and rooms. When only the parallel lesson is cancelled (e.g. the support teacher) and the other is held, the slot stays one entry: "Edukacja wczesnoszkolna (Wspomaganie odwołane)", with an "Odwołane:" line in the description. A slot cancelled entirely, and a cancelled lesson with its substitution, stay separate
Activities outside the timetable all three Synergia's timetable page has three extra lists: extra activities ("zajęcia dodatkowe"), the individualised learning path (ZŚK) and one-to-one teaching (NI). Ticked ones show in the Timetable calendar next to the lessons (0.12.34+). Untick the ones you don't want; a school without them simply has none. This week and next are asked for once an hour while there are some, every 6 hours while there are none (most schools), and at once when a new week starts - one request per kind
Other calendars with activities none Since 0.12.42. Calendars of yours (Local Calendar, Google, ...) with activities Librus doesn't know about - an after-school club, day-care, a sports class. Their events with a time go into the timetable calendar as activities outside the timetable, so every companion timetable card (weekly timetable, today's lessons, tomorrow, school hours), your phone and Assist's calendar show them. After 0.12.60 Assist's timetable answers and the weekly AI summary include them too. All-day events are left out, and so are this integration's own calendars. They don't move School start / School end or At school, which follow the lessons.
Subject colours none Since 0.12.44. The companion cards give every subject its own colour, the same in every card (a stripe on timetable cells, a dot before the subject in lists); the colours pick themselves and stay put. To choose some, write one subject a line: Matematyka: #2563eb - the name as in Librus (case and Polish letters don't matter, or the subject id) and any CSS colour (#2563eb, teal, rgb(37 99 235)). A line that doesn't work is listed in the School sensor's subject_colors_unmatched.
Calendar link for others off A private link to an .ics calendar for people without Home Assistant - see below. Versions 0.12.50 and newer
Emoji in calendar titles off An emoji in front of Timetable and Agenda calendar entries - "📐 Matematyka", "📝 [Sprawdzian] Chemia: ...", "🚌 [Wycieczka] ..." - easier to read on a phone or a watch. Copies made by Copy to calendar get it too. The companion cards show the titles without it (0.12.28+)
Student's number in the class register read from Librus Fill in only to override it. The Lucky number sensor uses it for is_yours
Fetch private messages (Wiadomości) on Off: the Unread messages sensor goes unavailable and no Wiadomości requests are made
Messages to fetch per mailbox 10 How many of the newest messages each mailbox list holds (received, sent, archive and the others), 10-50 - and so how long the Messages card's lists can get. More means a bit more data per refresh and larger sensor attributes. Raising it doesn't announce the older messages it brings in as new
Allow sending messages (beta) off On: the send_message / withdraw_message services and the Messages card's Reply / Write may write to teachers and the school. Changing it doesn't reload the integration; the Unread messages sensor shows it as sending_enabled
Let Assist open whole messages off On: Assist's librus_get_full_message tool may open a message to read all of it (Ask Assist). Opening a message marks it read in Librus, as in the Librus app. Changing it doesn't reload the integration; it applies from the next conversation. Since 0.12.48
Fetch announcements on Off: the Unread announcements sensor goes unavailable and the Announcements calendar isn't created
Fetch behaviour grade on Off: the Behaviour grade sensor goes unavailable
Fetch descriptive grades on Off: the Descriptive grades sensor goes unavailable
Fetch free days calendar on Off: the Free days calendar isn't created

The librus_synergia.refresh action (see Services) fetches straight away regardless of the poll interval, smart polling and the outage backoff, but not during quiet hours.

Calendar link for others

Turn on Calendar link for others and a new Calendar link sensor holds a private address ending in .ics. Anyone can add it to their phone (iPhone: Settings → Calendar → Accounts → Add Account → Other → Add Subscribed Calendar; Android / Google: Google Calendar on the web → Other calendars → + → From URL) - a grandparent, the other parent - without a Home Assistant account. Their calendar app checks it for changes on its own (usually every hour or so; Google Calendar can take several hours).

What's in it: this week's and next week's timetable (substitutions and cancellations as in the Timetable calendar), the Agenda (tests, trips, meetings) from 30 days back to 6 months ahead, the days off and the school announcements. Not in it: grades, absences, messages, and the events of Other calendars with activities (those are your own calendars). Building it reads the data the integration already has - it never makes the integration ask Librus for more. While the integration is reloading or waiting for a new password, the link answers "try again later" (HTTP 503) instead of "not found", so a calendar app doesn't drop the subscription.

The link works without logging in, so treat it like a key: anyone who has it can see the child's timetable. For it to work outside your home network, Home Assistant needs an external address (Settings → System → Network, or Home Assistant Cloud). To stop a link working - say you shared it with the wrong person - turn the option off and on again: you get a new link and the old one answers "not found".

Changing the login or password

Use Reconfigure in the entry's ⋮ menu (Settings → Devices & services) rather than deleting and re-adding the integration: entity ids, dashboards and automations stay intact. Reconfigure refuses to point an entry at a different Librus account; add a new entry for another child instead.

Subject and category names

Since 0.12.44, a step of its own in Configure: for families where someone doesn't read Polish. Every subject of the student (from the timetable, the standing plan and the grades) and every grade category in use is listed with a field for your name - Edukacja matematyczna → Maths, kartkówka → Quiz. An empty field keeps the Librus name.

  • Subjects: your names show everywhere instead of Librus's - entity names, attributes, events, the timetable and agenda calendars, Assist, the weekly AI summary and the companion cards. Subject colours and the point scales accept either name, and a renamed subject keeps its colour.
  • Grade categories: for ordinary, point and text grades, their events and the cards. Only the name changes; the weight and whether a grade counts stay the school's.
  • Agenda categories (Sprawdzian, Wycieczka...) keep their Polish names, because tests are recognised by them.

The names are stored as Librus name: your name lines; the School sensor's subject_names_unmatched / grade_category_names_unmatched list any that no longer match. Saving the step keeps the names it doesn't list (a category with no grades yet, since 0.12.52).

When a line stops matching

Since 0.12.44: when a line in Subject and category names, Subject colours or Point grade thresholds per subject matches nothing any more (the school renamed a subject, a typo), a repair appears under Settings → Repairs naming the lines. Fix lists the student's subjects (or grade categories) again with a field for your name; colours and point scales open as text. Saving drops the lines that don't match, and the repair goes away once everything matches.

Languages

The integration (entity names, Configure, actions, triggers and conditions, repairs, logbook lines, the labels of the weekly AI summary report) and the companion cards come in English, Polish, Ukrainian, Portuguese, Russian, German and French - Ukrainian and Portuguese since 0.12.44, Russian, German and French since 0.12.46. They follow Home Assistant's language; any other falls back to English. Data from Librus stays as the school writes it: use Subject and category names above to translate subjects and grade categories, and the weekly AI summary's Language option to have it written in another language.

Clone this wiki locally