Repository navigation
Entities
Every entity the integration creates, with its attributes. Each child (config entry) gets its own device with these entities; the device page shows the child's class as its model ("Klasa 7a by Librus", 0.12.28+). Some appear only when they apply: subject averages per subject, Point grades only at schools that grade in points, the weekly-summary entities only with the weekly AI summary set up. Parts you switch off under Configure report unavailable.
Events and their data are on the Events page.
Icons follow the state (the ones that depend on a number need Home Assistant 2025.6 or newer; older versions show the plain icon there): the averages and the grade forecast show the grade they point to (a circled 1-6), Rank shows its tier (medal, trophy, gold trophy, diamond), the count sensors switch to a calm icon at 0 (no unread messages, no unexcused absences, no changes to the plan, no homework), the streaks show a flame that goes out at 0, Lowest subject attendance turns to a warning below 75% and below 50%, Connection status shows a broken link while Librus isn't answering, the lucky number shows a party popper on the student's own number, and the school-day sensors show a sofa on a day off. Every action has its own icon in the actions list too.
| Type | Entity | Notes |
|---|---|---|
sensor |
Overall grade average | Average across every subject - weighted by default, or the plain arithmetic mean if you pick that under Configure; attributes carry both (average_weighted, average_arithmetic) plus average_semester_1/average_semester_2. A + and a - count as much as the school sets in Librus (usually +0.5 and -0.25). semester_summary sums up each semester for the Semester in numbers card: current (1 or 2; 2 also over the summer), library_books, and per semester (semesters -> "1"/"2", one not started yet is left out) its dates and progress, grades (count, distribution 1-6, most_common, sixes, ones, plus, minus, tests and tests_average, corrections, with_comments, per_week, average and average_change over the last 30 days, average_series week by week, best_week, busiest_day), subjects (each subject's semester average, best first), attendance (percentage, absences, excused, unexcused, late, absences_by_weekday Monday-Friday, last_absence), lessons (held, cancelled, substitutions), notes (positive, negative, neutral), homework, exams (done, upcoming), trips, badges and latest_badge Since 0.12.52 statistic_id names its daily series in long-term statistics (since the first grade, kept for good), which the Grade trend card charts. |
sensor |
Subject average (one per subject) | Discovered automatically from your account; attributes include the subject name (subject, and since 0.12.52 subject_librus: the name from Librus even when Subject names under Configure renamed it); statistic_id, the subject's daily average series in long-term statistics, since 0.12.52), full grade log, text grades (text_grades: grades a teacher entered as text, which aren't in the grade log), latest grade (with any teacher comments), the semester grade (semester_grade) and its proposal (proposed_semester_grade), the year-end grade (final_grade) and its proposal (proposed_final_grade), and per-semester / arithmetic averages; each entry in the grades list marks corrections (improves / improved) and, since 0.12.37, carries its category's weight and counts_to_average (false for a grade that doesn't count, Librus's "Licz do śr."). A grade the teacher edited after giving it (since 0.12.42) also has changed_at (when the integration noticed the edit - Librus keeps no date of it) and previous (the edited fields before the first edit, e.g. {"value": "bz"}); the same goes for text_grades, point_grades and the Descriptive and Point grades sensors' lists. Since 0.12.58 every entry in grades, point_grades and text_grades also has semester (1 or 2): the semester Librus files the grade under, which can differ from the one its date falls in (a grade entered after the semester boundary for work done before it), and the one the per-semester averages use. Kept for the school year; a whole category reweighted at once doesn't count. Forecast attributes: forecast_average/forecast_weight (the average and the sum of weights it's computed on), predicted_grade, next_grade_at, sixes_to_next_grade, ones_to_drop_grade, forecast_declining (see Grade forecast) |
sensor |
Grade forecast | The report card the averages point to: the state is the mean of every subject's forecast grade. Per subject (subjects, worst first): the average, the forecast grade, how many 6s lift it a grade (sixes_to_next) and how many 1s drop it (ones_to_drop), whether it fell by a grade in the last two weeks (declining) and the teacher's proposition once there is one. Also at_risk (subjects heading for a 1), declining, honours_average (at least 4.75, the average part of a certificate with distinction) and basis: the first semester's grades until the semester ends, then the whole school year. The thresholds are set under Configure - check your school's statute (WSO); the teacher decides the real grade. With the point grade thresholds set, point-graded subjects are in subjects too: percentage is set, average and the next threshold are percentages, and the 6s/1s counts are null; point_thresholds shows the general thresholds (null when not set), point_thresholds_by_subject the per-subject ones by subject name and point_thresholds_unmatched the per-subject entries that didn't work |
binary_sensor |
Grade at risk | On while any subject's average (or, with the point grade thresholds set, a point-graded subject's percentage) points to a 1 (device_class: problem); subjects (with how many 6s get it out) and declining in attributes |
sensor |
Point grades | Only at schools that grade in points or percent (e.g. 0-100). State: the share of points earned, weighted by category (only categories that count towards the average); subjects (percentage and count per subject) and recent (points, maximum, percentage, category, date, teacher, and since 0.12.54 the teacher's comments) in attributes. The subject average sensors also get points_percentage and point_grades, plus points_earned / points_possible (the weighted sums behind the percentage), points_percentage_semester_1 / _2 and points_statistic_id (the subject's daily percentage series in long-term statistics, " - punkty "), and librus_synergia.get_grades returns them too. Set the point grade thresholds under Configure to get them into the grade forecast; the subject sensor then also carries predicted_grade (with forecast_average and next_grade_at as percentages)
|
sensor |
Descriptive grades | Count of descriptive grades - grades in skills-based subjects, e.g. music in grades 1-3 (at schools that use them). grades lists all of them, newest first, and recent the newest five: subject, value (the grade Synergia shows), skill (what it is for, e.g. "Ekspresja muzyczna. Śpiew"), teacher, comments, date, semester. They don't count towards the average. Grades from the new descriptive grading some schools use for grade 1 from 2026 are listed here too, with requirements (what the grade confirms); their exact fields haven't been seen on a real grade yet |
| Type | Entity | Notes |
|---|---|---|
sensor |
Absences | Count of real absences, excused or not (marks Librus counts as present - present, late, released ("zwolnienie") - are left out); excused_count/unexcused_count, a per-type breakdown with presence_by_type, total_records, last_absence_date, an independently computed percentage (works even if your school hides it), and by_date/by_semester/by_weekday/by_subject breakdowns in attributes. Since 0.12.48: late_count (late arrivals this school year), late_this_semester, and a late count in each by_semester entry. Since 0.12.42: recent lists the latest absences and late arrivals, newest first (date, lesson_no, subject, kind: unexcused / excused / late, type). |
sensor |
Unexcused absences | Just the count of absences that still need a justification (the Absences sensor's state blends excused + unexcused); recent_dates in attributes, split into awaiting_justification (no justification sent yet) and justification_sent (sent, waiting for the school) |
calendar |
Absences | One all-day entry per day with an absence or a late arrival: "Nieobecność nieusprawiedliwiona (3 lekcje)", "Nieobecność usprawiedliwiona (2 lekcje)", "Nieobecność: 1 uspr., 2 nieuspr." or "Spóźnienie (lekcja 3)". The description lists the lessons ("1. Matematyka – Nieobecność") and adds "Usprawiedliwienie wysłane" once a justification for an unexcused day was sent. Built from the attendance already fetched (0.12.28+) |
sensor |
Absence justifications | The justifications you submitted in Librus: the state is how many are still waiting for the school's decision; accepted/rejected/pending counts and a recent list (decision: accepted / rejected / pending, sent date, days and lessons covered, status, your message, teachers notified) in attributes |
sensor |
Lowest subject attendance | Attendance percentage of the subject where it is lowest - the one to watch for the 50% rule, below which a student can be left unclassified. subject names it, subjects lists every subject (total/present/absent/percentage), at_risk the ones already under 50%. Since 0.12.22, absence_budget estimates, per subject, how many more lessons can be missed this semester before more than half of them are missed: left (negative once already over half), absent, allowed, held (lessons with attendance so far) and remaining (lessons still to come, counted from the known timetable weeks and the standing weekly plan, free days left out). fewest_absences_left / fewest_absences_left_subject give the tightest subject with at least 5 lessons so far; absence_budget_semester and absence_budget_until say which semester. Without the standing plan there's no estimate (None) |
| Type | Entity | Notes |
|---|---|---|
sensor |
Next lesson | Subject name of the next lesson that will actually take place (cancelled slots skipped); attributes carry start/end (the sensor changes exactly when a lesson starts or ends), teacher, classroom, period number and substitution flag, plus what a substitution changes: change (substitution / room_change / moved), room_changed, original_classroom, original_subject, original_teacher
|
sensor |
Current lesson | Subject name of the lesson happening right now (unknown during breaks / outside school hours); attributes include start/end and the same period detail |
sensor |
School start | When the next first lesson starts (device_class: timestamp): today's until it starts, then the next school day's. Cancelled lessons and free days are skipped. An automation can trigger on it with an offset - see the School Wake-Up blueprint |
sensor |
School end | When the last lesson of today (or of the next school day) ends - for pick-up reminders |
sensor |
School day end | Since 0.12.44. When the school day really ends: the last lesson, or a later activity that day (Librus's own activities outside the timetable and the Other calendars with activities from Configure). Today's until it passes, then the next school day's. Attributes: date, is_today, lessons_end and activity (the activity that ends the day, or none when the lessons do). For pick-up reminders when a club or day-care keeps the child longer; School end stays the lessons' own end |
binary_sensor |
School day today / School day tomorrow | On when that day has lessons that aren't cancelled and isn't a free day - a condition for alarm clocks, heating schedules and the like. first_lesson_start/last_lesson_end in attributes |
binary_sensor |
Test within 24 hours | Since 0.12.37. On from 24 hours before a test or a short test ("kartkówka") in the Agenda until it starts - for a desk lamp, "no games tonight" or a reminder. The start is the entry's own time if it has one, else that day's first lesson of its subject, else the day's first lesson. Switches exactly on time. exams (start, subject, kind: test/quiz, category, text), tests and quizzes in attributes |
binary_sensor |
At school | On from the first lesson's start to the last lesson's end today, breaks included (by the timetable, not by location). Re-checked every minute |
sensor |
Changes to the usual timetable | How this week and next differ from the standing weekly plan Librus keeps: the state is how many lesson slots from today on differ; changes lists them (date, lesson number, kind: cancelled / missing / extra / subject / room / no_lessons, the subject and room now and as planned, and the free day's name for a day without lessons). unknown until the plan has been read (once a day) |
calendar |
Timetable | Lesson plan, including known cancellations and substitutions. A lesson's title says what changed - "(odwołane)", "(zastępstwo)", "(zmiana sali)" or "(przeniesiona)" - and the description adds the details: "Zastępstwo za: Chemia, Jan Kowal", "Zmiana sali: 12 → 21", "Przeniesiona z: 29.09, lekcja 3". Lessons held at the same time are one entry ("Edukacja wczesnoszkolna + Wspomaganie"; with only the parallel lesson cancelled, "Edukacja wczesnoszkolna (Wspomaganie odwołane)") unless Merge lessons held at the same time is turned off. This week and next come from every refresh; other weeks are fetched when a dashboard or Assist asks, up to 12 weeks back or ahead. With Emoji in calendar titles on, each title starts with the subject's emoji ("📐 Matematyka"). Since 0.12.37, a lesson with a test in the Agenda that day (same subject) gets a "Sprawdzian: ..." or "Kartkówka: ..." description line with the Agenda text; the title stays as is. Since 0.12.34 it also has the activities outside the timetable chosen under Configure (extra activities, individualised learning path, one-to-one teaching): at their own times, the teacher on the first description line and the kind on the second unless the title already says it, "(odwołane)" when cancelled. Their uid starts with librus-extra-. They don't count as lessons for the school-day sensors, attendance or the bell schedule |
calendar |
Free days | The whole school year's holidays/breaks: the school-wide days off plus the days off of the student's own class (other classes' days are left out). A class's day off is named after its type ("Wycieczka", "Rekolekcje"...). A day that frees only some lessons shows as "Rekolekcje (lekcje 3–4)" with the lessons' times in the description, and still counts as a school day for the school-day sensors |
| Type | Entity | Notes |
|---|---|---|
sensor |
Next exam | Date of the next graded assessment on the Agenda (device_class: date); attributes carry days_until, lessons_left (0.12.50+: lessons of that subject after today and before the test, cancelled ones left out - also in each upcoming entry), subject, category, the topics to revise (topics: the lessons taught in that subject since the previous test, each with date, lesson number, topic and absent, a topic entered for several lessons listed once with dates and lessons; topics_since, missed_topics) and an upcoming list with the same for every test (plus more_topics when older topics were left out; work out each test's days left from its date). this_week / next_week (0.12.24+): the tests in that Monday-Sunday week - tests, quizzes (short tests, "kartkówka"), total and items (date, subject, category, kind) Since 0.12.42: recently_added lists the Agenda entries of any category that appeared in the last 30 days (seen: when the integration first saw it - Librus gives no add date; date, time, category, subject, content); entries already there when you updated aren't listed. |
sensor |
Homework assignments | Count of real "zadania domowe" (distinct from the Agenda calendar's general feed below), with a recent attribute - the assignments due from a month ago on, soonest first, up to 30 - (id/topic/category/text/date/due date/teacher, the files the teacher attached (attachments: id/filename, see Services), and the subject - worked out from the teacher, since Librus doesn't say; empty when that teacher teaches more than one subject) |
todo |
Homework | The homework assignments as a Home Assistant to-do list, with due dates. Ticking one off is stored in Home Assistant (Librus has no "done" flag), so it's shared across phones and family members; done items drop off 14 days after their due date, items not ticked off 7 days after it (since 0.12.54; before that they stayed all year) |
calendar |
Agenda | Tests, trips, parent meetings and other school events, prefixed with their category (e.g. "[Sprawdzian] ...") when known. All-day entries; when Librus gives an entry a time, the description starts with it ("17:30 · ...", in versions after 0.12.9). With Emoji in calendar titles on, the category's (or subject's) emoji leads the title ("📝 [Sprawdzian] ..."). To copy these into a family calendar, see Copy to calendar |
sensor |
Lesson topics | What was taught: the state is how many of today's lessons have a topic in Librus; today and recent (the last 31 days - 14 before 0.12.60: date, lesson number, subject, subject_id (0.12.60+), topic, trip, and absent when the student missed that lesson) in attributes; older topics come from the get_lesson_topics action. Handy for catching up after an absence. Past lessons in the Timetable calendar get a "Temat: ..." line too. catch_up is the latest absence (within three weeks): from/to/days, the day back (back_on, back_today), the lessons missed (date, lesson number, subject, topic) and the homework given meanwhile. Since 0.12.60 periods lists every absence of those three weeks the same way, oldest first (absence days more than 3 days apart are separate absences; the top level stays the latest one) |
sensor |
Next school trip | Date of the next school trip (device_class: date); destination, route, transport, coordinator, days_until, upcoming and past in attributes |
| Type | Entity | Notes |
|---|---|---|
sensor |
Behaviour notices | Count of every notice, with a short recent attribute (the last five) including the resolved category name and sentiment (positive/negative/neutral). Since 0.12.56 also positive (praise) and negative (reprimands), counted over all notices; a neutral notice is in neither |
sensor |
Behaviour grade | Formal "ocena zachowania" (distinct from Behaviour notices above) - state is the most recent grade: the classic-scale short form (e.g. "bdb") or the points for a points-based school. name ("bardzo dobre") and the teacher's comment in attributes, plus a recent list (grade/name/category/date/comments) and history: every grade of the year, oldest first, with month - the month it is for ("YYYY-MM", read from a "za IX/26" comment, else the month it was added) - and grade/name/value/category/semester/date |
| Type | Entity | Notes |
|---|---|---|
sensor |
Unread messages | Count of unread Wiadomości in your main inbox, with sender/topic/preview for the most recent ones - as many as Messages to fetch per mailbox under Configure, 10 by default - (including each message's id/mailbox, for the get_message service) and a mailbox_breakdown attribute (inbox/notes/alerts/substitutions/absences/justifications/trash unread counts). Also carries full preview content (not just a count) for three secondary mailboxes - substitutions_recent, alerts_recent and justifications_recent - plus the messages you sent (outbox_recent, each with a receiver) and the archive of past school years (archive_recent, read once a day). A mailbox your account doesn't have stays empty and is listed in missing_mailboxes. The routine poll never marks anything read - only the message list/count endpoints are used for that. Shows unavailable (not 0) if your school hasn't enabled the messages module. In outbox_recent, a message sent in the last 30 days also has read_by (who has read it), read_count and receivers_count. sending_enabled says whether Allow sending messages (beta) is on under Configure (the Messages card shows Reply / Write only then) |
calendar |
Announcements | The school's notices on the days they're valid - "Upały - skrócone lekcje" across 15-17.11 - with the text in the description. A notice valid for two weeks or longer (a school rule from September to June) shows on its first day only, with "Ważne do ..." in the description. Read ones too; no extra request. Exists while Fetch announcements is on. Versions 0.12.50 and newer |
sensor |
Unread announcements | Count of unread notices, with recent (the unread ones: id, subject, dates - no text) and notices (the latest 15, read ones too, with the full text and a read flag). Mark them read with the mark_announcement_read action
|
sensor |
School documents | How many documents the school shares with parents (forms, regulations); recent lists them with a link to Synergia (it works only in a browser logged in to Librus); the companion card downloads a document through Home Assistant instead (/api/librus_synergia/school_file/<device id>/<id>) |
sensor |
Library books | How many books the school library lent to the student; books lists them (title, author, kind, lent_on, due_date, extendable). For the free textbooks lent for the whole year, Librus's due_date is nominal and has usually passed - it is not a return deadline. Empty when the school has no library module. Checked every 6 hours |
sensor |
Cancelled lessons this year | How many lessons were cancelled since the school year started (from Librus's list of plan changes, not just the two timetable weeks); substitutions, lessons_held (lessons held this year, from the lesson topics) and cancelled_percent (the share that didn't take place), since, by_subject and by_month, by_date (each day's changes, for a calendar) (cancelled / substitutions each) and recent (the latest 10 changes: date, lesson_no, subject, teacher, kind, new_subject, new_teacher, classroom) Since 0.12.42: recently_added lists the plan changes that appeared in the last 30 days, with seen (when the integration first saw them). |
sensor |
Lucky number | The most recently published "szczęśliwy numerek" - Librus can publish the next school day's number a day ahead, so check the is_today/day attributes rather than assuming the state is always for today. is_yours says whether it's your child's class-register number, read from Librus automatically (override under Configure; student_number_source says which) |
sensor |
School | Name, town/street, head teacher, contact details, a bell_schedule attribute (period number -> start/end time) and subject_teachers (subject -> its teachers), both derived from the timetable. Since 0.12.44 also subject_palette (a colour slot 1-16 of the cards' palette for each of the student's subjects), subject_colors (the colours picked under Configure → Subject colours) and subject_colors_unmatched, subject_names_unmatched and grade_category_names_unmatched (Subject names / Grade category names lines that didn't work). |
sensor |
Class | Class name (e.g. "7d"), homeroom teacher, the student's student_number (class register number), semester/school-year boundary dates |
| Type | Entity | Notes |
|---|---|---|
sensor |
Attendance streak | Days since the last real absence - falls back to days since the school year started for a perfect-attendance student, rather than unknown
|
sensor |
Good behaviour streak | Days since the last negative behaviour note, same fallback as Attendance streak |
sensor |
Good grades streak | Consecutive most-recent numeric grades of 4 or better - a non-numeric mark (bz/np/...) doesn't break it, only an actual low grade does. With point_grade_thresholds set, point grades count too, each as the grade its percentage makes on its subject's scale |
sensor |
Rank | A cosmetic Bronze/Silver/Gold/Diamond tier derived from your overall average (device_class: enum; with point_grade_thresholds set, point-graded subjects join it at their forecast grade, weighted by their number of point grades - the average the Hero card shows, so average can differ from the Overall average sensor) - points_to_next_tier in attributes shows how much more average you need for the next one up. It also carries the badges for the Achievements card: achievements (every key earned so far with its title and date) and badges (all 20 badges with tiers, the earned dates, and value/target/unit for the progress towards the next tier) |
| Type | Entity | Notes |
|---|---|---|
sensor |
Weekly summary | Only with the weekly AI summary set up. The AI's headline for the week; status, sections (grades/attendance/behaviour/next_week, plus school_news if enabled - each {status, text}), advice, warning, week_from/week_to, next_run and error in attributes. With Written to: Parent and student (0.12.30+) these are the parent's text and versions holds both ({parent, student}, each with headline, status, sections, summary, advice, warning). Comes with a Generate weekly summary button and an Automatic weekly summary switch |
button |
Generate weekly summary | Only with the weekly AI summary set up: writes the summary right away |
switch |
Automatic weekly summary | Only with the weekly AI summary set up: pauses or resumes the weekly schedule (the button still works) |
| Type | Entity | Notes |
|---|---|---|
event |
New grade / New behaviour note / New absence / New lateness / Timetable change / New homework / New agenda entry / Grade changed / Agenda entry changed / Absence justification decided / New school trip / New school document / School library / New announcement / New message / Message read / Grade forecast changed / Achievement unlocked | One event entity per kind, for building automations in the UI ("When the New absence event fires") without blueprints or event names; every occurrence also lands in the logbook. The event type tells kinds apart where it matters: a note is positive/negative/neutral, an absence excused/unexcused, a timetable change canceled/substitution, a grade change and an agenda change changed/removed, a justification decision accepted/rejected/changed, a forecast change up/down, a library book lent/returned. The event's attributes carry the same details as the bus events
|
| Type | Entity | Notes |
|---|---|---|
sensor |
Connection status | Diagnostic: ok, degraded (some part of Librus failed this cycle and its last good copy is shown), stale (Librus isn't answering - the last data is shown) or error (no usable data). Stays available during an outage; data_source (live/stale/cache), last_success, last_attempt (the last failed attempt, empty while everything works), last_error, failures, next_attempt, fallback_sections and degraded_endpoints in attributes. Since 0.12.52, last_success and next_attempt are filled only while the state isn't ok (the Last update sensor has the time of the last success) |
sensor |
Calendar link | Only while Calendar link for others is on under Configure: the private .ics link to copy into a phone's or Google's "subscribe to a calendar". See Configuration. Versions 0.12.50 and newer |
sensor |
Last successful update | Diagnostic: when Librus last answered a full refresh (device_class: timestamp) - also how old the data shown during an outage is. Kept across restarts |
Getting started
Features
Reference
Elsewhere