I just wanted to share an update project that I’ve recently completed! I’ve taken the old integration by @Lallassu for SMHI Weather Warnings (Swedish Meteorological and Hydrological Institute) and updated both the integration and the associated dashboard card.
Both the integration and the card can be installed via HACS as custom repositories
Home Assistant - SMHI Weather Warnings & Alerts With this integration, you can now easily receive SMHI weather warnings and manage them directly in Home Assistant, perfect for triggering different actions or displaying information on your dashboard.
The integration connects to SMHI’s open API to retrieve weather alerts for Sweden, organized by different districts and their messages. You can choose to receive notifications for all districts or select a specific district if you prefer.
SMHI Weather Warnings Card I’ve also updated the associated dashboard card, which is specifically designed to display SMHI warnings on your Home Assistant dashboard.
Tried to install you SMHI Alerts, but somehow it is not found even after restart.
HACS says it is installed…
Did add you sensor snippet in my configuration.yaml and restarted my whole HA but no avail.
Using 2024.10.1…
Configuration directly in Home Assistant UI: No more manual editing of configuration.yaml ! Now the integration can be added and configured entirely through the Home Assistant interface. Just go to Settings > Devices & Services, click on “Add Integration” and select “SMHI Alerts” from the list.
Simplified installation: Support for installation via Home Assistant UI has been added, but manual YAML configuration is still available for those who prefer it.
SMHI Weather Warnings Card:
New UI-based configuration: The card can now be configured directly via Home Assistant’s built-in dashboard UI editor, making it much easier and more user-friendly.
Customizable attributes: You can now choose which specific attributes to display on the card, such as warning type, severity, published time, and warning period. This gives you more flexibility to get exactly the information you want on your dashboard.
I hope these updates make your use of SMHI Weather Warnings & Alerts even smoother and more intuitive. Feedback and contributions are always welcome!
I’m excited to announce that version 1.2 of the SMHI Weather Warnings & Alerts integration is now available!
What’s New in Release 1.2?
New Features
Support for Multiple Instances: You can now add multiple instances of the integration, each configured for a different district. Entities will be named in the format sensor.smhi_alert_<DISTRICT>, making it easier to keep track of alerts for multiple areas.
District Names in UI: During configuration, you will now see the district names directly in the UI, so there’s no longer any need to deal with district numbers.
Customizable Alerts: You can now choose if you want to see only warnings or both warnings and informational messages. Messages might represent potential risks, like a risk of water shortage, so you can fine-tune what information you want to receive.
Breaking Changes
Entity Name Changes: Entity names have been updated to include the district at the end, e.g., sensor.smhi_alert_<DISTRICT>. If you’re using automation or dashboards that reference these entities, you’ll need to update them accordingly.
Messages Disabled by Default: Messages are now turned off by default. If you want to enable messages, simply go to the entity configuration and select the “Show Messages” option.
I hope these updates make the integration even more useful for you all! As always, I appreciate your feedback, suggestions, and contributions.
Feel free to update and let me know how it’s working for you, or if you run into any issues. Your input is incredibly valuable to making this integration even better!