Skip to content

Snow, Slopes & Loipen – Bergfex Just Got Better ❄️

Choose a tag to compare

@github-actions github-actions released this 15 Jan 20:59

Thank you for using the Bergfex Snow Report integration. This release brings improved features, better reliability, and important enhancements to internationalization and parsing robustness.

Make sure to update the Bergfex Snow Report Card, too:
https://github.com/timmaurice/lovelace-bergfex-card/releases/tag/2.0.0


What’s New

🌍 Major Internationalization Improvements

This release introduces full multi-language support and improved handling of international Bergfex domains.

  • Multi-language Support
    The integration now supports 18 languages with complete keyword parsing and translations:

    • Major: German, English, French, Italian, Spanish, Dutch
    • Scandinavian: Swedish, Norwegian, Danish, Finnish
    • Slavic / Central European: Czech, Slovak, Polish, Slovenian, Croatian
    • Others: Hungarian, Romanian, Russian
  • Dynamic Domain Mapping
    Automatically connects to the correct Bergfex top-level domain or subdomain based on your selected language.

  • Improved Configuration Flow
    A new multi-step setup guides you through:

    1. Language selection
    2. Country selection
    3. Ski area selection
  • Robust Fallback Parsing
    For languages not explicitly listed, the integration now relies on language-independent CSS classes and structural patterns, significantly improving resilience against website changes.


⛷️ Feature Enhancements

  • Improved support for cross-country skiing (Loipen) pages
    New sensors expose trail length, condition, and operational status when available.
  • Better understanding of different site layouts and localized content, improving long-term reliability.

Improvements You’ll Notice

  • 100% verified data extraction accuracy across all 18 supported languages.
  • More accurate snow depth, slope, lift, and trail values.
  • Cleaner and more stable entity names and IDs (derived from ski area and sensor names).
  • Faster fixes when Bergfex changes page structures thanks to improved parsing logic.
  • Fix support for Polish language and small parsing bugs by @mironiasty

Bug Fixes & Technical Improvements

  • Robust Data Extraction
    Snow depths and lift/slope status now parse correctly even when data-value attributes are missing or malformed.
  • Timezone-Aware Dates
    All timestamps now correctly use the Europe/Vienna timezone.
  • Translation Fixes
    Corrected configuration flow labels for both English and German.
  • Improved HTML Handling
    Stricter slope validation (counts and kilometers) and more resilient text extraction.

Testing & Reliability

  • Expanded Test Suite
    Parameterized tests now validate all 18 languages against real resort fixtures.
  • Robust CI/CD Pipeline
    GitHub Actions execute the full test suite on every push and pull request.

🛠 Technical Notes

  • Enhanced test_parser.py for full language coverage
  • Refactored get_text_from_dd for better HTML robustness
  • Added .github/workflows/tests.yml for automated testing

Important Notes for Existing Users

  • Updating from an older version usually does not require reconfiguration.
    Simply update and restart Home Assistant.
  • If you rely on custom scripts using internal integration behavior, please verify them after upgrading.

How to Upgrade

  1. HACS: Update the integration and restart Home Assistant.
  2. Manual install: Replace custom_components/bergfex with the new version and restart.
  3. Verify entities under Configuration → Integrations.

Documentation

  • Updated README.md with new configuration and language support details.
  • Added comprehensive international test fixtures.

New Contributors

Full Changelog:
1.3.1...2.0.0


Happy skiing! 🎿❄️