I wanted to show you an easy HTTP api for the “Deutsche Wetterdienst” I use with my Home Assistant. This api allows you to get a precise rain warning sensor for the next two hours (sadly, only if you live in Germany). This api does not get the Data directly from the DWD, because this would generate a really high server load for them(1GB per user per day). It gets the data form my websites server (morgenwirdes.de) that scrapes the data from the DWD and makes it available for everyone.
Here is the config to get the data with the rest sensor.
rrraintext has user readable rain information
rrrainin30min, rrrainin60min and rrrainin120min change form 0 to 1 if the will be rain in the next 30 minutes, 60 minutes and 120 minutes.
If you have ideas for more sensors, just reply to this post and i might add them.
I also have a map with the rain radar as a pre rendered GIF you can add to the Dashboard with the picture entity:
Hi, the way I understand the documentation the example of @jonasn follows the legacy implementation of the template sensors. I’m currently in the process to migrate my template sensors to the new implementation, but both implementation can exist simultaniously.
With my proposed template sensor you’ll get adapting icons aswell.
Hi and thank you! I would love a sensor for the predicted rain possibilities the next three days as separted values. Ideal would be the chance of rain as %, when it will ocure and how much rain is predicted. Any chance thats a sensor you could implement?
Or is there a better way to get a rain forcast for Germany in generall? Usecase is to get a morning notification as TTS with the weather forcast and a visual representaiton on the dashboard.
I am not sure if Jonas is actively developing his api. It is a nice solution but very buggy, I found too many inconsistencies, like message that there will be no rain in the next 2 hours but at the same time rain in next 30, 60 and 120 minutes was set to 1.
Anyways, here are my examples of what could be returned in addition:
Regen möglich ab 14 Uhr
Heute soll es trocken bleiben
Am Wochenende kann es regnen
Kein regen am Wochenende
Woche sollte trocknen bleiben
or simply date and time when the next rain is predicted:
24.12.2022 18:30