Repository navigation
Releases
Releases · truffshuff/HAC-Scraper
v0.4.3
Fixed
- If a student's configured quarter failed to load at startup (e.g. browserless dropped the connection), that student's quarter and course sensors were never created and stayed "unavailable" until the next restart. The quarters that did load are now kept, and sensors for any quarter or course that appears on a later refresh are added then.
v0.4.2
Includes everything since 0.3.1.
Added
- Current Quarter sensor per student
hac_grades.remove_stale_entitiesaction (with dry run) to remove entities and devices for courses that no longer exist;regenerate_dashboard.sh --remove-stalecalls it- Dashboard "Now" tab that follows each student's current quarter
Changed
- Redesigned generated dashboard (Mushroom, Nodalia, flex-table, ApexCharts): aligned student sections, untruncated "Needs attention" table, color-coded course cards with 3-week sparklines, per-student and per-course trend charts with assignment dots placed when each score was posted, phone-friendly course pages
- Better course icon matching
Fixed
- Course devices use
via_device_idinstead of the deprecatedvia_device(stops working in HA 2027.8) - Dashboard generator uses each student's actual refresh button / Current Quarter / Last Scraped entity IDs
- New installs get
button.hac_student_<id>_force_refresh regenerate_dashboard.shpasses options such as--student-namesthrough to the generator- HACS validation passes again
v0.3.1: 1. Fixed Async Initialization Warning ✅
[0.3.1] - 2025-11-29
Fixed
- Async Initialization: Fixed improper use of
async_config_entry_first_refresh()which caused deprecation warning. Entity creation now properly waits for coordinator data using polling mechanism that runs in background task. - JSON Metadata Corruption: Fixed race condition where sensor.py and binary_sensor.py were writing to the same metadata file simultaneously, causing JSON corruption. Added error recovery (auto-delete corrupted file) and 2-second delay between writes to prevent conflicts.
- Optimized Retry Timing: Faster initial retry attempts (5s, 10s, 15s) with exponential backoff for later attempts. Reduced stagger delay from 30s to 5s to minimize startup time while still preventing overwhelming browserless with simultaneous requests.
v0.3.0: Summary of All Changes
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[0.3.0] - 2025-11-29
Fixed
- Browserless Connection Retry: Added exponential backoff retry logic (12 attempts with delays up to 5 minutes) to handle cases where browserless service is not ready during Home Assistant startup or reboot. This fixes the issue where the integration would fail to start properly when HA reboots before browserless is fully initialized. The integration will now automatically retry connection attempts for up to ~20 minutes and wait for browserless to become available instead of requiring manual reload.
- Browserless Health Check: Added health check before attempting login to avoid unnecessary timeout errors when browserless is not yet ready.
- Sensor Platform Timeout: Increased sensor platform initialization timeout from 4 minutes to 15 minutes to accommodate very slow browserless startup times on some systems. This prevents the "Coordinator data still not available" error that occurred when browserless took longer than expected to start.
- Reduced Stagger Delay: Reduced initial random delay from 2 minutes to 30 seconds to speed up login when browserless is ready.
[0.2.0] - 2025-01-28
Breaking Changes
- Entity IDs changed: Entities now use student ID and quarter instead of student name
- Old format:
sensor.john_gpa - New format:
sensor.student_12345_q2_gpa
- Old format:
- Configuration now requires Student ID instead of Student Name
Added
- Quarter Selection: Choose which quarter/marking period to track (Q1, Q2, Q3, Q4)
- Student ID Validation: Integration validates that the provided student ID matches what's in HAC
- Multi-Quarter Support: Track multiple quarters for the same student
- Dynamic Dashboard Generation: Automatic Lovelace dashboard creation from entity metadata
- Force Refresh Button: Manual grade update trigger for each student
- Enhanced Sensors: Total TLTC, Total SBF, missing assignment details, course update tracking
- Assignment Status Tracking: NHI, NYG, TLTC, SBF status codes with emoji indicators
Changed
- Entity ID format now includes student ID and quarter for uniqueness
- Configuration flow updated to use student ID instead of name
- HAC client validates student ID from HTML response
Technical Details
- HAC client accepts and validates student ID from HTML
- Added quarter parameter support (uses MarkingPeriod query param)
- Coordinator updated to pass student ID and quarter
- All sensors and binary sensors use student_id + quarter in entity_id
- Async file I/O operations to prevent blocking event loop
- Metadata file auto-generation for dashboard system
[0.1.0] - 2024-12-01
Added
- Home Assistant custom integration for HAC grades
- Automatic course discovery
- Dynamic entity creation
- Overall and per-course sensors
- Binary sensors for alerts
- Category score tracking (Practice, Process, Product)
- Assignment details with status tracking
- Missing assignment detection
v0.2.0
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[0.2.0] - 2025-01-28
Breaking Changes
- Entity IDs changed: Entities now use student ID and quarter instead of student name
- Old format:
sensor.john_gpa - New format:
sensor.student_12345_q2_gpa
- Old format:
- Configuration now requires Student ID instead of Student Name
Added
- Quarter Selection: Choose which quarter/marking period to track (Q1, Q2, Q3, Q4)
- Student ID Validation: Integration validates that the provided student ID matches what's in HAC
- Multi-Quarter Support: Track multiple quarters for the same student
- Dynamic Dashboard Generation: Automatic Lovelace dashboard creation from entity metadata
- Force Refresh Button: Manual grade update trigger for each student
- Enhanced Sensors: Total TLTC, Total SBF, missing assignment details, course update tracking
- Assignment Status Tracking: NHI, NYG, TLTC, SBF status codes with emoji indicators
Changed
- Entity ID format now includes student ID and quarter for uniqueness
- Configuration flow updated to use student ID instead of name
- HAC client validates student ID from HTML response
Technical Details
- HAC client accepts and validates student ID from HTML
- Added quarter parameter support (uses MarkingPeriod query param)
- Coordinator updated to pass student ID and quarter
- All sensors and binary sensors use student_id + quarter in entity_id
- Async file I/O operations to prevent blocking event loop
- Metadata file auto-generation for dashboard system
[0.1.0] - 2024-12-01
Added
- Home Assistant custom integration for HAC grades
- Automatic course discovery
- Dynamic entity creation
- Overall and per-course sensors
- Binary sensors for alerts
- Category score tracking (Practice, Process, Product)
- Assignment details with status tracking
- Missing assignment detection