Italy Meteo-hydro alert and hydrogeological phenomena Civil Protection (Protezione Civile). In this custom component you can find the vigilance Bulletin and the Bulletin of national hydrogeological and hydraulic criticalities. They allow to check whether in your current location there will be criticalities/warnings related to weather-hydrogeological and hydraulic phenomena. Weather forecasts for civil protection purposes differs from the classic "weather forecasts". They highlight potentially harmful situations to people or things. This component was created for personal purposes, in order to be able to monitor the Civil Protection site and check for important updates. I hope it will be useful to you.
Fixed error fetching dpc data for 'criticality'. https://github.com/caiosweet/Home-Assistant-custom-components-DPC-Alert/issues/56 Increased the timeout for slow connections. https://github.com/caiosweet/Home-Assistant-custom-components-DPC-Alert/issues/54
Added Diagnostics (partial) Added option municipality (search zone by name) Added pending update call later (Request an update to get the data for the missing alert. async_request_refresh has debouncing built in, so more calls. To avoid this, only the missing data will be updated.)
Try to fix Timeout error fetching information from url
Added city option.
Added "publication_date" attribute in sensor.dpc_vigilance Added lovelace custom card templater example fixed URL api #46
N.B. You must have at least version 2021.12.0 or higher of home assistant installed.
Updated the code for compatibility with the new version 2021.12.x of Home Assistant. Fixed broken link in README.md file.
I try to get the id directly from github, otherwise I get it from the site.