NINA
The NINA
For each county/city it creates warning slots that change to Unsafe when warnings are present. The text of the warning and the metadata are stored in the attributes of the slots.
This integration may only work with an Internet connection that supports IPv4.
配置
要将 NINA integration 添加到您的 Home Assistant 实例中,请使用此 My 按钮:
手动配置步骤
如果上述 My 按钮不起作用,您也可以手动执行以下步骤:
-
浏览到您的 Home Assistant 实例。
-
转到
设置 > 设备与服务。 -
在右下角,选择
Add Integration 按钮。 -
从列表中选择 NINA。
-
按照屏幕上的说明完成设置。
Filter
The integration includes the possibility to filter warnings in two ways via a regex.
All filters are applied to lowercase text only.
Headline filter
This filter filters warnings based on the headline as a blacklist. 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
Attributes
Attribute | Description |
---|---|
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. |