Home Assistant Unofficial Reference 2024.12.1
const.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.influxdb.const
 

Variables

string homeassistant.components.influxdb.const.API_VERSION_2 = "2"
 
int homeassistant.components.influxdb.const.BATCH_BUFFER_SIZE = 100
 
int homeassistant.components.influxdb.const.BATCH_TIMEOUT = 1
 
string homeassistant.components.influxdb.const.CATCHING_UP_MESSAGE = "Catching up, dropped %d old events."
 
tuple homeassistant.components.influxdb.const.CLIENT_ERROR_V1
 
tuple homeassistant.components.influxdb.const.CLIENT_ERROR_V2
 
int homeassistant.components.influxdb.const.CODE_INVALID_INPUTS = 400
 
dictionary homeassistant.components.influxdb.const.COMPONENT_CONFIG_SCHEMA_CONNECTION
 
string homeassistant.components.influxdb.const.CONF_BUCKET = "bucket"
 
string homeassistant.components.influxdb.const.CONF_COMPONENT_CONFIG = "component_config"
 
string homeassistant.components.influxdb.const.CONF_COMPONENT_CONFIG_DOMAIN = "component_config_domain"
 
string homeassistant.components.influxdb.const.CONF_COMPONENT_CONFIG_GLOB = "component_config_glob"
 
string homeassistant.components.influxdb.const.CONF_DB_NAME = "database"
 
string homeassistant.components.influxdb.const.CONF_DEFAULT_MEASUREMENT = "default_measurement"
 
string homeassistant.components.influxdb.const.CONF_FIELD = "field"
 
string homeassistant.components.influxdb.const.CONF_FUNCTION = "function"
 
string homeassistant.components.influxdb.const.CONF_GROUP_FUNCTION = "group_function"
 
string homeassistant.components.influxdb.const.CONF_IGNORE_ATTRIBUTES = "ignore_attributes"
 
string homeassistant.components.influxdb.const.CONF_IMPORTS = "imports"
 
string homeassistant.components.influxdb.const.CONF_MEASUREMENT_ATTR = "measurement_attr"
 
string homeassistant.components.influxdb.const.CONF_MEASUREMENT_NAME = "measurement"
 
string homeassistant.components.influxdb.const.CONF_ORG = "organization"
 
string homeassistant.components.influxdb.const.CONF_OVERRIDE_MEASUREMENT = "override_measurement"
 
string homeassistant.components.influxdb.const.CONF_PRECISION = "precision"
 
string homeassistant.components.influxdb.const.CONF_QUERIES = "queries"
 
string homeassistant.components.influxdb.const.CONF_QUERIES_FLUX = "queries_flux"
 
string homeassistant.components.influxdb.const.CONF_QUERY = "query"
 
string homeassistant.components.influxdb.const.CONF_RANGE_START = "range_start"
 
string homeassistant.components.influxdb.const.CONF_RANGE_STOP = "range_stop"
 
string homeassistant.components.influxdb.const.CONF_RETRY_COUNT = "max_retries"
 
string homeassistant.components.influxdb.const.CONF_SSL_CA_CERT = "ssl_ca_cert"
 
string homeassistant.components.influxdb.const.CONF_TAGS = "tags"
 
string homeassistant.components.influxdb.const.CONF_TAGS_ATTRIBUTES = "tags_attributes"
 
string homeassistant.components.influxdb.const.CONF_WHERE = "where"
 
tuple homeassistant.components.influxdb.const.CONNECTION_ERROR
 
string homeassistant.components.influxdb.const.DEFAULT_API_VERSION = "1"
 
string homeassistant.components.influxdb.const.DEFAULT_BUCKET = "Home Assistant"
 
string homeassistant.components.influxdb.const.DEFAULT_DATABASE = "home_assistant"
 
string homeassistant.components.influxdb.const.DEFAULT_FIELD = "value"
 
string homeassistant.components.influxdb.const.DEFAULT_FUNCTION_FLUX = "|> limit(n: 1)"
 
string homeassistant.components.influxdb.const.DEFAULT_GROUP_FUNCTION = "mean"
 
string homeassistant.components.influxdb.const.DEFAULT_HOST_V2 = "us-west-2-1.aws.cloud2.influxdata.com"
 
