Template Weather Provider


The template integrations creates weather provider that combines integrations and an existing weather provider into a fused weather provider.

There are several powerful ways to use this integration, including localizing your weather provider information with local information from temperature, humidity, pressure sensors that you own.

Another use case could be using temperature and humidity from one weather plaform, with forecasts from a different one.

Configuration

To enable a Template Weather provider in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
weather:
  - platform: template
    name: "my very own weather station"
    condition_template: "sunny"
    temperature_template: "{{ states('sensor.temperature') | float}}"
    humidity_template: "{{ states('sensor.humidity')| float }}"
    forecast_template: "{{ states.weather.my_region.attributes.forecast }}"

Configuration Variables

name string Required

Name to use in the frontend.

unique_id string (Optional)

An ID that uniquely identifies this weather entity. Set this to a unique value to allow customization through the UI.

condition_template template Required

The current weather condition.

temperature_template template Required

The current temperature.

humidity_template template Required

The current humidity.

attribution_template string (Optional)

The attribution to be shown in the frontend.

pressure_template template (Optional)

The current air pressure.

wind_speed_template template (Optional)

The current wind speed.

wind_bearing_template template (Optional)

The current wind bearing.

ozone_template template (Optional)

The current ozone level.

visibility_template template (Optional)

The current visibility.

forecast_template template (Optional)

Daily forecast data.