2026.02.1 TravelTag badges!
Fixed
- ⏱️ Rate Limit Compliance: Increased update interval from 60 to 75 seconds
- Entur API enforces 5 requests per 5-minute rolling window (not fixed window)
- Previous 60-second interval caused periodic 429 errors after ~5-6 minutes of operation
- New 75-second interval (300s / 5 = 60s + 15s safety margin) ensures compliance
- Updated documentation to accurately describe rolling window behavior
- Fixed incorrect "5 requests per minute" comment in code (actual limit: 5 per 5 minutes)
Added
-
🎨 Entur TravelTag Badges: Professional transit line badges with official Entur Design System styling
- Automatically displayed as entity pictures on line sensors
- 12 transport mode icons: bus, train, tram, ferry, carferry, metro, mobility, bicycle, walk, plane, helicopter, taxi
- Official Entur brand colors for each transport mode
- Proportional scaling matching Entur's design (14pt base font, 26.25px icons)
- Line numbers displayed in badges with dynamic sizing
-
📊 Summary Sensor: Aggregate sensor for all monitored lines
- Numeric state (0, 1, 2, etc.) showing count of active disruptions
- Perfect for conditional card visibility using
numeric_stateconditions markdown_activeattribute: All active disruptions with badges in markdown formatmarkdown_plannedattribute: All planned disruptions with badges- Easy automation: trigger when summary state goes above 0
-
🌍 Automatic Language Support: Norwegian and English based on Home Assistant settings
- Automatically detects language from
hass.config.language - Norwegian (no): Supports nb, nn, se language codes
- English (en): Default for all other languages
- Locale-aware date formatting:
- Norwegian: "Mandag, 09. februar kl. 14:30"
- English: "Monday, 09 February at 14:30"
- Smart API text selection handling multiple XML language tag formats
- Automatically detects language from
-
📝 Rich Markdown Content:
formatted_contentattribute on all line sensors- TravelTag badges with line numbers and transport mode colors
- Disruption summaries and detailed descriptions
- Formatted validity periods with locale-aware dates
- Professional styling matching Entur's design language
- Ready for use in Home Assistant markdown cards
Changed
- Summary sensor state: Now returns numeric count instead of text (e.g.,
0instead of "Normal service") - Date formatting: Valid from/to timestamps now locale-formatted instead of ISO 8601
- Language configuration: Removed manual language setting - now automatically follows Home Assistant's language preference