Ever since Apple closed the Dark Sky API, many, me included, have been seeking a solid alternative. As a Swiss user of Home Assistant, I would have preferred to use MeteoSwiss, the Federal Office of Meteorology and Climatology, from the beginning. Fortunately, I discovered this integration in the Home Assistant Community Store after I was forced to switch from Dark Sky. And I’m much happier now than I ever was with what I had previously.
The MeteoSwiss integration can be set up on any Home Assistant installation. No matter if you’re running Home Assistant Core in a Docker container or Home Assistant on a Raspberry Pi. It should work everywhere.
You will, however, need to have the Home Assistant Community Store (HACS) installed and configured. You’ll find a guide on how to do that on the official website. HACS requires that you are running at least Home Assistant Core version 0.110.0, you have a GitHub account, and that you have access to the filesystem where Home Assistant is located.
Once you have HACS installed you should be able to access from your menu. And that is where this guide will continue on.
Installing the MeteoSwiss integration
From HACS, select Integrations and search for meteoswiss. The integration should appear and can be installed with just a single click. As I’ve already got mine set up, the install button won’t appear. I’ve included another integration I haven’t got installed in the screenshot, so you know what it should look like. Once installed, you will have to restart Home Assistant.
Setting up the MeteoSwiss integration
MeteSwiss is now installed on your system. However, the integration is not yet set up. To do so, you’ll want to head over to the integrations (found under Configuration in the menu). From there, click on the big plus button and once again search for MeteoSwiss. Select it, and you will be prompted to enter a postal code and station name.
By default the MeteoSwiss integration will try to determine the best settings for you based on your location. If you’re not happy with the result you can change it at this point. A list of weather stations is found here. After clicking on submit the setup is complete.
Displaying MeteoSwiss weather information in your Lovelace UI
To display your weather information which is now being gathered from MeteoSwiss you can use the Weather Forecast Card. Your entities name should be weather.[station name]. And if you want to bling up your weather card a bit, I can recommend the animated weather card which can also be found in the HACS.
Other MeteoSwiss sensors
Besides the information needed for the weather card (current weather and forecast) the MeteoSwiss integration gives you several further sensors you can use for whatever you want. I’m uncertain if these are different depending on the station you’ve selected, but I get the following:
- Rain and sun
- Dew point, humidity and pressure
- Sun radiant
- Wind direction, wind speed, and maximum wind speed