Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.openweathermap.const Namespace Reference

Variables

string ATTR_API_CLOUD_COVERAGE = "cloud_coverage"
 
string ATTR_API_CLOUDS = "clouds"
 
string ATTR_API_CONDITION = "condition"
 
string ATTR_API_CURRENT = "current"
 
string ATTR_API_DAILY_FORECAST = "daily_forecast"
 
string ATTR_API_DATETIME = "datetime"
 
string ATTR_API_DEW_POINT = "dew_point"
 
string ATTR_API_FEELS_LIKE_TEMPERATURE = "feels_like_temperature"
 
string ATTR_API_FORECAST = "forecast"
 
string ATTR_API_HOURLY_FORECAST = "hourly_forecast"
 
string ATTR_API_HUMIDITY = "humidity"
 
string ATTR_API_PRECIPITATION = "precipitation"
 
string ATTR_API_PRECIPITATION_KIND = "precipitation_kind"
 
string ATTR_API_PRESSURE = "pressure"
 
string ATTR_API_RAIN = "rain"
 
string ATTR_API_SNOW = "snow"
 
string ATTR_API_TEMPERATURE = "temperature"
 
string ATTR_API_UV_INDEX = "uv_index"
 
string ATTR_API_VISIBILITY_DISTANCE = "visibility_distance"
 
string ATTR_API_WEATHER = "weather"
 
string ATTR_API_WEATHER_CODE = "weather_code"
 
string ATTR_API_WIND_BEARING = "wind_bearing"
 
string ATTR_API_WIND_GUST = "wind_gust"
 
string ATTR_API_WIND_SPEED = "wind_speed"
 
string ATTRIBUTION = "Data provided by OpenWeatherMap"
 
dictionary CONDITION_CLASSES
 
dictionary CONDITION_MAP
 
int CONFIG_FLOW_VERSION = 5
 
string DEFAULT_LANGUAGE = "en"
 
string DEFAULT_NAME = "OpenWeatherMap"
 
string DEFAULT_OWM_MODE = OWM_MODE_V30
 
string DOMAIN = "openweathermap"
 
string FORECAST_MODE_DAILY = "daily"
 
string FORECAST_MODE_FREE_DAILY = "freedaily"
 
string FORECAST_MODE_HOURLY = "hourly"
 
string FORECAST_MODE_ONECALL_DAILY = "onecall_daily"
 
string FORECAST_MODE_ONECALL_HOURLY = "onecall_hourly"
 
list LANGUAGES
 
string MANUFACTURER = "OpenWeather"
 
string OWM_MODE_FREE_CURRENT = "current"
 
string OWM_MODE_FREE_FORECAST = "forecast"
 
string OWM_MODE_V25 = "v2.5"
 
string OWM_MODE_V30 = "v3.0"
 
list OWM_MODES
 
list PLATFORMS = [Platform.SENSOR, Platform.WEATHER]
 
string UPDATE_LISTENER = "update_listener"
 
int WEATHER_CODE_SUNNY_OR_CLEAR_NIGHT = 800
 

Detailed Description

Consts for the OpenWeatherMap.

Variable Documentation

◆ ATTR_API_CLOUD_COVERAGE

string homeassistant.components.openweathermap.const.ATTR_API_CLOUD_COVERAGE = "cloud_coverage"

Definition at line 48 of file const.py.

◆ ATTR_API_CLOUDS

string homeassistant.components.openweathermap.const.ATTR_API_CLOUDS = "clouds"

Definition at line 42 of file const.py.

◆ ATTR_API_CONDITION

string homeassistant.components.openweathermap.const.ATTR_API_CONDITION = "condition"

Definition at line 41 of file const.py.

◆ ATTR_API_CURRENT

string homeassistant.components.openweathermap.const.ATTR_API_CURRENT = "current"

Definition at line 50 of file const.py.

◆ ATTR_API_DAILY_FORECAST

string homeassistant.components.openweathermap.const.ATTR_API_DAILY_FORECAST = "daily_forecast"

Definition at line 52 of file const.py.

◆ ATTR_API_DATETIME

string homeassistant.components.openweathermap.const.ATTR_API_DATETIME = "datetime"

Definition at line 31 of file const.py.

◆ ATTR_API_DEW_POINT

string homeassistant.components.openweathermap.const.ATTR_API_DEW_POINT = "dew_point"

Definition at line 32 of file const.py.

◆ ATTR_API_FEELS_LIKE_TEMPERATURE