string homeassistant.components.influxdb.const.DEFAULT_MEASUREMENT_ATTR = "unit_of_measurement"
 
string homeassistant.components.influxdb.const.DEFAULT_RANGE_START = "-15m"
 
string homeassistant.components.influxdb.const.DEFAULT_RANGE_STOP = "now()"
 
bool homeassistant.components.influxdb.const.DEFAULT_SSL_V2 = True
 
bool homeassistant.components.influxdb.const.DEFAULT_VERIFY_SSL = True
 
string homeassistant.components.influxdb.const.DOMAIN = "influxdb"
 
string homeassistant.components.influxdb.const.EVENT_NEW_STATE = "new_state"
 
string homeassistant.components.influxdb.const.INFLUX_CONF_FIELDS = "fields"
 
string homeassistant.components.influxdb.const.INFLUX_CONF_MEASUREMENT = "measurement"
 
string homeassistant.components.influxdb.const.INFLUX_CONF_ORG = "org"
 
string homeassistant.components.influxdb.const.INFLUX_CONF_STATE = "state"
 
string homeassistant.components.influxdb.const.INFLUX_CONF_TAGS = "tags"
 
string homeassistant.components.influxdb.const.INFLUX_CONF_TIME = "time"
 
string homeassistant.components.influxdb.const.INFLUX_CONF_VALUE = "value"
 
string homeassistant.components.influxdb.const.INFLUX_CONF_VALUE_V2 = "_value"
 
string homeassistant.components.influxdb.const.LANGUAGE_FLUX = "flux"
 
string homeassistant.components.influxdb.const.LANGUAGE_INFLUXQL = "influxQL"
 
 homeassistant.components.influxdb.const.MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=10)
 
tuple homeassistant.components.influxdb.const.NO_BUCKET_ERROR
 
tuple homeassistant.components.influxdb.const.NO_DATABASE_ERROR
 
tuple homeassistant.components.influxdb.const.QUERY_ERROR
 
tuple homeassistant.components.influxdb.const.QUERY_MULTIPLE_RESULTS_MESSAGE
 
string homeassistant.components.influxdb.const.QUERY_NO_RESULTS_MESSAGE = "Query returned no results, sensor state set to UNKNOWN: %s."
 
int homeassistant.components.influxdb.const.QUEUE_BACKLOG_SECONDS = 30
 
 homeassistant.components.influxdb.const.RE_DECIMAL = re.compile(r"[^\d.]+")
 
 homeassistant.components.influxdb.const.RE_DIGIT_TAIL = re.compile(r"^[^\.]*\d+\.?\d+[^\.]*$")
 
string homeassistant.components.influxdb.const.RENDERING_QUERY_ERROR_MESSAGE = "Could not render query template: %s."
 
string homeassistant.components.influxdb.const.RENDERING_QUERY_MESSAGE = "Rendering query: %s."
 
string homeassistant.components.influxdb.const.RENDERING_WHERE_ERROR_MESSAGE = "Could not render where template: %s."
 
string homeassistant.components.influxdb.const.RENDERING_WHERE_MESSAGE = "Rendering where: %s."
 
string homeassistant.components.influxdb.const.RESUMED_MESSAGE = "Resumed, lost %d events."
 
int homeassistant.components.influxdb.const.RETRY_DELAY = 20
 
int homeassistant.components.influxdb.const.RETRY_INTERVAL = 60
 
string homeassistant.components.influxdb.const.RETRY_MESSAGE = f"%s Retrying in {RETRY_INTERVAL} seconds."
 
string homeassistant.components.influxdb.const.RUNNING_QUERY_MESSAGE = "Running query: %s."
 
string homeassistant.components.influxdb.const.TEST_QUERY_V1 = "SHOW DATABASES;"
 
string homeassistant.components.influxdb.const.TEST_QUERY_V2 = "buckets()"
 
int homeassistant.components.influxdb.const.TIMEOUT = 10
 
string homeassistant.components.influxdb.const.WRITE_ERROR = "Could not write '%s' to influx due to '%s'."
 
string homeassistant.components.influxdb.const.WROTE_MESSAGE = "Wrote %d events."