MeteoAlarm
MeteoAlarm
平台允许用户监控来自 MeteoAlarm
如果适用,二进制传感器状态显示警告信息。详细信息可作为属性获取。
配置
要启用此二进制传感器,请将以下行添加到您的 configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 中:
binary_sensor:
- platform: meteoalarm
country: "netherlands"
province: "Groningen"
示例输出
当状态为 “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')}} 生效"
此集成与 MeteoAlarm 无关联,并通过使用 XML 提要从网站获取数据。使用时需自担风险。