# WebUntis Entities & Services This page lists all available entities and services for the WebUntis Home Assistant integration. Replace `` with your actual WebUntis integration device name. --- ## Entities | Entity ID (English) | Entity ID (German) | | -------------------------------------- | -------------------------------------------- | | `sensor._next_lesson` | `sensor._nachste_stunde` | | `sensor._next_lesson_to_wake_up` | `sensor._nachste_stunde_zum_aufstehen` | | `sensor._today_school_start` | `sensor._heutiger_schulbeginn` | | `sensor._today_school_end` | `sensor._heutiges_schulende` | | `calendar.` | `calendar.` | | `calendar._exams` | `calendar._prufungen` | | `calendar._homework` | `calendar._hausaufgaben` | | `event._lesson_change` | `event._stundenanderung` | | `event._new_homework` | `event._neue_hausaufgabe` | > ⚠️ **Important:** > The **Exam Calendar** and **Homework Calendar** are **not available when using a parent account**. > Please use a **student account** to access exams and homework. --- ## Services The integration provides several services to directly fetch data from WebUntis. --- ### 🔹 `webuntis.get_timetable` Fetches the timetable for a given date range. The result includes all lessons within the range, depending on your filter settings. **Fields:** - `device_id` (**required**) – The device/instance of the WebUntis integration. - `start` (**required**) – Start date (`YYYY-MM-DD`). - `end` (**required**) – End date (`YYYY-MM-DD`). - `apply_filter` (default: `true`) – Apply filters defined in the integration (e.g., subject or teacher filters). - `show_cancelled` (default: `true`) – Include cancelled lessons. - `compact_result` (default: `true`) – Return a compact result format. - `compact_tolerance_minutes` (default: `0`) - Maximum break in minutes between lessons when compacting. Only applied when `compact_result` is `true`. --- ### 🔹 `webuntis.count_lessons` Counts the number of lessons in a given date range. **Fields:** - `device_id` (**required**) – The device/instance of the WebUntis integration. - `start` (**required**) – Start date (`YYYY-MM-DD`). - `end` (**required**) – End date (`YYYY-MM-DD`). - `apply_filter` (default: `true`) – Apply filters defined in the integration. - `count_cancelled` (default: `false`) – Count cancelled lessons as well. --- ### 🔹 `webuntis.get_schoolyears` Fetches all available school years from WebUntis. **Fields:** - `device_id` (**required**) – The device/instance of the WebUntis integration.