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

Variables

string ATTR_CLOUD_COVER = "cloud_cover"
 
string ATTR_PRECIPITATION_TYPE = "precipitation_type"
 
string ATTR_WIND_GUST = "wind_gust"
 
string ATTRIBUTION = "Powered by Tomorrow.io"
 
dictionary CLEAR_CONDITIONS = {"night": ATTR_CONDITION_CLEAR_NIGHT, "day": ATTR_CONDITION_SUNNY}
 
dictionary CONDITIONS
 
string CONF_TIMESTEP = "timestep"
 
 DEFAULT_FORECAST_TYPE = DAILY
 
string DEFAULT_NAME = INTEGRATION_NAME
 
int DEFAULT_TIMESTEP = 60
 
string DOMAIN = "tomorrowio"
 
list FORECAST_TYPES = [DAILY, HOURLY, NOWCAST]
 
string INTEGRATION_NAME = "Tomorrow.io"
 
 LOGGER = logging.getLogger(__package__)
 
dictionary MAX_FORECASTS
 
int MAX_REQUESTS_PER_DAY = 100
 
string TMRW_ATTR_CARBON_MONOXIDE = "pollutantCO"
 
string TMRW_ATTR_CHINA_AQI = "mepIndex"
 
string TMRW_ATTR_CHINA_HEALTH_CONCERN = "mepHealthConcern"
 
string TMRW_ATTR_CHINA_PRIMARY_POLLUTANT = "mepPrimaryPollutant"
 
string TMRW_ATTR_CLOUD_BASE = "cloudBase"
 
string TMRW_ATTR_CLOUD_CEILING = "cloudCeiling"
 
string TMRW_ATTR_CLOUD_COVER = "cloudCover"
 
string TMRW_ATTR_CONDITION = "weatherCode"
 
string TMRW_ATTR_DEW_POINT = "dewPoint"
 
string TMRW_ATTR_EPA_AQI = "epaIndex"
 
string TMRW_ATTR_EPA_HEALTH_CONCERN = "epaHealthConcern"
 
string TMRW_ATTR_EPA_PRIMARY_POLLUTANT = "epaPrimaryPollutant"
 
string TMRW_ATTR_FEELS_LIKE = "temperatureApparent"
 
string TMRW_ATTR_FIRE_INDEX = "fireIndex"
 
string TMRW_ATTR_HUMIDITY = "humidity"
 
string TMRW_ATTR_NITROGEN_DIOXIDE = "pollutantNO2"
 
string TMRW_ATTR_OZONE = "pollutantO3"
 
string TMRW_ATTR_PARTICULATE_MATTER_10 = "particulateMatter10"
 
string TMRW_ATTR_PARTICULATE_MATTER_25 = "particulateMatter25"
 
string TMRW_ATTR_POLLEN_GRASS = "grassIndex"
 
string TMRW_ATTR_POLLEN_TREE = "treeIndex"
 
string TMRW_ATTR_POLLEN_WEED = "weedIndex"
 
string TMRW_ATTR_PRECIPITATION = "precipitationIntensityAvg"
 
string TMRW_ATTR_PRECIPITATION_PROBABILITY = "precipitationProbability"
 
string TMRW_ATTR_PRECIPITATION_TYPE = "precipitationType"
 
string TMRW_ATTR_PRESSURE = "pressureSeaLevel"
 
string TMRW_ATTR_PRESSURE_SURFACE_LEVEL = "pressureSurfaceLevel"
 
string TMRW_ATTR_SOLAR_GHI = "solarGHI"
 
string TMRW_ATTR_SULPHUR_DIOXIDE = "pollutantSO2"
 
string TMRW_ATTR_TEMPERATURE = "temperature"
 
string TMRW_ATTR_TEMPERATURE_HIGH = "temperatureMax"
 
string TMRW_ATTR_TEMPERATURE_LOW = "temperatureMin"
 
string TMRW_ATTR_TIMESTAMP = "startTime"
 
string TMRW_ATTR_UV_HEALTH_CONCERN = "uvHealthConcern"
 
string TMRW_ATTR_UV_INDEX = "uvIndex"
 
string TMRW_ATTR_VISIBILITY = "visibility"
 
string TMRW_ATTR_WIND_DIRECTION = "windDirection"
 
string TMRW_ATTR_WIND_GUST = "windGust"
 
string TMRW_ATTR_WIND_SPEED = "windSpeed"
 

Detailed Description

