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