SMHI Alerts brings weather warnings and risk messages from the Swedish Meteorological and Hydrological Institute (SMHI) into Home Assistant.
This repository now contains both:
- The Home Assistant integration (
smhi_alerts) - The Lovelace alert card (
smhi-alert-card.js)
You can also add the repository manually in HACS as type Integration.
- Download
smhi_alerts.zipfrom the latest release. - Extract the archive and place the
smhi_alertsfolder inconfig/custom_components/. - Restart Home Assistant.
The alert card is bundled with this integration.
When the integration starts, it automatically:
- syncs the bundled card to
config/www/smhi-alert-card.js - syncs required sidecar assets (icons) to
config/www/ - creates or updates a Lovelace
moduleresource at/local/smhi-alert-card.js?v=...for cache-busting
If you have just installed or updated, reload the browser once to ensure the latest card resource is loaded.
- Open your dashboard.
- Select Edit dashboard.
- Add a new card.
- Choose Custom: SMHI Alert Card.
Manual card type:
custom:smhi-alert-card
Normally no manual Lovelace resource setup is required.
If your dashboard does not load the card automatically, add this resource manually:
- URL:
/local/smhi-alert-card.js - Type:
JavaScript Module
To add the integration, use this button:
If needed, add it manually via Settings > Devices & Services > Add Integration.
Warning
It is not recommended to select all districts, as this may generate large sensor attributes and impact recorder/storage performance.
Each GitHub release in this repository publishes:
smhi_alerts.zipfor integration installation
The bundled alert card and its assets are included inside smhi_alerts.zip.
If you previously used Nicxe/home-assistant-smhialert-card, see MIGRATION.md.