MeteoAlarm

MeteoAlarm 平台允许用户监控来自 MeteoAlarm (EUMETNET) 的欧洲天气警报。使用此二进制传感器,您需要从 MeteoAlarm 获取国家和省份名称。请注意,国家名称必须完全按照其在 URL 中出现的方式书写,该 URL 以 https://feeds.meteoalarm.org/feeds/meteoalarm-legacy-atom- 开头,包括名称中的任何连字符。如果没有这样做,可能会导致错误或不正确的数据。

如果适用,二进制传感器状态显示警告信息。详细信息可作为属性获取。

配置

要启用此二进制传感器,请将以下行添加到您的 configuration.yamlconfiguration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 中:

binary_sensor:
  - platform: meteoalarm
    country: "netherlands"
    province: "Groningen"

Configuration Variables

name string (Optional, default: meteoalarm)

二进制传感器名称

country string Required

你国家的全名(英文格式,小写字母)

province string Required

省份

language string (Optional, default: en-US)

你的语言的 ISO 代码,请注意这仅在当前国家内有效。因此 ‘nl-NL’ 或 ‘nl-BE’ 仅在荷兰或比利时有效

示例输出

当状态为 “on” 时,您将找到以下示例。

attribution: 信息由 MeteoAlarm 提供
language: en-GB
category: Met
event: 严重森林火灾警告
responseType: 监测
urgency: 立即
severity: 严重
certainty: 可能
effective: 2019-05-02T22:00:00+00:00
onset: 2019-05-02T22:00:00+00:00
expires: 2019-05-03T21:59:00+00:00
senderName: Stig Carlsson
headline: 对 Hedmark, Oppland 的橙色森林火灾警告
description: 在没有雪的地区,高草和石南植物有火灾风险,直到降水量显著增多。
Consequences: 植被非常容易被点燃,可能影响非常大面积。
instruction: 对开放火源要非常小心。遵循当地当局的指示。应急服务应评估必要的警惕级别。
awareness_level: 3; orange; 严重
awareness_type: 8; forest-fire
unit_of_measurement:
friendly_name: meteoalarm
icon: mdi:alert

有几个意识级别:

  • 2; yellow; 中等
  • 3; orange; 严重
  • 4; red; 高

示例自动化

automation:
  - alias: "提醒我天气警告"
    triggers:
      - trigger: state
        entity_id: binary_sensor.meteoalarm
        from: "off"
    actions:
      - action: notify.notify
        data:
          title: "{{state_attr('binary_sensor.meteoalarm', 'headline')}}"
          message: "{{state_attr('binary_sensor.meteoalarm', 'description')}}  {{state_attr('binary_sensor.meteoalarm', 'effective')}} 生效"

Note

此集成与 MeteoAlarm 无关联,并通过使用 XML 提要从网站获取数据。使用时需自担风险。