string homeassistant.components.openweathermap.const.ATTR_API_FEELS_LIKE_TEMPERATURE = "feels_like_temperature"

Definition at line 35 of file const.py.

◆ ATTR_API_FORECAST

string homeassistant.components.openweathermap.const.ATTR_API_FORECAST = "forecast"

Definition at line 49 of file const.py.

◆ ATTR_API_HOURLY_FORECAST

string homeassistant.components.openweathermap.const.ATTR_API_HOURLY_FORECAST = "hourly_forecast"

Definition at line 51 of file const.py.

◆ ATTR_API_HUMIDITY

string homeassistant.components.openweathermap.const.ATTR_API_HUMIDITY = "humidity"

Definition at line 39 of file const.py.

◆ ATTR_API_PRECIPITATION

string homeassistant.components.openweathermap.const.ATTR_API_PRECIPITATION = "precipitation"

Definition at line 29 of file const.py.

◆ ATTR_API_PRECIPITATION_KIND

string homeassistant.components.openweathermap.const.ATTR_API_PRECIPITATION_KIND = "precipitation_kind"

Definition at line 30 of file const.py.

◆ ATTR_API_PRESSURE

string homeassistant.components.openweathermap.const.ATTR_API_PRESSURE = "pressure"

Definition at line 40 of file const.py.

◆ ATTR_API_RAIN

string homeassistant.components.openweathermap.const.ATTR_API_RAIN = "rain"

Definition at line 43 of file const.py.

◆ ATTR_API_SNOW

string homeassistant.components.openweathermap.const.ATTR_API_SNOW = "snow"

Definition at line 44 of file const.py.

◆ ATTR_API_TEMPERATURE

string homeassistant.components.openweathermap.const.ATTR_API_TEMPERATURE = "temperature"

Definition at line 34 of file const.py.

◆ ATTR_API_UV_INDEX

string homeassistant.components.openweathermap.const.ATTR_API_UV_INDEX = "uv_index"

Definition at line 45 of file const.py.

◆ ATTR_API_VISIBILITY_DISTANCE

string homeassistant.components.openweathermap.const.ATTR_API_VISIBILITY_DISTANCE = "visibility_distance"

Definition at line 46 of file const.py.

◆ ATTR_API_WEATHER

string homeassistant.components.openweathermap.const.ATTR_API_WEATHER = "weather"

Definition at line 33 of file const.py.

◆ ATTR_API_WEATHER_CODE

string homeassistant.components.openweathermap.const.ATTR_API_WEATHER_CODE = "weather_code"

Definition at line 47 of file const.py.

◆ ATTR_API_WIND_BEARING

string homeassistant.components.openweathermap.const.ATTR_API_WIND_BEARING = "wind_bearing"

Definition at line 38 of file const.py.

◆ ATTR_API_WIND_GUST

string homeassistant.components.openweathermap.const.ATTR_API_WIND_GUST = "wind_gust"

Definition at line 36 of file const.py.

◆ ATTR_API_WIND_SPEED

string homeassistant.components.openweathermap.const.ATTR_API_WIND_SPEED = "wind_speed"

Definition at line 37 of file const.py.

◆ ATTRIBUTION

string homeassistant.components.openweathermap.const.ATTRIBUTION = "Data provided by OpenWeatherMap"

Definition at line 26 of file const.py.

◆ CONDITION_CLASSES

dictionary homeassistant.components.openweathermap.const.CONDITION_CLASSES
Initial value:
1 = {
2  ATTR_CONDITION_CLOUDY: [803, 804],
3  ATTR_CONDITION_FOG: [701, 721, 741],
4  ATTR_CONDITION_HAIL: [906],
5  ATTR_CONDITION_LIGHTNING: [210, 211, 212, 221],
6  ATTR_CONDITION_LIGHTNING_RAINY: [200, 201, 202, 230, 231, 232],
7  ATTR_CONDITION_PARTLYCLOUDY: [801, 802],
8  ATTR_CONDITION_POURING: [504, 314, 502, 503, 522],
9  ATTR_CONDITION_RAINY: [300, 301, 302, 310, 311, 312, 313, 500, 501, 520, 521],
10  ATTR_CONDITION_SNOWY: [600, 601, 602, 611, 612, 620, 621, 622],
11  ATTR_CONDITION_SNOWY_RAINY: [511, 615, 616],
12  ATTR_CONDITION_SUNNY: [WEATHER_CODE_SUNNY_OR_CLEAR_NIGHT],
13  ATTR_CONDITION_WINDY: [905, 951, 952, 953, 954, 955, 956, 957],
14  ATTR_CONDITION_WINDY_VARIANT: [958, 959, 960, 961],
15  ATTR_CONDITION_EXCEPTIONAL: [
16  711,
17  731,
18  751,
19  761,
20  762,
21  771,
22  900,
23  901,
24  962,
25  903,
26  904,
27  ],
28 }

