From 92ac3330d915c8d5b3d24a4d618d48702a44f6f5 Mon Sep 17 00:00:00 2001 From: Glenn Waters Date: Mon, 10 Mar 2025 04:42:07 -0400 Subject: [PATCH] Update environment_canada.markdown (#37874) Tidy up language. --- .../_integrations/environment_canada.markdown | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/source/_integrations/environment_canada.markdown b/source/_integrations/environment_canada.markdown index 906692d07e8..6e28177f92b 100644 --- a/source/_integrations/environment_canada.markdown +++ b/source/_integrations/environment_canada.markdown @@ -36,8 +36,7 @@ The integration will create the entities listed below. Some of the entities are ### Weather -- Current conditions and daily forecast -- Current conditions and hourly forecast (disabled by default) +- Current conditions, daily forecast, and hourly forecast ### Camera @@ -108,9 +107,13 @@ Not all weather stations provide a complete set of weather/sensor data. The data ## Template sensors -The configuration snippet below adds a useful [template sensors](/integrations/template/) showing the current "feels like" temperature among air temperature, humidex, and wind chill. +The configuration snippets below add [template sensors](/integrations/template/). See the [weather integration](/integrations/weather/) for additional examples. -Replace `NAME` with the name used to configure your integration. +Replace `NAME` with the weather entity used in your configuration. + +### Feels Like + +A sensor that takes into account the humidex or wind chill for what the temperature feels like. {% raw %} @@ -132,6 +135,8 @@ template: {% endraw %} +### Additional Forecast Data + The configuration snippet below adds a template sensor containing the current forecast information as attributes and the text summary of the forecast for the current day. {% raw %} @@ -152,12 +157,12 @@ The configuration snippet below adds a template sensor containing the current fo sensor: - name: Weather Forecast Daily unique_id: weather_forecast_daily - state: "{{ states('weather.ottawa_kanata_orleans_forecast') }}" + state: "{{ states('weather.NAME') }}" attributes: - daily: "{{ forecasts['weather.ottawa_kanata_orleans_forecast']['daily_forecast'] }}" - hourly: "{{ forecasts['weather.ottawa_kanata_orleans_forecast']['hourly_forecast'] }}" - summary: "{{ forecasts['weather.ottawa_kanata_orleans_forecast']['daily_forecast'][0]['text_summary'] }}" - temperature_unit: "{{ state_attr('weather.ottawa_kanata_orleans_forecast', 'temperature_unit') }}" + daily: "{{ forecasts['weather.NAME']['daily_forecast'] }}" + hourly: "{{ forecasts['weather.NAME']['hourly_forecast'] }}" + summary: "{{ forecasts['weather.NAME']['daily_forecast'][0]['text_summary'] }}" + temperature_unit: "{{ state_attr('weather.NAME', 'temperature_unit') }}" ``` {% endraw %}