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

Variables

string API_CONDITION = "condition"
 
string API_CURRENT = "current"
 
string API_DATA = "data"
 
string API_FORECAST = "forecast"
 
string API_FORECAST_DATE = "forecastDate"
 
string API_FORECAST_ICON = "ForecastIcon"
 
string API_FORECAST_MAX_TEMP = "forecastMaxtemp"
 
string API_FORECAST_MIN_TEMP = "forecastMintemp"
 
string API_FORECAST_WEATHER = "forecastWeather"
 
string API_HUMIDITY = "humidity"
 
string API_PLACE = "place"
 
string API_RHRREAD = "rhrread"
 
string API_TEMPERATURE = "temperature"
 
string API_VALUE = "value"
 
string API_WEATHER_FORECAST = "weatherForecast"
 
string ATTRIBUTION = "Data provided by the Hong Kong Observatory"
 
 DEFAULT_DISTRICT = LOCATIONS[0][KEY_DISTRICT]
 
 DEFAULT_LOCATION = LOCATIONS[0][KEY_LOCATION]
 
string DISTRICT = "name"
 
string DOMAIN = "hko"
 
dictionary ICON_CONDITION_MAP
 
string KEY_DISTRICT = "DISTRICT"
 
string KEY_LOCATION = "LOCATION"
 
string MANUFACTURER = "Hong Kong Observatory"
 
string WEATHER_INFO_AT_TIMES_AT_FIRST = "at times at first"
 
string WEATHER_INFO_CLOUD = "cloud"
 
string WEATHER_INFO_FINE = "fine"
 
string WEATHER_INFO_FOG = "FOG"
 
string WEATHER_INFO_HEAVY = "heavy"
 
string WEATHER_INFO_INTERVAL = "interval"
 
string WEATHER_INFO_ISOLATED = "isolated"
 
string WEATHER_INFO_MIST = "mist"
 
string WEATHER_INFO_OVERCAST = "overcast"
 
string WEATHER_INFO_PERIOD = "period"
 
string WEATHER_INFO_RAIN = "rain"
 
string WEATHER_INFO_SHOWER = "shower"
 
string WEATHER_INFO_SNOW = "snow"
 
string WEATHER_INFO_SUNNY = "sunny"
 
string WEATHER_INFO_THUNDERSTORM = "thunderstorm"
 
string WEATHER_INFO_WIND = "wind"
 

Detailed Description

Constants for the Hong Kong Observatory integration.

Variable Documentation

◆ API_CONDITION

string homeassistant.components.hko.const.API_CONDITION = "condition"

Definition at line 39 of file const.py.

◆ API_CURRENT

string homeassistant.components.hko.const.API_CURRENT = "current"

Definition at line 31 of file const.py.

◆ API_DATA

string homeassistant.components.hko.const.API_DATA = "data"

Definition at line 43 of file const.py.

◆ API_FORECAST

string homeassistant.components.hko.const.API_FORECAST = "forecast"

Definition at line 32 of file const.py.

◆ API_FORECAST_DATE

string homeassistant.components.hko.const.API_FORECAST_DATE = "forecastDate"

Definition at line 34 of file const.py.

◆ API_FORECAST_ICON

string homeassistant.components.hko.const.API_FORECAST_ICON = "ForecastIcon"

Definition at line 35 of file const.py.

◆ API_FORECAST_MAX_TEMP

string homeassistant.components.hko.const.API_FORECAST_MAX_TEMP = "forecastMaxtemp"

Definition at line 37 of file const.py.

◆ API_FORECAST_MIN_TEMP

string homeassistant.components.hko.const.API_FORECAST_MIN_TEMP = "forecastMintemp"

Definition at line 38 of file const.py.

◆ API_FORECAST_WEATHER

string homeassistant.components.hko.const.API_FORECAST_WEATHER = "forecastWeather"

Definition at line 36 of file const.py.

◆ API_HUMIDITY

string homeassistant.components.hko.const.API_HUMIDITY = "humidity"

Definition at line 41 of file const.py.

◆ API_PLACE

string homeassistant.components.hko.const.API_PLACE = "place"

Definition at line 42 of file const.py.

◆ API_RHRREAD

string homeassistant.components.hko.const.API_RHRREAD = "rhrread"

Definition at line 45 of file const.py.

◆ API_TEMPERATURE

string homeassistant.components.hko.const.API_TEMPERATURE = "temperature"

Definition at line 40 of file const.py.

◆ API_VALUE

string homeassistant.components.hko.const.API_VALUE = "value"

Definition at line 44 of file const.py.

◆ API_WEATHER_FORECAST

string homeassistant.components.hko.const.API_WEATHER_FORECAST = "weatherForecast"

Definition at line 33 of file const.py.

◆ ATTRIBUTION

string homeassistant.components.hko.const.ATTRIBUTION = "Data provided by the Hong Kong Observatory"

