Skip to content
Italy METEO-HYDRO ALERT (Protezione Civile)
Python
Branch: master
Clone or download
Latest commit 50eafcb Dec 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Dec 24, 2019
custom_components/dpc Update binary_sensor.py Nov 23, 2019
LICENSE.md Rename LICENSE to LICENSE.md Dec 24, 2019
README.md Update README.md Nov 23, 2019
hacs.json Add files via upload Oct 2, 2019
info.md Update info.md Nov 23, 2019

README.md

hacs

breaking change (2/10/2019)

ISTAT number is now required. Rename codice to level in attributes.

Home-Assistant-custom-components-DPC-Alert

Italy METEO-HYDRO ALERT To get more detailed information about parameters of warnings visit Civil Protection Department.

This component will set up the following platforms.

Platform Description
binary_sensor Show METEO-HYDRO ALERT True or False.

Configuration options

Key Type Required Default Description
name string False dpc Name of sensor
istat string True None Number data warehouse I.Stat
alert string False GIALLA (Verde,Gialla,Arancione,Rossa)
warnings list False - List of monitored warnings

Possible monitored warnings

Key Description
temporali_oggi Enables thunderstorms risk monitoring today
idraulico_oggi Enables Hydraulic risk monitoring today
idrogeologico_oggi Enables Hydrogeological risk monitoring today
temporali_domani Enables thunderstorms risk monitoring tomorrow
idraulico_domani Enables Hydraulic risk monitoring tomorrow
idrogeologico_domani Enables Hydrogeological risk monitoring tomorrow

Example usage (minimal)

binary_sensor:
  - platform: dpc
    istat: 58091
    warnings:
      - temporali_oggi

Example usage (complete)

binary_sensor:
  - platform: dpc
    name: DPC Roma
    istat: '058091'
    alert: 'gialla'
    warnings:
      - temporali_oggi
      - idraulico_oggi
      - idrogeologico_oggi
      - temporali_domani
      - idraulico_domani
      - idrogeologico_domani

Note

The istat number is required, you can easily find it here or you can download the complete list here If the Istat number starts with zero, it must be entered between the quotes.

License

Information provided by protezionecivilepop.tk Giovanni Pirrotta's Creative Commons Licenses CC-BY-SA 4.0.

Dati forniti dal servizio protezionecivilepop.tk di Giovanni Pirrotta - Licenza Creative Commons CC-BY-SA 4.0.

Contributions are welcome!

Thanks to PiotrMachowski for inspiration.


You can’t perform that action at this time.