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

Variables

string ATTR_API_AQI = "AQI"
 
string ATTR_API_AQI_DESCRIPTION = "Category.Name"
 
string ATTR_API_AQI_LEVEL = "Category.Number"
 
string ATTR_API_AQI_PARAM = "ParameterName"
 
string ATTR_API_CAT_DESCRIPTION = "Name"
 
string ATTR_API_CAT_LEVEL = "Number"
 
string ATTR_API_CATEGORY = "Category"
 
string ATTR_API_O3 = "O3"
 
string ATTR_API_PM10 = "PM10"
 
string ATTR_API_PM25 = "PM2.5"
 
string ATTR_API_POLLUTANT = "Pollutant"
 
string ATTR_API_REPORT_DATE = "DateObserved"
 
string ATTR_API_REPORT_HOUR = "HourObserved"
 
string ATTR_API_REPORT_TZ = "LocalTimeZone"
 
string ATTR_API_STATE = "StateCode"
 
string ATTR_API_STATION = "ReportingArea"
 
string ATTR_API_STATION_LATITUDE = "Latitude"
 
string ATTR_API_STATION_LONGITUDE = "Longitude"
 
string DEFAULT_NAME = "AirNow"
 
string DOMAIN = "airnow"
 
int SECONDS_PER_HOUR = 3600
 
dictionary US_TZ_OFFSETS
 

Detailed Description

Constants for the AirNow integration.

Variable Documentation

◆ ATTR_API_AQI

string homeassistant.components.airnow.const.ATTR_API_AQI = "AQI"

Definition at line 3 of file const.py.

◆ ATTR_API_AQI_DESCRIPTION

string homeassistant.components.airnow.const.ATTR_API_AQI_DESCRIPTION = "Category.Name"

Definition at line 5 of file const.py.

◆ ATTR_API_AQI_LEVEL

string homeassistant.components.airnow.const.ATTR_API_AQI_LEVEL = "Category.Number"

Definition at line 4 of file const.py.

◆ ATTR_API_AQI_PARAM

string homeassistant.components.airnow.const.ATTR_API_AQI_PARAM = "ParameterName"

Definition at line 6 of file const.py.

◆ ATTR_API_CAT_DESCRIPTION

string homeassistant.components.airnow.const.ATTR_API_CAT_DESCRIPTION = "Name"

Definition at line 9 of file const.py.

◆ ATTR_API_CAT_LEVEL

string homeassistant.components.airnow.const.ATTR_API_CAT_LEVEL = "Number"

Definition at line 8 of file const.py.

◆ ATTR_API_CATEGORY

string homeassistant.components.airnow.const.ATTR_API_CATEGORY = "Category"

Definition at line 7 of file const.py.

◆ ATTR_API_O3

string homeassistant.components.airnow.const.ATTR_API_O3 = "O3"

Definition at line 10 of file const.py.

◆ ATTR_API_PM10

string homeassistant.components.airnow.const.ATTR_API_PM10 = "PM10"

Definition at line 11 of file const.py.

◆ ATTR_API_PM25

string homeassistant.components.airnow.const.ATTR_API_PM25 = "PM2.5"

Definition at line 12 of file const.py.

◆ ATTR_API_POLLUTANT

string homeassistant.components.airnow.const.ATTR_API_POLLUTANT = "Pollutant"

Definition at line 13 of file const.py.

◆ ATTR_API_REPORT_DATE

string homeassistant.components.airnow.const.ATTR_API_REPORT_DATE = "DateObserved"

Definition at line 14 of file const.py.

◆ ATTR_API_REPORT_HOUR

string homeassistant.components.airnow.const.ATTR_API_REPORT_HOUR = "HourObserved"

Definition at line 15 of file const.py.

◆ ATTR_API_REPORT_TZ

string homeassistant.components.airnow.const.ATTR_API_REPORT_TZ = "LocalTimeZone"

Definition at line 16 of file const.py.

◆ ATTR_API_STATE

string homeassistant.components.airnow.const.ATTR_API_STATE = "StateCode"

Definition at line 17 of file const.py.

◆ ATTR_API_STATION

string homeassistant.components.airnow.const.ATTR_API_STATION = "ReportingArea"

Definition at line 18 of file const.py.

◆ ATTR_API_STATION_LATITUDE

string homeassistant.components.airnow.const.ATTR_API_STATION_LATITUDE = "Latitude"

Definition at line 19 of file const.py.

◆ ATTR_API_STATION_LONGITUDE

string homeassistant.components.airnow.const.ATTR_API_STATION_LONGITUDE = "Longitude"

Definition at line 20 of file const.py.

◆ DEFAULT_NAME

string homeassistant.components.airnow.const.DEFAULT_NAME = "AirNow"

Definition at line 21 of file const.py.

◆ DOMAIN

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

Definition at line 22 of file const.py.

◆ SECONDS_PER_HOUR

int homeassistant.components.airnow.const.SECONDS_PER_HOUR = 3600

Definition at line 24 of file const.py.

◆ US_TZ_OFFSETS

dictionary homeassistant.components.airnow.const.US_TZ_OFFSETS
Initial value:
1 = {
2  "HST": -10 * SECONDS_PER_HOUR,
3  "HDT": -9 * SECONDS_PER_HOUR,
4  # AirNow returns AKT instead of AKST or AKDT, use standard
5  "AKT": -9 * SECONDS_PER_HOUR,
6  "AKST": -9 * SECONDS_PER_HOUR,
7  "AKDT": -8 * SECONDS_PER_HOUR,
8  "PST": -8 * SECONDS_PER_HOUR,
9  "PDT": -7 * SECONDS_PER_HOUR,
10  "MST": -7 * SECONDS_PER_HOUR,
11  "MDT": -6 * SECONDS_PER_HOUR,
12  "CST": -6 * SECONDS_PER_HOUR,
13  "CDT": -5 * SECONDS_PER_HOUR,
14  "EST": -5 * SECONDS_PER_HOUR,
15  "EDT": -4 * SECONDS_PER_HOUR,
16  "AST": -4 * SECONDS_PER_HOUR,
17  "ADT": -3 * SECONDS_PER_HOUR,
18 }

Definition at line 28 of file const.py.