Constants for the Tomorrow.io integration.

Variable Documentation

◆ ATTR_CLOUD_COVER

string homeassistant.components.tomorrowio.const.ATTR_CLOUD_COVER = "cloud_cover"

Definition at line 48 of file const.py.

◆ ATTR_PRECIPITATION_TYPE

string homeassistant.components.tomorrowio.const.ATTR_PRECIPITATION_TYPE = "precipitation_type"

Definition at line 49 of file const.py.

◆ ATTR_WIND_GUST

string homeassistant.components.tomorrowio.const.ATTR_WIND_GUST = "wind_gust"

Definition at line 47 of file const.py.

◆ ATTRIBUTION

string homeassistant.components.tomorrowio.const.ATTRIBUTION = "Powered by Tomorrow.io"

Definition at line 34 of file const.py.

◆ CLEAR_CONDITIONS

dictionary homeassistant.components.tomorrowio.const.CLEAR_CONDITIONS = {"night": ATTR_CONDITION_CLEAR_NIGHT, "day": ATTR_CONDITION_SUNNY}

Definition at line 38 of file const.py.

◆ CONDITIONS

dictionary homeassistant.components.tomorrowio.const.CONDITIONS
Initial value:
1 = {
2  WeatherCode.WIND: ATTR_CONDITION_WINDY,
3  WeatherCode.LIGHT_WIND: ATTR_CONDITION_WINDY,
4  WeatherCode.STRONG_WIND: ATTR_CONDITION_WINDY,
5  WeatherCode.FREEZING_RAIN: ATTR_CONDITION_SNOWY_RAINY,
6  WeatherCode.HEAVY_FREEZING_RAIN: ATTR_CONDITION_SNOWY_RAINY,
7  WeatherCode.LIGHT_FREEZING_RAIN: ATTR_CONDITION_SNOWY_RAINY,
8  WeatherCode.FREEZING_DRIZZLE: ATTR_CONDITION_SNOWY_RAINY,
9  WeatherCode.ICE_PELLETS: ATTR_CONDITION_HAIL,
10  WeatherCode.HEAVY_ICE_PELLETS: ATTR_CONDITION_HAIL,
11  WeatherCode.LIGHT_ICE_PELLETS: ATTR_CONDITION_HAIL,
12  WeatherCode.SNOW: ATTR_CONDITION_SNOWY,
13  WeatherCode.HEAVY_SNOW: ATTR_CONDITION_SNOWY,
14  WeatherCode.LIGHT_SNOW: ATTR_CONDITION_SNOWY,
15  WeatherCode.FLURRIES: ATTR_CONDITION_SNOWY,
16  WeatherCode.THUNDERSTORM: ATTR_CONDITION_LIGHTNING_RAINY,
17  WeatherCode.HEAVY_RAIN: ATTR_CONDITION_POURING,
18  WeatherCode.RAIN: ATTR_CONDITION_RAINY,
19  WeatherCode.LIGHT_RAIN: ATTR_CONDITION_RAINY,
20  WeatherCode.DRIZZLE: ATTR_CONDITION_RAINY,
21  WeatherCode.FOG: ATTR_CONDITION_FOG,
22  WeatherCode.LIGHT_FOG: ATTR_CONDITION_FOG,
23  WeatherCode.CLOUDY: ATTR_CONDITION_CLOUDY,
24  WeatherCode.MOSTLY_CLOUDY: ATTR_CONDITION_CLOUDY,
25  WeatherCode.PARTLY_CLOUDY: ATTR_CONDITION_PARTLYCLOUDY,
26 }

Definition at line 52 of file const.py.

◆ CONF_TIMESTEP

string homeassistant.components.tomorrowio.const.CONF_TIMESTEP = "timestep"

Definition at line 26 of file const.py.

◆ DEFAULT_FORECAST_TYPE

homeassistant.components.tomorrowio.const.DEFAULT_FORECAST_TYPE = DAILY

Definition at line 30 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.tomorrowio.const.DEFAULT_NAME = INTEGRATION_NAME

Definition at line 33 of file const.py.

◆ DEFAULT_TIMESTEP

int homeassistant.components.tomorrowio.const.DEFAULT_TIMESTEP = 60

Definition at line 29 of file const.py.

◆ DOMAIN

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

Definition at line 31 of file const.py.

◆ FORECAST_TYPES

list homeassistant.components.tomorrowio.const.FORECAST_TYPES = [DAILY, HOURLY, NOWCAST]

Definition at line 27 of file const.py.

◆ INTEGRATION_NAME

string homeassistant.components.tomorrowio.const.INTEGRATION_NAME = "Tomorrow.io"

Definition at line 32 of file const.py.

◆ LOGGER

homeassistant.components.tomorrowio.const.LOGGER = logging.getLogger(__package__)

Definition at line 24 of file const.py.

◆ MAX_FORECASTS

dictionary homeassistant.components.tomorrowio.const.MAX_FORECASTS
Initial value:
1 = {
2  DAILY: 14,
3  HOURLY: 24,
4  NOWCAST: 30,
5 }

Definition at line 40 of file const.py.

◆ MAX_REQUESTS_PER_DAY

int homeassistant.components.tomorrowio.const.MAX_REQUESTS_PER_DAY = 100

Definition at line 36 of file const.py.

◆ TMRW_ATTR_CARBON_MONOXIDE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_CARBON_MONOXIDE = "pollutantCO"

Definition at line 101 of file const.py.

◆ TMRW_ATTR_CHINA_AQI

string homeassistant.components.tomorrowio.const.TMRW_ATTR_CHINA_AQI = "mepIndex"

Definition at line 106 of file const.py.

◆ TMRW_ATTR_CHINA_HEALTH_CONCERN

string homeassistant.components.tomorrowio.const.TMRW_ATTR_CHINA_HEALTH_CONCERN = "mepHealthConcern"

Definition at line 108 of file const.py.

◆ TMRW_ATTR_CHINA_PRIMARY_POLLUTANT

string homeassistant.components.tomorrowio.const.TMRW_ATTR_CHINA_PRIMARY_POLLUTANT = "mepPrimaryPollutant"

Definition at line 107 of file const.py.

◆ TMRW_ATTR_CLOUD_BASE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_CLOUD_BASE = "cloudBase"

Definition at line 117 of file const.py.

◆ TMRW_ATTR_CLOUD_CEILING

string homeassistant.components.tomorrowio.const.TMRW_ATTR_CLOUD_CEILING = "cloudCeiling"

Definition at line 118 of file const.py.

◆ TMRW_ATTR_CLOUD_COVER

string homeassistant.components.tomorrowio.const.TMRW_ATTR_CLOUD_COVER = "cloudCover"

Definition at line 94 of file const.py.

◆ TMRW_ATTR_CONDITION

string homeassistant.components.tomorrowio.const.TMRW_ATTR_CONDITION = "weatherCode"

Definition at line 89 of file const.py.

◆ TMRW_ATTR_DEW_POINT

string homeassistant.components.tomorrowio.const.TMRW_ATTR_DEW_POINT = "dewPoint"

Definition at line 114 of file const.py.

◆ TMRW_ATTR_EPA_AQI

string homeassistant.components.tomorrowio.const.TMRW_ATTR_EPA_AQI = "epaIndex"

Definition at line 103 of file const.py.

◆ TMRW_ATTR_EPA_HEALTH_CONCERN

string homeassistant.components.tomorrowio.const.TMRW_ATTR_EPA_HEALTH_CONCERN = "epaHealthConcern"

Definition at line 105 of file const.py.

◆ TMRW_ATTR_EPA_PRIMARY_POLLUTANT

string homeassistant.components.tomorrowio.const.TMRW_ATTR_EPA_PRIMARY_POLLUTANT = "epaPrimaryPollutant"

Definition at line 104 of file const.py.

◆ TMRW_ATTR_FEELS_LIKE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_FEELS_LIKE = "temperatureApparent"

Definition at line 113 of file const.py.

◆ TMRW_ATTR_FIRE_INDEX

string homeassistant.components.tomorrowio.const.TMRW_ATTR_FIRE_INDEX = "fireIndex"

Definition at line 112 of file const.py.

◆ TMRW_ATTR_HUMIDITY

string homeassistant.components.tomorrowio.const.TMRW_ATTR_HUMIDITY = "humidity"

Definition at line 85 of file const.py.

◆ TMRW_ATTR_NITROGEN_DIOXIDE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_NITROGEN_DIOXIDE = "pollutantNO2"

Definition at line 100 of file const.py.

◆ TMRW_ATTR_OZONE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_OZONE = "pollutantO3"

Definition at line 88 of file const.py.

◆ TMRW_ATTR_PARTICULATE_MATTER_10

string homeassistant.components.tomorrowio.const.TMRW_ATTR_PARTICULATE_MATTER_10 = "particulateMatter10"

