Easily receive and manage SMHI (Swedish Meteorological and Hydrological Institute) weather warnings and alerts directly in Home Assistant, enabling you to trigger actions or display information on your dashboard.
There is also a dashboard card specifically for this integration, which can be found here: SMHI Alert Card.
This custom component connects to SMHI's open API to retrieve weather alerts in Sweden, organizing the data by districts and their respective messages. You can choose to receive notifications for all districts or a specific one.
Based on SMHI Alert Card
You can install this integration as a custom repository by following one of these guides:
To install the custom component using HACS:
- Click on the three dots in the top right corner of the HACS overview menu.
- Select Custom repositories.
- Add the repository URL:
https://github.com/Nicxe/home-assistant-smhialerts
. - Select type: Integration.
- Click the ADD button.
Without HACS
- Download the latest release of the SMHI Alert integration from GitHub Releases.
- Extract the downloaded files and place the
smhi_alerts
folder in your Home Assistantcustom_components
directory (usually located in theconfig/custom_components
directory). - Restart your Home Assistant instance to load the new integration.
The integration will always show SMHI warnings; however, you can choose whether to show messages or not in the configuration. A message represents a potential risk, such as a risk of water shortage.
To add the integration to your Home Assistant instance, use the button below:
Warning
It is not recommended to select all districts, as this may lead to the sensor generating a large amount of data. This can exceed the system's storage limits, causing performance issues and potentially resulting in incomplete information.
If the button above does not work, you can also perform the following steps manually:
- Browse to your Home Assistant instance.
- Go to Settings > Devices & Services.
- In the bottom right corner, select the Add Integration button.
- From the list, select SMHI Alerts.
- Follow the on-screen instructions to complete the setup.
Using the SMHI Alert Card: