How to integrate MeteoSwiss with Home Assistant

Disclosure: This post contains affiliate links. If you click through and make a purchase, I will earn a commission, at no additional cost to you. Read my full disclosure here.

An illustration of people in the rain with umbrellas.

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:

A portrait photo oif Liam Alexander Colman, the author, creator, and owner of Home Assistant Guide wearing a suit.

About Liam Alexander Colman

is an experienced Home Assistant user who has been utilizing the platform for a variety of projects over an extended period. His journey began with a Raspberry Pi, which quickly grew to three Raspberry Pis and eventually a full-fledged server. Liam's current operating system of choice is Unraid, with Home Assistant comfortably running in a Docker container.
With a deep understanding of the intricacies of Home Assistant, Liam has an impressive setup, consisting of various Zigbee devices, and seamless integrations with existing products such as his Android TV box. For those interested in learning more about Liam's experience with Home Assistant, he shares his insights on how he first started using the platform and his subsequent journey.

Comments

  1. Hi there

    I installed Meteo swiss through HACS which worked fine and added the integration too. I only get the sensors as entities but cant get the data for my region. I’ve also installed Weather Forecast card but it seems like its not getting the data from Meteo Swiss. I only got one weather-entity which is called weather.home (from Meteorologisk institutt).

    What am I doing wrong? Any help is much appreciated.

    BTW, nice blog, just about to check it out a bit 🙂

    Kind regards

    Andreas

    Reply
    • Hello

      I have the same problem on my site. In the meantime do you have a workaround or a solution?

      Kind regards
      Patrick

      Reply
      • Hey there. I’ve been experiencing the same issues, which is a massive shame (I will have to make an amendment to this post). On GitHub, there is a “fix” which I couldn’t get to work.

        On the bright side, it does appear that for the first time, things are being developed again. I guess we just wait for the next release. Meanwhile, I have switched to OpenWeatherMap.

        Reply
        • I just realized what I was doing wrong. In setting up the integration, it would auto-populate the PLZ with my current location. But the weather station it had selected was in another town. I changed the PLZ and now it works!

          Reply
  2. Thank You !!!
    Worked (almost like a charm), just need to add a step after the integration in HACS, that to get meteoswiss appearing in HA integration you may need to webbrowser cache (once more even if done to get HACS initial integration).

    Reply
    • From above: I just realized what I was doing wrong. In setting up the integration, it would auto-populate the PLZ with my current location. But the weather station it had selected was in another town. I changed the PLZ and now it works!

      Reply
  3. Hi work great. Any idea where I might get a list of all possible states?

    e.g. the output list from {{states.weather.bern.state}}

    partlyCloudy
    snowy-rainy
    rainy

    Reply

Leave a comment

Share to...