Skip to content

Releases: golles/ha-knmi

2.2.0

06 Jun 10:33
Compare
Choose a tag to compare

Enjoying this integration? Show your support by starring the repository! ⭐️

Changes:

  • HA 2024.6.0 fix: Detected blocking call to open inside the event loop
  • Handle possible unavailable weather conditions

Important notes:
Reached 100% test coverage

What's Changed

  • Add test for diagnostics by @golles in #146
  • Add test coverage for missing lines by @golles in #147
  • Handle possible unavailable conditions by @golles in #151
  • fix(2024.6.0): Handling time zones without blocking the event loop by @golles in #153

Full Changelog: 2.1.0...2.2.0

2.2.0-b1

05 Jun 20:36
8b6a842
Compare
Choose a tag to compare
2.2.0-b1 Pre-release
Pre-release

fix(2024.6.0): Handling time zones without blocking the event loop #153

2.1.0

21 Apr 14:36
Compare
Choose a tag to compare

Enjoying this integration? Show your support by starring the repository! ⭐️

Changes:

  • Resolved JSON decoding issue!
  • Enhanced weather functionality: now adjusts snowy to rainy if the temperature exceeds 6 degrees Celsius
  • Improved weather accuracy: changes sunny to clear-night after sunset
  • Diagnostic improvements: introduced response_text field in diagnostics for easier issue resolution, containing the response body.

What's Changed

  • Fix for JSON unexpected character error by @golles in #141
  • Fix: Warm snow bug by @golles in #142
  • Fix: Set weather state to clear night when API gives sunny after sunset by @golles in #143

Full Changelog: 2.0.1...2.1.0

2.0.1

17 Mar 13:58
Compare
Choose a tag to compare

If you like this integration, please star this repo to show your appreciation - it makes me very happy!

Changes:

  • Add apparent temperature in weather entity
  • Fix hourly precipitation
  • Make forecast timestamp serializable
  • Fix: Detected that custom integration 'knmi' sets "version" directly to update a config entry

What's Changed

  • Bump softprops/action-gh-release from 1 to 2 by @dependabot in #133
  • Update a config entry with async_update_entry by @golles in #134
  • Fix hourly precipitation and add apparent temperature in weather entity by @golles in #127
  • Make forecast timestamp serializable by @golles in #128

Full Changelog: 2.0.0...2.0.1

2.0.0

25 Feb 18:56
dd08339
Compare
Choose a tag to compare

Release Notes

Before proceeding with the update, please review the comprehensive release notes, as there are breaking changes.

Version 2.0.0

Exciting news! Version 2.0.0 is here, featuring a collaboration with Weerlive, unleashing a new API with enhanced capabilities for all users. Thank you, Martijn!

New features:

  • Extended daily forecast: The weather entity now provides a 5-day daily forecast, up from the previous 3 days.
  • Hourly forecast: The weather entity is extended with hourly forecast for the upcoming 24 hours.
  • Entity names, attribute names and some states are now translated into English and Dutch and this can easily be extended into other languages.

Breaking changes:

