When Apple pulled the plug on the Dark Sky API, many of us found ourselves in search of a worthy replacement. As a dedicated Swiss user of Home Assistant, my heart was always set on MeteoSwiss, the nation's Federal Office of Meteorology and Climatology. Thankfully, the Home Assistant Community Store led me to the MeteoSwiss integration after my forced departure from Dark Sky. Now, I find myself much more content with my current setup than I ever was before.
Home Assistant's road to MeteoSwiss
The MeteoSwiss integration is a versatile tool that can be incorporated into any Home Assistant installation. Be it Home Assistant Core running in a Docker container or Home Assistant operating on a Raspberry Pi, it's built to run without a hitch.
However, there's a small catch. To set this up, you need to have the Home Assistant Community Store (HACS) installed and configured. The official website provides a handy guide on how to do this. The key requirements are Home Assistant Core version 0.110.0 or higher, a GitHub account, and access to the filesystem housing Home Assistant.
Once HACS is ready to roll, it should appear on your menu, marking the spot where we pick up this guide.
Installing the MeteoSwiss integration for Home Assistant
In the HACS interface, choose Integrations and search for meteoswiss. The integration will pop up and can be installed with a single click. Please note that if it's already installed, you won't see the install button. I've included a screenshot of another uninstalled integration to give you a sense of what to expect. After installation, a restart of Home Assistant is required.
Configuring the MeteoSwiss Integration
After the installation, MeteoSwiss is part of your system, but still needs to be configured. To accomplish this, visit the integrations section (under Configuration in the menu). Here, hit the ample plus button and search for MeteoSwiss again. Select it, and you'll be prompted to enter a postal code and station name.
The MeteoSwiss integration has a built-in feature to determine the optimal settings based on your location. If you're not satisfied with the suggested settings, you certainly have the freedom to modify them. A comprehensive list of weather stations is available here. After you click submit, the setup is complete.
Displaying MeteoSwiss weather information in your Home Assistant Dashboard
To showcase the weather data from MeteoSwiss on your interface, the Weather Forecast Card comes in handy. Your entity's name should be
weather.\[station name\]. If you wish to add a bit of flair to your weather card, I'd recommend the animated weather card, also found in HACS.
Other MeteoSwiss sensors
In addition to the basic weather and forecast data, the MeteoSwiss integration provides various other sensors for your use. While I can't guarantee if these vary based on the station you've selected, here's what I have:
- Rain and sun
- Dew point, humidity, and pressure
- Sun radiant
- Wind direction, wind speed, and maximum wind speed