Weather Entity

Properties#

tip

Properties should always only return information from memory and not do I/O (like network requests). Implement update() or async_update() to fetch data.

NameTypeDefaultDescription
conditionstringRequiredThe current weather condition.
temperaturefloatRequiredThe current temperature in °C or °F.
temperature_unitstringRequiredThe temperature unit, °C or °F.
pressurefloatNoneThe current air pressure in hPa or inHg.
humidityfloatNoneThe current humidity in %.
ozonefloatNoneThe current ozone level.
visibilityfloatNoneThe current visibility in km or mi.
wind_speedfloatNoneThe current wind speed in km/h or mi/h.
wind_bearingfloat or stringNoneThe current wind bearing in azimuth angle (degrees) or 1-3 letter cardinal direction.
forecastarrayNoneDaily or Hourly forecast data.
attributionstringNoneThe branding text required by the API provider.

Properties have to follow the units defined in the unit_system.

Forecast#

Forecast data should either be daily or hourly.

NameTypeDefaultDescription
datetimestringRequiredUTC Date time in RFC 3339 format.
temperaturefloatRequiredThe higher temperature in °C or °F
conditionstringNoneThe weather condition at this point.
templowfloatNoneThe lower daily Temperature in °C or °F
precipitationfloatNoneThe precipitation amount in mm or inch.
precipitation_probabilityintNoneThe probability of precipitation in %.
pressurefloatNoneThe air pressure in hPa or inHg.
wind_bearingfloat or stringNoneThe wind bearing in azimuth angle (degrees) or 1-3 letter cardinal direction.
wind_speedintNoneThe wind speed in km/h or mi/h.

Recommended values for state and condition#

These weather conditions are included in our translation files and also show the corresponding icon.

ConditionDescription
clear-nightClear night
cloudyMany clouds
exceptionalExceptional
fogFog
hailHail
lightningLightning/ thunderstorms
lightning-rainyLightning/ thunderstorms and rain
partlycloudyA few clouds
pouringPouring rain
rainyRain
snowySnow
snowy-rainySnow and Rain
sunnySunshine
windyWind
windy-variantWind and clouds

This means that the weather platforms don't need to support languages.

Last updated on