GithubHelp home page GithubHelp logo

jdejaegh / irm-kmi-ha Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 0.0 3.01 MB

Home Assistant weather provider using data from Belgian IRM KMI 🇧🇪 🇱🇺 🇳🇱

License: MIT License

Python 100.00%
home-assistant home-assistant-integration weather belgium luxembourg netherlands pollen rain-radar weather-forecast

irm-kmi-ha's People

Contributors

jdejaegh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

irm-kmi-ha's Issues

hourly weather data via attributes

Would it be possible to expose the hourly weather data via attributes? More specifically I'm interested to retrieve the rain in the upcoming hours to see if I will let out my mowing robot or not.

The default weather integration does it like below.
image

I can retrieve the rain data for the coming hours like:
{{ (state_attr(''weather.forecast_home'',''forecast'')[0].precipitation | float(0) + state_attr(''weather.forecast_home'',''forecast'')[1].precipitation | float(0) + state_attr(''weather.forecast_home'',''forecast'')[2].precipitation | float(0) ) < 5 }}

I suppose you have the data because i see it in the lovelace, but I don't see any state attributes I could retrieve.
image

image

Missing UV index data

Since one of the most recent versions the uv-index attribute seems to be missing:
image

I think the last IRM KMI version to have this was version 0.2.4 but I could be wrong here.
Currently I'm on version 0.2.8.
Is it possible to include this attribute again?

Pollen and Uv-index data as attributes

Is it possible to get the KMI data for active pollen and the current Uv-index as seperate attributes?
These values are the only ones missing to complete my custom weather card so I would greatly appreciate it if these became available!

Storm warning missing

Right now, there is a storm warning for Brussels. I can't find it anywhere. Maybe the warning sensor could be used.

Improve hourly labelling at night

Hi

Great integration to have as a Belgian!

Would it be possible to improve the labelling during the night, so weather Lovelace integrations would show a moon instead of a sun in case it is 'partly cloudy' during the night?

I'm not sure if this is accessible through the KMI data you pull, although the KMI website does properly show a moon during 'partly cloudy' at night. If not available, perhaps sunrise and sundown hours are available so one could write a workaround to have a 'partly cloudy night' condition.

I also asked if perhaps the Lovelace integration I use can add this particular label, or if it can make an override during the night.decompil3d/lovelace-hourly-weather#662

As you see below, it is a bit odd that during the night we see this 'partly cloudy' condition with a sun.

Thanks for considering this improvement.

For example
Screenshot_20240331-064528
Screenshot_20240331-064129
Screenshot_20240331-064120

Exceptional weather - not really

Thank you for this integration!

Right now, there weather is characterised as exceptional. True is not really the case.

Screenshot with Clock Weather Card:
Screenshot_20240119-230717

Shifted values and missing day

On the following screenshot, met.no data above and IRM below:

Screenshot_20240121-004407

Sunday temperature should go to 6°C instead of zero. And Thursday is missing.

While reporting this, Sunday got fixed but Wednesday vanished. This all happened between midnight and 1.00.
Screenshot_20240121-004933~2

For reference:
Screenshot_20240121-005711
Have they inverted the tonight and Sunday values?

Also of interest: Wednesday's night value is higher the during the day. This might have wrecked havoc in your logic.

problem alert

hi,
I am on the latest version, I am in Belgium, in Liège, where, for the moment, there is a yellow alert in the wind, but the alert sensor always tells me "secure"
Is there anything to change or modify or is it a bug?

Capture d’écran 2024-04-15 à 11 33 24

Capture d’écran 2024-04-15 à 11 34 24

Capture d’écran 2024-04-15 à 11 37 18

there is indeed alert, so why tell me “secure”??

Capture d’écran 2024-04-15 à 11 41 24

Improve API timeouts handling

Currently, when the API times out, Home Assistant shows all the sensors as 'unavailable' until the next successful refresh. As the polling interval is 7 minutes, it means that the sensors are 'unavailable' a multiple of 7 minutes.

Things to investigate to improve that:

  • Keep the existing data and do not make the sensor become unavailable immediately (wait 2 or 3 failed updates before doing so)
  • Increase the timeout limit on the client side
  • Retry sooner than the default polling interval if the last request timed out (may not be nice to the API)

Linked to #21

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.