Definition at line 28 of file const.py.

◆ DEFAULT_DISTRICT

homeassistant.components.hko.const.DEFAULT_DISTRICT = LOCATIONS[0][KEY_DISTRICT]

Definition at line 26 of file const.py.

◆ DEFAULT_LOCATION

homeassistant.components.hko.const.DEFAULT_LOCATION = LOCATIONS[0][KEY_LOCATION]

Definition at line 25 of file const.py.

◆ DISTRICT

string homeassistant.components.hko.const.DISTRICT = "name"

Definition at line 20 of file const.py.

◆ DOMAIN

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

Definition at line 18 of file const.py.

◆ ICON_CONDITION_MAP

dictionary homeassistant.components.hko.const.ICON_CONDITION_MAP
Initial value:
1 = {
2  ATTR_CONDITION_SUNNY: [50],
3  ATTR_CONDITION_PARTLYCLOUDY: [51, 52, 53, 54, 76],
4  ATTR_CONDITION_CLOUDY: [60, 61],
5  ATTR_CONDITION_RAINY: [62, 63],
6  ATTR_CONDITION_POURING: [64],
7  ATTR_CONDITION_LIGHTNING_RAINY: [65],
8  ATTR_CONDITION_CLEAR_NIGHT: [70, 71, 72, 73, 74, 75, 77],
9  ATTR_CONDITION_SNOWY_RAINY: [7, 14, 15, 27, 37],
10  ATTR_CONDITION_WINDY: [80],
11  ATTR_CONDITION_FOG: [83, 84],
12 }

Definition at line 64 of file const.py.

◆ KEY_DISTRICT

string homeassistant.components.hko.const.KEY_DISTRICT = "DISTRICT"

Definition at line 23 of file const.py.

◆ KEY_LOCATION

string homeassistant.components.hko.const.KEY_LOCATION = "LOCATION"

Definition at line 22 of file const.py.

◆ MANUFACTURER

string homeassistant.components.hko.const.MANUFACTURER = "Hong Kong Observatory"

Definition at line 29 of file const.py.

◆ WEATHER_INFO_AT_TIMES_AT_FIRST

string homeassistant.components.hko.const.WEATHER_INFO_AT_TIMES_AT_FIRST = "at times at first"

Definition at line 58 of file const.py.

◆ WEATHER_INFO_CLOUD

string homeassistant.components.hko.const.WEATHER_INFO_CLOUD = "cloud"

Definition at line 51 of file const.py.

◆ WEATHER_INFO_FINE

string homeassistant.components.hko.const.WEATHER_INFO_FINE = "fine"

Definition at line 57 of file const.py.

◆ WEATHER_INFO_FOG

string homeassistant.components.hko.const.WEATHER_INFO_FOG = "FOG"

Definition at line 62 of file const.py.

◆ WEATHER_INFO_HEAVY

string homeassistant.components.hko.const.WEATHER_INFO_HEAVY = "heavy"

Definition at line 55 of file const.py.

◆ WEATHER_INFO_INTERVAL

string homeassistant.components.hko.const.WEATHER_INFO_INTERVAL = "interval"

Definition at line 60 of file const.py.

◆ WEATHER_INFO_ISOLATED

string homeassistant.components.hko.const.WEATHER_INFO_ISOLATED = "isolated"

Definition at line 54 of file const.py.

◆ WEATHER_INFO_MIST

string homeassistant.components.hko.const.WEATHER_INFO_MIST = "mist"

Definition at line 50 of file const.py.

◆ WEATHER_INFO_OVERCAST

string homeassistant.components.hko.const.WEATHER_INFO_OVERCAST = "overcast"

Definition at line 59 of file const.py.

◆ WEATHER_INFO_PERIOD

string homeassistant.components.hko.const.WEATHER_INFO_PERIOD = "period"

Definition at line 61 of file const.py.

◆ WEATHER_INFO_RAIN

string homeassistant.components.hko.const.WEATHER_INFO_RAIN = "rain"

Definition at line 47 of file const.py.

◆ WEATHER_INFO_SHOWER

string homeassistant.components.hko.const.WEATHER_INFO_SHOWER = "shower"

Definition at line 53 of file const.py.

◆ WEATHER_INFO_SNOW

string homeassistant.components.hko.const.WEATHER_INFO_SNOW = "snow"

Definition at line 48 of file const.py.

◆ WEATHER_INFO_SUNNY

string homeassistant.components.hko.const.WEATHER_INFO_SUNNY = "sunny"

Definition at line 56 of file const.py.

◆ WEATHER_INFO_THUNDERSTORM

string homeassistant.components.hko.const.WEATHER_INFO_THUNDERSTORM = "thunderstorm"

Definition at line 52 of file const.py.

◆ WEATHER_INFO_WIND

string homeassistant.components.hko.const.WEATHER_INFO_WIND = "wind"

Definition at line 49 of file const.py.