NINA
The NINA integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] displays warnings from the Bundesamt für Bevölkerungsschutz und Katastrophenhilfe in Germany.
For each county/city it creates warning slots that change to Unsafe when warnings are present. The details of the warning are provided in separate entities.
Configuration
To add the NINA service to your Home Assistant instance, use this My button:
Manual configuration steps
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select NINA.
-
Follow the instructions on screen to complete the setup.
Whitelist regex to filter warnings based on affected areas. For details see below.
Options
To define options for NINA, follow these steps:
-
In Home Assistant, go to Settings > Devices & services.
-
If multiple instances of NINA are configured, choose the instance you want to configure.
-
On the card, select the cogwheel
. - If the card does not have a cogwheel, the integration does not support options for this device.

-
Edit the options, then select Submit to save the changes.
Whitelist regex to filter warnings based on affected areas. For details see below.
Filter
The integration includes the possibility to filter warnings in two ways via a regex.
All filters are applied to lowercase text only.
Headline blocklist
This blocklist filters warnings based on the headline. In other words, if the regular expression matches the headline of the warning, the warning will be ignored.
Default: Match nothing (/(?!)/)
Example
Ignore warnings that contain the word corona
Regex: .*corona.*
Headline: corona-verordnung des landes: warnstufe durch landesgesundheitsamt ausgerufen
Affected area filter
This filter whitelists warnings based on the affected area. In other words, if the regular expression matches the area, the warning will be displayed.
Default: Match all (.*)
Example
Show only warnings from the city of nagold.
Regex: .*nagold.*
Areas: gemeinde oberreichenbach, gemeinde neuweiler, stadt nagold
Supported functionality
This integration provides the following entities for each warning slot.
Sensors
-
Affected areas:
- Description: Areas affected by the warning.
-
Remarks: Shortened to 250 chars. To get all areas please use the
nina.get_affected_areasaction.
-
Expires:
- Description: Expiration timestamp of the warning.
-
Headline:
- Description: Headline of the warning.
-
More information URL:
- Description: URL with further information about the warning.
-
Sender:
- Description: Sender of the warning.
-
Sent:
- Description: Transmission timestamp of the warning.
-
Severity:
- Description: Severity of the warning.
- Options: Extreme, Severe, Moderate, Minor, Unknown
-
Start:
- Description: Starting timestamp of the warning.
Binary sensors
-
Warning:
- Description: Presence of a warning.
- Attributes: Available attributes are listed below.
Attributes
The following attributes are available for the warnings.
-
Attributes:
-
id: Individual ID for each warning.
-
Response data
The response data is a string with the description as provided by NINA.
Data updates
The integration checks for warnings every 5 minutes.
Known limitations
This integration may only work with an Internet connection that supports IPv4.
Removing the integration
This integration follows standard integration removal. No extra steps are required.
To remove an integration instance from Home Assistant
- Go to Settings > Devices & services and select the integration card.
- From the list of devices, select the integration instance you want to remove.
- Next to the entry, select the three dots
menu. Then, select Delete.