Skip to content
FL550 edited this page Nov 6, 2024 · 5 revisions

FAQ


How to get daily max/min values?

You have to insert this to your configuration.yaml and replace the [[REPLACE WITH YOUR WEATHER ENTITY]] with your station.

template:
  - trigger:
    - platform: time
      at: "00:02:00"
    - platform: homeassistant
      event: start
    - platform: event
      event_type: event_template_reloaded
    action:
      - service: weather.get_forecasts
        data:
          type: daily
        target:
          entity_id: [[REPLACE WITH YOUR WEATHER ENTITY]]
        response_variable: weather_data
    sensor:
      - name: "Max temp today"
        unique_id: max_temp_today
        state: >-
          {{ weather_data['[[REPLACE WITH YOUR WEATHER ENTITY]]'].forecast[0].temperature }}
        unit_of_measurement: "°C"
      - name: "Min temp today"
        unique_id: min_temp_today
        state: >-
          {{ weather_data['[[REPLACE WITH YOUR WEATHER ENTITY]]'].forecast[0].templow }}
        unit_of_measurement: "°C"

How to get max/min values in the next days?

This is usefull if you want to trigger an automation if the temperature will drop below a certain value in the next days. You have to insert this to your configuration.yaml and replace the [[REPLACE WITH YOUR WEATHER ENTITY]] with your station and replace the 5 in the template for your desired count of days.

template:
  - trigger:
    - platform: time
      at: "00:02:00"
    - platform: homeassistant
      event: start
    - platform: event
      event_type: event_template_reloaded
    action:
      - service: weather.get_forecasts
        data:
          type: daily
        target:
          entity_id: [[REPLACE WITH YOUR WEATHER ENTITY]]
        response_variable: weather_data
    sensor:
      - name: "Minimum temperature next days"
        unique_id: min_temp_next_days
        state: >-
          {{ weather_data['[[REPLACE WITH YOUR WEATHER ENTITY]]'].forecast[:5] | map(attribute='templow')| min }}
        unit_of_measurement: "°C"

How to add a weather chart?

You first have to configure a new entity, which is done by adding this integration again. You can use this link to go directly to the configuration: Open your Home Assistant instance and start setting up this integration.

In the following dialogue select to configure a map. After you have completed the configuration you now have a new camera entity which provides the images.

To show the image on your dashboard, add the camera entity in a picture-entity card.

Example images:

1.

2.

3.

4.

The precipitation radar is not updated correctly

To enable a smoother playback, you have to select "live" instead of "auto" for the camera_view in the picture-entity card.