BSH Tides and Water Levels for Germany

Hi everyone,

I’m new to the Home Assistant world and was looking for an integration to display when the next low tide occurs here in Hamburg, Germany on the Elbe River. This way, there’s more space for my little Bernese Mountain Dog. :wink:

I found several integrations fetching similar data for different regions of the world but none for Germany. However, I discovered the official government BSH website, which presents the data quite nicely: https://wasserstand-nordsee.bsh.de/

After some reverse engineering and introductory Python lessons with ChatGPT, I managed to create a working integration that makes BSH data available in Home Assistant as sensors:

:point_right: BSH Tides for Germany

The integration can be installed via HACS and offers, among other things, these sensors for various BSH measurement stations:

Supported measurement stations include:

Visualization examples using Mushroom Templates:

I would appreciate it if some of you could try it out and provide some feedback. Also, since I’m a complete Python newbie, any code feedback would be appreciated if anyone wants to take a look.

Maybe this integration will be helpful to some of you.

Happy Easter! :blush:

1 Like

Hi,

nice work, really!

One little suggestion:
Could you integrate a possibility to change the reference level? At the moment the water level is related to PNP, a seafarer usually is calculating with values related to SKN (or LAT, which is the same).

The JSON data example in your blog gives you the difference:
“SKN (ueber PNP)”: 381, for Zollenspieker.

Or maybe you can tell another possibility to achive this, since I am not really familiar with the options of home assistant yet.

Best regards
Sebastian

And one more question:
Is it possible to show the time for the next HW or NW in exact time instead of in how many hours (very inaccurate) it will occur?

Best regards
Sebastian