Belgium weather provider: IRM / KMI (meteo.be)

Hello,

Home Assistant is fairly new for me so i’m struggling with what I want to make and I’m not even sure if it would work with this integration.

We have around 7 screens/blinds around the house. Is there a way to create an automation that will open the blinds if there is rain expected within 15 minutes for example?

If it will start to rain within 15 minutes, it will trigger an automation to check if the blinds are closed or not. If they are closed, it will open them so that they don’t get wet.

Is it possible with this integration?

I monitored the “Volgende Waarschuwing/Next_warning” entity because I thought this would give me the value rain/snow/… But this is on a “unkown” state since I installed this integration 3 days ago.

Thanks!

@jdejaegh is this possible with your integration?

I am trying to make a sensor to display the amount of rain which fall today.
Any idea how to do this?

I tried some templates, but without succes

Hi,

That is expected: the warnings are for more extreme weather events like strong wind, heavy rainfall, thunder and so on. This is not meant to show when usual rain will fall.

What follows is not an automation, but a template sensor for the amount of rain expected in the next 20–30 minutes. From that, you should have a good starting point for your automation (monitor state change of this sensor, write your logic for the blinds).

Adding this in your configuration.yml file will create a new template sensor. This sensor will be updated every 10 minutes, on Home Assistant boot and whenever the weather state changes. It will fetch rain forecast from the radar and sum the forecast for the 3 next 10-minutes intervals. Note that the first interval will always be the current 10-minutes (e.g. at 11:01, the first interval will be 11:00 to 11:10).

template:
  - trigger:
      - platform: state
        entity_id: weather.home
      - platform: homeassistant
        event: start
      - platform: time_pattern
        minutes: 10
    action:
      - service: irm_kmi.get_forecasts_radar
        data:
          include_past_forecasts: false
        target:
          entity_id: weather.home
        response_variable: response
    sensor:
      - name: Rain in the next 20 minutes
        unique_id: rain_20_minutes_template
        state: "{{ response['weather.home'][:3] | map(attribute='native_precipitation') | sum }}"
        unit_of_measurement: mm

Make sure that weather.home is replaced with your actual IRM / KIM weather entity.

Hope this helps :slight_smile:

1 Like

Assuming your weather entity is weather.home, I would go with this. It gets the amount of rain from the daily forecast for today.

template:
  - trigger:
      - platform: state
        entity_id: weather.home
      - platform: homeassistant
        event: start
    action:
      - service: weather.get_forecasts
        data:
          type: daily
        target:
          entity_id: weather.home
        response_variable: response
    sensor:
      - name: Rain today
        unique_id: rain_today
        state: "{{ response['weather.home'].forecast[0].get('precipitation') }}"
        unit_of_measurement: mm
1 Like

Looks perfect! Thanks for the extra info!

Nice integration, replacing OWM with this one. Thank you.

Is there a way to change the language of the provided camera sensor to show in English?

Like ‘Sun 10:45’ instead of ‘Zo 10:45’