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
statestringRequiredThe current weather condition.
temperaturefloatRequiredThe current temperature in °C or °F.
pressurefloatNoneThe current air pressure in hPa or inHg.
humidityfloatNoneThe current humidity in %.
visibilityfloatNoneThe current visibility in km or mi.
wind_speedfloatNoneThe current wind speed in km/h or mi/h.
wind_bearingstringNoneThe current wind bearing, 1-3 letters.
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

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.