Definition at line 99 of file const.py.

◆ TMRW_ATTR_PARTICULATE_MATTER_25

string homeassistant.components.tomorrowio.const.TMRW_ATTR_PARTICULATE_MATTER_25 = "particulateMatter25"

Definition at line 98 of file const.py.

◆ TMRW_ATTR_POLLEN_GRASS

string homeassistant.components.tomorrowio.const.TMRW_ATTR_POLLEN_GRASS = "grassIndex"

Definition at line 111 of file const.py.

◆ TMRW_ATTR_POLLEN_TREE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_POLLEN_TREE = "treeIndex"

Definition at line 109 of file const.py.

◆ TMRW_ATTR_POLLEN_WEED

string homeassistant.components.tomorrowio.const.TMRW_ATTR_POLLEN_WEED = "weedIndex"

Definition at line 110 of file const.py.

◆ TMRW_ATTR_PRECIPITATION

string homeassistant.components.tomorrowio.const.TMRW_ATTR_PRECIPITATION = "precipitationIntensityAvg"

Definition at line 91 of file const.py.

◆ TMRW_ATTR_PRECIPITATION_PROBABILITY

string homeassistant.components.tomorrowio.const.TMRW_ATTR_PRECIPITATION_PROBABILITY = "precipitationProbability"

Definition at line 92 of file const.py.

◆ TMRW_ATTR_PRECIPITATION_TYPE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_PRECIPITATION_TYPE = "precipitationType"

Definition at line 95 of file const.py.

◆ TMRW_ATTR_PRESSURE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_PRESSURE = "pressureSeaLevel"

Definition at line 84 of file const.py.

◆ TMRW_ATTR_PRESSURE_SURFACE_LEVEL

string homeassistant.components.tomorrowio.const.TMRW_ATTR_PRESSURE_SURFACE_LEVEL = "pressureSurfaceLevel"

Definition at line 115 of file const.py.

◆ TMRW_ATTR_SOLAR_GHI

string homeassistant.components.tomorrowio.const.TMRW_ATTR_SOLAR_GHI = "solarGHI"

Definition at line 116 of file const.py.

◆ TMRW_ATTR_SULPHUR_DIOXIDE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_SULPHUR_DIOXIDE = "pollutantSO2"

Definition at line 102 of file const.py.

◆ TMRW_ATTR_TEMPERATURE

string homeassistant.components.tomorrowio.const.TMRW_ATTR_TEMPERATURE = "temperature"

Definition at line 81 of file const.py.

◆ TMRW_ATTR_TEMPERATURE_HIGH

string homeassistant.components.tomorrowio.const.TMRW_ATTR_TEMPERATURE_HIGH = "temperatureMax"

Definition at line 82 of file const.py.

◆ TMRW_ATTR_TEMPERATURE_LOW

string homeassistant.components.tomorrowio.const.TMRW_ATTR_TEMPERATURE_LOW = "temperatureMin"

Definition at line 83 of file const.py.

◆ TMRW_ATTR_TIMESTAMP

string homeassistant.components.tomorrowio.const.TMRW_ATTR_TIMESTAMP = "startTime"

Definition at line 80 of file const.py.

◆ TMRW_ATTR_UV_HEALTH_CONCERN

string homeassistant.components.tomorrowio.const.TMRW_ATTR_UV_HEALTH_CONCERN = "uvHealthConcern"

Definition at line 120 of file const.py.

◆ TMRW_ATTR_UV_INDEX

string homeassistant.components.tomorrowio.const.TMRW_ATTR_UV_INDEX = "uvIndex"

Definition at line 119 of file const.py.

◆ TMRW_ATTR_VISIBILITY

string homeassistant.components.tomorrowio.const.TMRW_ATTR_VISIBILITY = "visibility"

Definition at line 90 of file const.py.

◆ TMRW_ATTR_WIND_DIRECTION

string homeassistant.components.tomorrowio.const.TMRW_ATTR_WIND_DIRECTION = "windDirection"

Definition at line 87 of file const.py.

◆ TMRW_ATTR_WIND_GUST

string homeassistant.components.tomorrowio.const.TMRW_ATTR_WIND_GUST = "windGust"

Definition at line 93 of file const.py.

◆ TMRW_ATTR_WIND_SPEED

string homeassistant.components.tomorrowio.const.TMRW_ATTR_WIND_SPEED = "windSpeed"

Definition at line 86 of file const.py.