Custom Integration: AlertSwiss

Hello Home Assistant Community,

I'd like to introduce my new custom integration for Home Assistant: AlertSwiss.

This integration brings official AlertSwiss notifications directly into Home Assistant, allowing you to use Swiss alerts, warnings and emergency information in your automations and dashboards.

Since AlertSwiss currently does not provide a public API, the integration retrieves data directly from the official website and updates it every 10 minutes by default.

Features

• Sensor showing the number of active alerts
• Binary sensor indicating whether any alerts are currently active
• New alerts sensor that can be used as a trigger for automations and push notifications
• Geo-location events for displaying alert locations on the Home Assistant map
• Multi-language support (German, English, French and Italian)
• Configurable search radius around your Home Assistant location
• Adjustable update interval
• Filtering by minimum severity level (Information, Warning, Alarm)

Example Use Cases

• Push notifications when new alerts are issued in your area
• Map view displaying active alerts nearby
• Dashboard tables showing all active alerts
• Automations based on alert type or severity

Installation

  1. Download or clone the repository
  2. Copy the custom_components/alertswiss folder into your Home Assistant installation
  3. Restart Home Assistant
  4. Add the integration via Settings → Devices & Services

GitHub Repository

Data Source

All alert data originates from AlertSwiss, the official Swiss alert and information platform.

Feedback

Feedback, feature requests and suggestions are always welcome. Feel free to post them in this thread or open an issue on GitHub.

Project Note

A significant portion of the code was created with the help of AI tools (Codex / vibe coding). The integration has been running reliably in my Home Assistant test environment for several weeks and is being actively maintained and improved.

Screenshots

Looking forward for your feedback, best regards
r2k

Can the github stuff be set to english (or an option to see it in english) to it is easier to understand?

Thought’s on my vesion for alerts? A Simple Extension to the Alert Integration - #9 by KruseLuds

+1 as sorry but not speaking german !! How do you get datas ? through an API or by crawling a website ?

I actually don’t have an alert system built around public government alerts