mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Added information for the MeteoAlarm Sensor (#9375)
* Added information for the MeteoAlarm Sensor
* Update source/_components/meteoalarm.markdown
Co-Authored-By: rolfberkenbosch <30292281+rolfberkenbosch@users.noreply.github.com>
* Update source/_components/meteoalarm.markdown
Co-Authored-By: rolfberkenbosch <30292281+rolfberkenbosch@users.noreply.github.com>
* Update source/_components/meteoalarm.markdown
Co-Authored-By: rolfberkenbosch <30292281+rolfberkenbosch@users.noreply.github.com>
* Update source/_components/meteoalarm.markdown
Co-Authored-By: rolfberkenbosch <30292281+rolfberkenbosch@users.noreply.github.com>
* Update source/_components/meteoalarm.markdown
Co-Authored-By: rolfberkenbosch <30292281+rolfberkenbosch@users.noreply.github.com>
* Update source/_components/meteoalarm.markdown
Co-Authored-By: rolfberkenbosch <30292281+rolfberkenbosch@users.noreply.github.com>
* Update meteoalarm.markdown
* ✏️ Tweak
* Change the sensor to a binary_sensor
* Fix some typos.
This commit is contained in:
parent
16bbf09716
commit
ae7d055a97
107
source/_components/meteoalarm.markdown
Normal file
107
source/_components/meteoalarm.markdown
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: MeteoAlarm Sensor
|
||||||
|
description: "Instructions on how to set up MeteoAlarm binary sensors within Home Assistant."
|
||||||
|
date: 2019-05-03 16:50
|
||||||
|
sidebar: true
|
||||||
|
comments: false
|
||||||
|
sharing: true
|
||||||
|
footer: true
|
||||||
|
logo: meteoalarm.png
|
||||||
|
ha_category: Binary Sensor
|
||||||
|
ha_release: 0.93
|
||||||
|
ha_iot_class: Local Polling
|
||||||
|
---
|
||||||
|
|
||||||
|
The `MeteoAlarm` platform allows one to watch for weather alerts in europe from [MeteoAlarm](https://www.meteoalarm.eu) (EUMETNET). To use this binary sensor, you need the two digits of your country and the province name from [MeteoAlarm](https://www.meteoalarm.eu). Please note that you need to write the exact details from the website with capitals.
|
||||||
|
|
||||||
|
The binary sensor state shows if applicable the warning message. The details are available as attribute.
|
||||||
|
|
||||||
|
## {% linkable_title Configuration %}
|
||||||
|
|
||||||
|
To enable this binary sensor, add the following lines to your `configuration.yaml`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
binary_sensor:
|
||||||
|
- platform: meteoalarm
|
||||||
|
country: 'NL'
|
||||||
|
province: 'Groningen'
|
||||||
|
```
|
||||||
|
|
||||||
|
{% configuration %}
|
||||||
|
name:
|
||||||
|
description: Binary sensor name
|
||||||
|
required: false
|
||||||
|
default: meteoalarm
|
||||||
|
type: string
|
||||||
|
country:
|
||||||
|
description: The 2 digits of your country
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
province:
|
||||||
|
description: The province
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
language:
|
||||||
|
description: "The 4 digits our your language, please be aware that this is only possible in the current country. So 'ne' is only possible in Netherlands. Possible options is: bu, bs, ce, da, de, ee, en, es, ga, ca, su, fr, gr, he, hr, ma, is, it, li, la, sr, mk, ma, ne, no, po, ro, cp, sv, sl, eu."
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'en'
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
|
||||||
|
{% linkable_title Example output %}
|
||||||
|
|
||||||
|
You will find an example below when the state is "on".
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
attribution: Information provided by MeteoAlarm
|
||||||
|
language: en-GB
|
||||||
|
category: Met
|
||||||
|
event: Severe forest-fire warning
|
||||||
|
responseType: Monitor
|
||||||
|
urgency: Immediate
|
||||||
|
severity: Severe
|
||||||
|
certainty: Likely
|
||||||
|
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: Orange forest-fire for Hedmark, Oppland
|
||||||
|
description: High grass and heather fire hazard in areas without snow until significant amount of precipitation.
|
||||||
|
Consequences: Vegetation is very easily ignited and very large areas may be affected.
|
||||||
|
instruction: Be very careful with open fire. Follow the instructions from the local authorities. Emergency services should assess a necessary level of alertness.
|
||||||
|
awareness_level: 3; orange; Severe
|
||||||
|
awareness_type: 8; forest-fire
|
||||||
|
unit_of_measurement:
|
||||||
|
friendly_name: meteoalarm
|
||||||
|
icon: mdi:alert
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
|
There are a few awareness levels:
|
||||||
|
|
||||||
|
* 2; yellow; Moderate
|
||||||
|
* 3; orange; Severe
|
||||||
|
* 4; red; High
|
||||||
|
|
||||||
|
{% linkable_title Example automation %}
|
||||||
|
|
||||||
|
Below you find an example of an automation.
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
automation:
|
||||||
|
- alias: Alert me about weather warnings
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.meteoalarm
|
||||||
|
from: ‘off’
|
||||||
|
action:
|
||||||
|
- service: notify.notify
|
||||||
|
data_template:
|
||||||
|
title: '{{state_attr('binary_sensor.meteoalarm', 'headline')}}'
|
||||||
|
message: "{{state_attr('binary_sensor.meteoalarm', 'description')}} is effective on {{state_attr('binary_sensor.meteoalarm', 'effective')}}"
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
|
<p class='note warning'>
|
||||||
|
This component is not affiliated with MeteoAlarm and retrieves data from the website by using the XML feeds. Use it at your own risk.
|
||||||
|
</p>
|
BIN
source/images/supported_brands/meteoalarm.png
Normal file
BIN
source/images/supported_brands/meteoalarm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
Loading…
x
Reference in New Issue
Block a user