bergfex icon indicating copy to clipboard operation
bergfex copied to clipboard

Feature Request – Multi-language Support for Bergfex Integration

Open ADNPolymerase opened this issue 11 months ago • 13 comments

Hello,

I’m using your Bergfex Snow Report integration for Home Assistant and it works perfectly for the Austrian site (.at). However, all the returned data is in German.

I would like to request support for French, English, and other languages. The integration could achieve this simply by using the same URL structure and changing the domain:

.fr for French (https://www.bergfex.fr/les-saisies/schneebericht/)

.com for English (https://www.bergfex.com/les-saisies/schneebericht/)

and any other available languages, which can be selected using the language icon at the bottom left of the site (Italian, Spanish, etc.)

I would be happy to help with testing or validating the translations if needed.

Thank you very much for considering this feature!

Best regards,

ADNPolymerase avatar Dec 23 '25 22:12 ADNPolymerase

Hi @ADNPolymerase 👋,

thank you again for the great feature request and the detailed examples!

I’ve implemented multi-language and multi-domain support based on your suggestion and just published a beta release. Would you mind doing me a favor and testing it?

👉 Test release:
https://github.com/timmaurice/bergfex/releases/tag/1.4.0-beta.1

Image

What’s included in this release

  • Support for all Bergfex languages e.g. German, English, French, Italian, Spanish, and Dutch
  • Automatic domain selection (bergfex.at, bergfex.com, bergfex.fr, etc.)
  • An improved setup flow where you choose the language first
  • More robust, language-independent parsing as a fallback

Your feedback—especially for French or English resorts like Les Saisies—would be extremely valuable.
If anything looks off (labels, values, missing data), please let me know.

Thanks a lot for your help! 🙌

timmaurice avatar Jan 02 '26 16:01 timmaurice

Hi @timmaurice 👋,

thanks for the update and for implementing this so quickly!

I’ve tested the beta release. The language selection during setup works well 👍 However, the feedback sent back to Home Assistant is still in the original language/domain (e.g. .at / German), even when another language is selected.

I tested both French and English, and in both cases the data returned to Home Assistant is still in German.

So at the moment:

UI / setup language: ✅ OK

Data returned to HA (labels / values): ❌ still in German

Additionally, in the country selection menu, the country names are displayed in German. Since the language is already known at that step, this part could probably be translated quite easily after the language selection.

Let me know if you want more details or logs, I’m happy to help test further.

Thanks again for the great work on this integration! 🙌

For example :

Avalanche Warning II - mäßig Last Snowfall 18.12.2025 Last Update Il y a 8 heures Lifts Open 29 Lifts Total 30 New Snow Inconnu Slope Condition keine Meldung Slopes Open 51 Slopes Open (km) 55 km Slopes Total 60 Slopes Total (km) 77 km Snow Condition keine Meldung Snow Mountain 60 cm Snow Valley 36 cm Status Open

ADNPolymerase avatar Jan 02 '26 20:01 ADNPolymerase

Hi @ADNPolymerase,

thank you for testing this so quickly — that was really fast, and the detailed feedback is incredibly helpful! 🙏

You’re absolutely right: the setup/UI language works as expected, but parts of the data returned to Home Assistant were still coming from the German (.at) source. Thanks especially for the concrete examples — that made the issue very clear.

I’ve addressed this in a new beta release:

👉 Test release:
https://github.com/timmaurice/bergfex/releases/tag/1.4.0-beta.2

What changed in this release

  • Refactor: Removed hard-coded/detailed snow condition value translations that caused mixed-language results
  • Feature: Added new country name translations and value translations for multiple languages
  • Improvement: Better alignment between selected language/domain and the data actually parsed

This should fix:

  • German labels/values appearing when French or English is selected
  • Country names being shown only in German during setup

If you have a moment, I’d really appreciate another quick test with this version — especially checking:

  • Snow condition / status labels
  • Avalanche warning text
  • Country selection names
  • Any remaining mixed-language values

Thanks again for the excellent testing and feedback — it genuinely helps improve the integration a lot! 🙌

timmaurice avatar Jan 02 '26 22:01 timmaurice

Hi @timmaurice 👋,

I’ve tested the new beta, and everything looks good regarding translations 👍 The labels, values, and country names are correctly translated and aligned with the selected language — really nice work! 🙌

I did notice some potential bugs in data retrieval for certain stations:

  • For example, in France, Les Karellis shows the mountain height as 520 m instead of 2520 m.

  • Other stations, like Les Saisies, seem fine.

A few additional questions/suggestions:

  • The sensor names in Home Assistant are currently in English — would it be possible to provide translations for them as well?

  • Would it also be possible to change the display language on the Bergfex Card? I assume this is linked to the sensor names I mentioned above.

  • Similarly, the Status field always shows “Open” or “Closed” — could this be translated as well?

This is already a huge improvement for the integration, bravo to you for your responsiveness and the quick turnaround!

Thanks again for your amazing work and for taking these suggestions into account — this integration is shaping up really nicely!

ADNPolymerase avatar Jan 02 '26 23:01 ADNPolymerase

Hello, I've been testing updated version and I think there is something wrong with translations in const.py -> KEYWORDS. For example slope_condition is Pistenzustand (same as label on Berfex website). But in english it is translated to Slope condition but Bergfex is using Piste conditions label. There is more mismatch values in polish translations.

Also I've noticed that english avalanche report is also getting more data than it needs:

Image

I'm using polish translation for HA, but values above are taken from english Bergfex version. nienznany translates to unknown

I can try to help with fixing this (assuming it is not only issue on my end?).

mironiasty avatar Jan 06 '26 22:01 mironiasty

I've changed implementation to the beta 1.4.0-beta.2 For newly added ski areas the language changes correctly, but the older ones, even if deleted, don't update the values. Do I need to purge something manually?

brggmn avatar Jan 08 '26 12:01 brggmn

I've changed implementation to the beta 1.4.0-beta.2 For newly added ski areas the language changes correctly, but the older ones, even if deleted, don't update the values. Do I need to purge something manually?

after removing the entry, the integration and rebooting home assistant, I've managed to get it working using the correct outputlanguage! Thank you for this integration!

brggmn avatar Jan 09 '26 13:01 brggmn

Hi @ADNPolymerase

Thanks a lot for testing the beta and for the kind words! 🙏

Regarding the issues you mentioned:

  • I wasn’t able to reproduce the Les Karellis bug — it still shows the correct mountain height on my end.
  • For the sensor names, I’d prefer to keep them in English for now. This makes it easier and more reliable for the card to detect the correct sensors.
  • For the Status values (Open / Closed / Unknown), it would be simpler to handle translations directly in the card. These are static values from the website and can be mapped to translated text there without affecting dynamic data retrieval.

Really appreciate your feedback — it helps improve the integration even further! 🚀

timmaurice avatar Jan 09 '26 14:01 timmaurice

Hi @mironiasty 👋

Thanks for identifying the translation issues and small parsing bugs — your fixes were really helpful!

I've created a new beta (1.4.0-beta.3) incorporating your changes. From my last tests everything looks good, but I’d like to wait for a green light from someone here before releasing the final version.

You can check out the beta here:
1.4.0-beta.3

Thanks again for your contributions!

timmaurice avatar Jan 09 '26 14:01 timmaurice

Hi @timmaurice 👋

I've installed the latest beta (1.4.0-beta.3)and configured several ski area's of Austria in Dutch (Nederlands) Language seems to work fine, English sensor names don't bother me.

Some of the sensors aren't scraped correctly or unavailable (in Dutch). I've captured a screenshot from the integration and from the corresponding Bergfex website and highlighted the missing parts. (Ski area of the screenshot is Serfaus-Fiss-Ladis)

Image Image

Maybe another improvement: Add status of the Valley ski-run, the Snow park, Toboggan run and/or Ice skating rink

brggmn avatar Jan 09 '26 16:01 brggmn

Hi @brggmn 👋

Thanks a lot for testing 1.4.0-beta.3 and for the detailed feedback (including the screenshots)! 🙏

I’ve addressed the issue with unavailable / incorrectly parsed sensors and fixed the affected spots across all 18 languages supported by Bergfex. The parsing logic and keywords have been refined to ensure full data extraction.

These fixes are now included in a new release:
👉 1.4.0-beta.4

Please give it another try and let me know if everything looks correct now.

timmaurice avatar Jan 09 '26 21:01 timmaurice

Hi @brggmn 👋

Thanks a lot for testing 1.4.0-beta.3 and for the detailed feedback (including the screenshots)! 🙏

I’ve addressed the issue with unavailable / incorrectly parsed sensors and fixed the affected spots across all 18 languages supported by Bergfex. The parsing logic and keywords have been refined to ensure full data extraction.

These fixes are now included in a new release: 👉 1.4.0-beta.4

Please give it another try and let me know if everything looks correct now.

Hi @timmaurice Confirmed working. Installed last weekend. Nice! Any idea when I can convert my beta to a newer update? :-)

brggmn avatar Jan 12 '26 16:01 brggmn

Hi @brggmn 👋

Great to hear, thanks for confirming! 🙌

I’ve actually done a more extensive overhaul since then, which resulted in a new major version. Because of the internal changes, it needs a bit more real-world testing before I recommend upgrading from the current beta v2.0.0.

Once this new major version is validated, upgrading will be straightforward. I’ll definitely post an update as soon as it’s ready for broader use.

Thanks again for testing and the feedback!


Looking for pre-release testers 👋

I’m looking for a few people to test the upcoming v2.0.0 beta and share feedback before the stable release.

Integration

https://github.com/timmaurice/bergfex/releases/tag/2.0.0-beta.1

Lovelace Card

https://github.com/timmaurice/lovelace-bergfex-card/releases/tag/2.0.0-beta.1

What’s new

  • Multi-domain and multi-language support with new configuration options
  • Added support for cross-country skiing areas
  • Removed static total value entities (now exposed as attributes instead)

Any testing, feedback, or bug reports would be highly appreciated. Thanks! 🙌

Src

timmaurice avatar Jan 13 '26 20:01 timmaurice