Custom component that integrates KNMI weather service (via weerlive) in to Home Assistant
KNMI custom component for Home Assistant.
Weather data provided by KNMI, https://weerlive.nl.
The most convenient method for installing this custom component is via HACS. Simply search for the name, and you should be able to locate and install it seamlessly.
configuration.yaml
file.custom_components
directory, you must create one.custom_components
directory, generate a new directory named knmi
.custom_components/knmi/
directory in this repository.knmi
directory.Within the HA user interface, navigate to "Configuration" -> "Integrations", click the "+" button, and search for "KNMI" to add the integration.
This integration is translated into English and Dutch, including entity names and attributes, the data (from the API) is only available in Dutch. Feel free to create a pull request with your language, see translations. Non-numerical values are only available in Dutch
This integration comes with multiple pre-built entities, most of which are initially deactivated. To enable additional entities, follow these steps:
After completing this process, the newly enabled entities will receive values during the next update.
Name (EN) | Name (NL) | Attributes | Notes |
---|---|---|---|
Sun | Zon | Sunrise, Sunset, Sun chance today, tomorrow and day after tomorrow | Times of today, in UTC, frontend will convert this into your local time |
Warning | Waarschuwing | Title, Description, Code, Next code, Next warning | Code has its own entity, see Weather code below |
Normal sensors:
Name (EN) | Name (NL) | Attributes | Notes |
---|---|---|---|
Dew point | Dauwpunt | Unit configurable | |
Solar irradiance | Globale stralingsintensiteit | ||
Wind chill | Gevoelstemperatuur | Unit configurable | |
Air pressure | Luchtdruk | Unit configurable | |
Humidity | Luchtvochtigheid | ||
Max temperature today | Max temperatuur vandaag | Unit configurable | |
Max temperature tomorrow | Max temperatuur morgen | Unit configurable | |
Min temperature today | Min temperatuur vandaag | Unit configurable | |
Min temperature tomorrow | Min temperatuur morgen | Unit configurable | |
Precipitation today | Neerslag vandaag | ||
Precipitation tomorrow | Neerslag morgen | ||
Description | Omschrijving | State is in Dutch | |
Temperature | Temperatuur | Unit configurable | |
Weather forecast | Weersverwachting | State is in Dutch | |
Wind speed | Windsnelheid | Bearing, Degree, Beaufort and Knots | Unit configurable |
Weather code | Weercode | Raw state is in Dutch | |
Visibility | Zicht | Unit configurable |
Diagnostic sensors:
Name (EN) | Name (NL) | Notes |
---|---|---|
Location | Plaats | |
Remaining API requests | Resterende API verzoeken | |
Latest update | Laatste update | Server side update time |
The weather entity contains all the weather information, ideal for displaying a comprehensive overview in the Home Assistant frontend. It includes both a daily forecast spanning up to 5 days and an hourly forecast covering up to 24 hours.
Daily forecast attributes:
Attribute | Notes |
---|---|
datetime | Times in UTC, frontend will convert this into your local time |
condition | |
templow | |
temperature | |
precipitation_probability | in a percentage |
wind_bearing | |
wind_speed | |
wind_speed_bft | Not officially supported, but nice addition |
sun_chance | Not officially supported, but nice addition |
Hourly forecast attributes:
Attribute | Notes |
---|---|
datetime | Times in UTC, frontend will convert this into your local time |
condition | |
temperature | |
precipitation | in millimeters |
wind_bearing | |
wind_speed | |
wind_speed_bft | Not officially supported, but nice addition |
solar_irradiance | Not officially supported, but nice addition |
Integration with entities, notice the hidden ones:
Weather cards (hourly and daily forecast):
Weather entity (with daily and hourly forecast tabs):
Sun entity:
Warning entity:
To activate the debug log necessary for issue reporting, follow these steps:
Additionally, logging for this component can be enabled by configuring the logger in Home Assistant with the following steps:
logger:
default: warn
logs:
custom_components.knmi: debug
More info can be found on the Home Assistant logger integration page
If you want to contribute to this please read the Contribution guidelines