To align with the latest developments:

  • Python Version: The component now utilizes Python 3.12, in line with HA 2024.2 release.
  • Deprecated forecast attribute: The deprecated forecast attribute in the weather entity has now been removed, as it won't be supported after 2024.3.
  • All the previous entities will be removed during the upgrade and new ones are being created, Entity name (and unique_id) and attributes are renamed so you need to update your dashboards, automations and scripts (I'm really really sorry about this!). Better unique id's are now created to prevent this in the future.

New entities:

In response to user feedback and the deprecation of the forecast attributes in HA, several new entities have been introduced. Most of these sensors are not enabled by default, allowing you to choose the ones you find valuable. The amount of sensors enabled doesn't impact the API limits.

Binary sensors

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

Sensors

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

Weather

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_probability in millimeters
wind_bearing
wind_speed
wind_speed_bft Not officially supported, but nice addition
solar_irradiance Not officially supported, but nice addition

Thank you for your continued support and feedback!

What's Changed

  • Fix black formatting by @golles in #118
  • Bump codecov/codecov-action from 3 to 4 by @dependabot in #117
  • Update pip requirement from <23.4,>=21.0 to >=21.0,<24.1 by @dependabot in #116
  • Update Python to 3.12, devcontainer and make it possible to run HA in a Codespace by @golles in #119
  • Update to Weerlive API v2 by @golles in #120

Full Changelog: 1.7.1...2.0.0

2.0.0-b1

22 Feb 18:41
Compare
Choose a tag to compare
2.0.0-b1 Pre-release
Pre-release

Release Notes

Before proceeding with the update, please review the comprehensive release notes, as there are breaking changes.
Please share feedback in #120

Version 2.0.0 beta 1

Exciting news! Version 2.0.0 is here, featuring a collaboration with Weerlive, unleashing a new API with enhanced capabilities for all users. Thank you, Martijn!

New features:

  • Extended daily forecast: The weather entity now provides a 5-day daily forecast, up from the previous 3 days.
  • Hourly forecast: The weather entity is extended with hourly forecast for the upcoming 24 hours.
  • Entity names, attribute names and some states are now translated into English and Dutch and this can easily be extended into other languages.

Breaking changes:

To align with the latest developments:

  • Python Version: The component now utilizes Python 3.12, in line with HA 2024.2 release.
  • Deprecated forecast attribute: The deprecated forecast attribute in the weather entity has now been removed, as it won't be supported after 2024.3.
  • All the previous entities will be removed during the upgrade and new ones are being created, Entity name (and unique_id) and attributes are renamed so you need to update your dashboards, automations and scripts (I'm really really sorry about this!). Better unique id's are now created to prevent this in the future.

New entities:

In response to user feedback and the deprecation of the forecast attributes in HA, several new entities have been introduced. Most of these sensors are not enabled by default, allowing you to choose the ones you find valuable. The amount of sensors enabled doesn't impact the API limits.

Binary sensors

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

Sensors

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

Weather

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_probability in millimeters
wind_bearing
wind_speed
wind_speed_bft Not officially supported, but nice addition
solar_irradiance Not officially supported, but nice addition

Thank you for your continued support and feedback!

1.7.1

05 Jan 18:32
Compare
Choose a tag to compare

If you like this integration, please star this repo to show your appreciation - it makes me very happy!

Changes:

  • Fix for HA 2024.1 warning: LENGTH_KILOMETERS, PRESSURE_HPA, SPEED_KILOMETERS_PER_HOUR, TEMP_CELSIUS was used from knmi, this is a deprecated constant which will be removed in HA Core 2025.1.

What's Changed

  • Bump github/codeql-action from 2 to 3 by @dependabot in #109
  • Update license copyright year(s) by @github-actions in #113
  • Fix for HA 2024.1 by @hmmbob in #112

Full Changelog: 1.7.0...1.7.1

1.7.0

16 Dec 11:49
Compare
Choose a tag to compare

As we wrap up the year, I'd like to share the last release of the year.

Milestone Achieved
Since December 2nd, this integration has hit a major milestone with over 500 active installations! This number includes users who've opted in for analytics. I didn't expect such a fantastic response when I started this integration in 2021 to have more control by replacing the built-in rest sensor.

Big thanks to the incredible community! Your raised issues, suggestions, and feedback all with valuable input.

I hope you enjoy the holiday season with the best matching weather possible =)

Changes:

  • You can now configure the scan interval, in case you want to change the default update frequently (5 minutes) to a lower value, see #108 for more info and a screenshot.

What's Changed

Full Changelog: 1.6.1...1.7.0

1.6.1

13 Oct 13:05
Compare
Choose a tag to compare

If you like this integration, please star this repo to show your appreciation - it makes me very happy!

What's Changed

  • Improved log warning when a value is empty by @golles in #97

Full Changelog: 1.6.0...1.6.1

1.6.0

07 Sep 15:19
Compare
Choose a tag to compare

If you like this integration, please star this repo to show your appreciation - it makes me very happy!

Changes:

Important notes:

  • This version requires Home Assistant version 2023.9 (or newer) https://www.home-assistant.io/blog/2023/09/06/release-20239/ It supports daily weather forecasts, and the others (Hourly and Twice daily) are not supported.
  • The forecast attribute is no longer available, so you need to update your automations, see this thread with examples; #87 (comment) If you want to keep the attribute until HA phases it out completely, you should stick with version 1.5.0.

What's Changed

Full Changelog: 1.5.0...1.6.0