From a17e7827eadda7eaedb31e86d927f313cc5d2fe0 Mon Sep 17 00:00:00 2001 From: avee87 Date: Fri, 5 Mar 2021 00:06:33 +0000 Subject: [PATCH] Add new variables to weather template entity I'm adding new configuration variables so updating documentation accordingly: https://github.com/home-assistant/core/pull/47420 --- source/_integrations/weather.template.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/_integrations/weather.template.markdown b/source/_integrations/weather.template.markdown index c2e857c9cae6..5c6cfb59c919 100644 --- a/source/_integrations/weather.template.markdown +++ b/source/_integrations/weather.template.markdown @@ -30,6 +30,8 @@ weather: condition_template: "sunny" temperature_template: "{{ states('sensor.temperature') | float}}" humidity_template: "{{ states('sensor.humidity')| float }}" + wind_bearing_template: "{{ state_attr('weather.home', 'wind_bearing') }}" + wind_speed_template: "{{ state_attr('weather.home', 'wind_speed') | float }}" forecast_template: "{{ states.weather.my_region.attributes.forecast }}" ``` @@ -56,6 +58,14 @@ pressure_template: description: The current air pressure. required: false type: template +visibility_template: + description: The current visibility. + required: false + type: template +wind_bearing_template: + description: The current wind direction. + required: false + type: template wind_speed_template: description: The current wind speed. required: false