Definition at line 125 of file const.py.

◆ CONDITION_MAP

dictionary homeassistant.components.openweathermap.const.CONDITION_MAP
Initial value:
1 = {
2  cond_code: cond_ha
3  for cond_ha, cond_codes in CONDITION_CLASSES.items()
4  for cond_code in cond_codes
5 }

Definition at line 153 of file const.py.

◆ CONFIG_FLOW_VERSION

int homeassistant.components.openweathermap.const.CONFIG_FLOW_VERSION = 5

Definition at line 28 of file const.py.

◆ DEFAULT_LANGUAGE

string homeassistant.components.openweathermap.const.DEFAULT_LANGUAGE = "en"

Definition at line 25 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.openweathermap.const.DEFAULT_NAME = "OpenWeatherMap"

Definition at line 24 of file const.py.

◆ DEFAULT_OWM_MODE

string homeassistant.components.openweathermap.const.DEFAULT_OWM_MODE = OWM_MODE_V30

Definition at line 71 of file const.py.

◆ DOMAIN

string homeassistant.components.openweathermap.const.DOMAIN = "openweathermap"

Definition at line 23 of file const.py.

◆ FORECAST_MODE_DAILY

string homeassistant.components.openweathermap.const.FORECAST_MODE_DAILY = "daily"

Definition at line 57 of file const.py.

◆ FORECAST_MODE_FREE_DAILY

string homeassistant.components.openweathermap.const.FORECAST_MODE_FREE_DAILY = "freedaily"

Definition at line 58 of file const.py.

◆ FORECAST_MODE_HOURLY

string homeassistant.components.openweathermap.const.FORECAST_MODE_HOURLY = "hourly"

Definition at line 56 of file const.py.

◆ FORECAST_MODE_ONECALL_DAILY

string homeassistant.components.openweathermap.const.FORECAST_MODE_ONECALL_DAILY = "onecall_daily"

Definition at line 60 of file const.py.

◆ FORECAST_MODE_ONECALL_HOURLY

string homeassistant.components.openweathermap.const.FORECAST_MODE_ONECALL_HOURLY = "onecall_hourly"

Definition at line 59 of file const.py.

◆ LANGUAGES

list homeassistant.components.openweathermap.const.LANGUAGES

Definition at line 73 of file const.py.

◆ MANUFACTURER

string homeassistant.components.openweathermap.const.MANUFACTURER = "OpenWeather"

Definition at line 27 of file const.py.

◆ OWM_MODE_FREE_CURRENT

string homeassistant.components.openweathermap.const.OWM_MODE_FREE_CURRENT = "current"

Definition at line 61 of file const.py.

◆ OWM_MODE_FREE_FORECAST

string homeassistant.components.openweathermap.const.OWM_MODE_FREE_FORECAST = "forecast"

Definition at line 62 of file const.py.

◆ OWM_MODE_V25

string homeassistant.components.openweathermap.const.OWM_MODE_V25 = "v2.5"

Definition at line 64 of file const.py.

◆ OWM_MODE_V30

string homeassistant.components.openweathermap.const.OWM_MODE_V30 = "v3.0"

Definition at line 63 of file const.py.

◆ OWM_MODES

list homeassistant.components.openweathermap.const.OWM_MODES
Initial value:
1 = [
2  OWM_MODE_V30,
3  OWM_MODE_V25,
4  OWM_MODE_FREE_CURRENT,
5  OWM_MODE_FREE_FORECAST,
6 ]

Definition at line 65 of file const.py.

◆ PLATFORMS

list homeassistant.components.openweathermap.const.PLATFORMS = [Platform.SENSOR, Platform.WEATHER]

Definition at line 54 of file const.py.

◆ UPDATE_LISTENER

string homeassistant.components.openweathermap.const.UPDATE_LISTENER = "update_listener"

Definition at line 53 of file const.py.

◆ WEATHER_CODE_SUNNY_OR_CLEAR_NIGHT

int homeassistant.components.openweathermap.const.WEATHER_CODE_SUNNY_OR_CLEAR_NIGHT = 800

Definition at line 124 of file const.py.