Add precipitation nowcast to your Home Assistant. This component will add a weather sensor with data from the met.no precipitation nowcast service.
The weather sensor holds precipitation data for the next 90 minutes. Detailed precipitation data is available in the forecast
attribute.
Only available for locations in the Nordic area.
- Ensure that HACS is installed.
- In HACS / Integrations / menu / Custom repositories, add the url the this repository.
- Search for and install the Met.no Nowcast integration.
- Restart Home Assistant.
Configuration of the integration is done through Configuration > Integrations where you enter coordinates.
To display the precipitation data, use your choice of charting component.
Example configuration using chartjs-card
Replace <entity_id>
with your entity id.
- chart: line
data:
datasets:
- backgroundColor: rgb(255, 99, 132)
fill: true
borderWidth: 0
cubicInterpolationMode: monotone
data: >-
${states[<entity_id>].attributes.forecast.map(cast =>
({x: new Date(cast.datetime).getTime(),y:
parseFloat(cast.precipitation)}))}
label: Precipitation
labels: >-
${states[<entity_id>].attributes.forecast.map(cast => new
Date(cast.datetime).toTimeString())}
custom_options:
showLegend: false
options:
elements:
point:
radius: 0
scales:
x:
display: false
'y':
beginAtZero: true
display: false
plugins:
title:
display: false
text: Precipitation
entity_row: false
type: custom:chartjs-card