Environment Canada Hourly Forecast

Here is one example ( Ive done 1 for each day/hour i need in UI ) so i don’t have all i.e 24 hours

# Trigger 0 Hourly
  - trigger:
      - platform: state
        entity_id: weather.forecast_home
    action:
      - service: weather.get_forecasts
        data:
          type: hourly
        target:
          entity_id: weather.forecast_home
        response_variable: hourly
    sensor:
      - name: weather-0
        availability: "true"
        unique_id: weather_0
        state: "{{ hourly['weather.forecast_home'].forecast[0].temperature }}"
        unit_of_measurement: °C
        attributes:
          weather_datetime: "{{ hourly['weather.forecast_home'].forecast[0].datetime }}"
          weather_condition: "{{ hourly['weather.forecast_home'].forecast[0].condition }}"
          weather_temp: "{{ hourly['weather.forecast_home'].forecast[0].temperature }}"
          weather_humid: "{{ hourly['weather.forecast_home'].forecast[0].humidity }}"
          weather_wind_bearing: "{{ hourly['weather.forecast_home'].forecast[0].wind_bearing }}"
          weather_wind_speed: "{{ hourly['weather.forecast_home'].forecast[0].wind_speed }}"
          weather_wind_gust: "{{ hourly['weather.forecast_home'].forecast[0].wind_gust_speed }}"
          weather_precipitationt: "{{ hourly['weather.forecast_home'].forecast[0].precipitation }}"

Below is another with i.e all_attr(in 1) + 5 days-attr in 1 sensor ( This can be adapted to hourly, by changing the type/response_variable, like above )

ApexCharts card - A highly customizable graph card - #3454 by Mariusthvdb.

Edit: The reason i choosed 1 for each hour/day, is because i Changed my Weather-overview to Custom:button-cards

1 Like