NINA

The NINA integration displays warnings from the Bundesamt für Bevölkerungsschutz und Katastrophenhilfe in Germany.

它为每个县/市创建警告槽,当出现警告时,警告槽会更改为不安全。警告文本和元数据存储在槽的属性中。

Configuration

To add the NINA service to your Home Assistant instance, use this My button:

Open Add integration in your Home Assistant instance.

Manual configuration steps
City/county:
  description: "City/county to receive warnings for. Grouped for better searchability."
Maximum warnings:
  description: "Maximum warnings fetched per city/county"
Affected area filter:
  description: "Whitelist regex to filter warnings based on affected areas. For details see below."
Headline blocklist:
  description: "Blacklist regex to filter warning based on headlines. For details see below."

Options

To define options for NINA, follow these steps:

  1. In Home Assistant, go to Settings > Devices & services.

  2. If multiple instances of NINA are configured, choose the instance you want to configure.

  3. On the card, select the cogwheel .

    • If the card does not have a cogwheel, the integration does not support options for this device.

    Screenshot showing the cogwheel icon on an integration card in the Settings > Devices & services page

  4. Edit the options, then select Submit to save the changes.

City/county:
  description: "City/county to receive warnings for. Grouped for better searchability."
Maximum warnings:
  description: "Maximum warnings fetched per city/county"
Affected area filter:
  description: "Whitelist regex to filter warnings based on affected areas. For details see below."
Headline blocklist:
  description: "Blacklist regex to filter warning based on headlines. For details see below."

Filter

该集成包括通过正则表达式以两种方式过滤警告的可能性。

Note

All filters are applied to lowercase text only.

Headline blocklist

该黑名单根据标题过滤警告。换句话说,如果正则表达式与警告标题匹配,则警告将被忽略

默认值:不匹配任何内容 (/(?!)/)

Example

忽略包含“corona”一词的警告

正则表达式:.*corona.*
标题:“corona-verordnung des landes:warnstufe durch landesgesundheitsamt ausgerufen”

Affected area filter

此过滤器基于受影响区域的白名单警告。换句话说,如果正则表达式匹配该区域,就会显示

Default: Match all (.*)

Example

仅显示来自纳戈尔德市的警告。

正则表达式:.*nagold.*
地区:gemeinde oberreichenbach、gemeinde neuweiler、stadt nagold

Attributes

AttributeDescription
headline(str) Official headline of the warning.
description(str) Official description of the warning.
sender(str) Sender of the warning. Can be empty.
severity(str) Severity of the warning.
Extreme - Extraordinary threat to life or property
Severe - Significant threat to life or property
Moderate - Possible threat to life or property
Minor – Minimal to no known threat to life or property
Unknown - Severity unknown
recommended_actions(str) The recommendations for action.
affected_areas(str) Areas where the warning applies.
id(str) Individual ID for each warning.
sent(time) Transmission time and date (UTC) of the issued warning.
start(time) Starting time and date (UTC) of the issued warning. Can be empty.
expires(time) Expiration time and date (UTC) of the issued warning. Can be empty.

Data updates

集成每 5 分钟检查一次警告。

Known limitations

此集成可能仅适用于支持 IPv4 的 Internet 连接。

Removing the integration

此集成遵循标准集成删除。不需要额外的步骤。

To remove an integration instance from Home Assistant

  1. Go to Settings > Devices & services and select the integration card.
  2. From the list of devices, select the integration instance you want to remove.
  3. Next to the entry, select the three-dot menu. Then, select Delete.