ESPHome  2021.11.4
Enumerations
esphome::api::enums Namespace Reference

Enumerations

enum  EntityCategory : uint32_t { ENTITY_CATEGORY_NONE = 0, ENTITY_CATEGORY_CONFIG = 1, ENTITY_CATEGORY_DIAGNOSTIC = 2 }
 
enum  LegacyCoverState : uint32_t { LEGACY_COVER_STATE_OPEN = 0, LEGACY_COVER_STATE_CLOSED = 1 }
 
enum  CoverOperation : uint32_t { COVER_OPERATION_IDLE = 0, COVER_OPERATION_IS_OPENING = 1, COVER_OPERATION_IS_CLOSING = 2 }
 
enum  LegacyCoverCommand : uint32_t { LEGACY_COVER_COMMAND_OPEN = 0, LEGACY_COVER_COMMAND_CLOSE = 1, LEGACY_COVER_COMMAND_STOP = 2 }
 
enum  FanSpeed : uint32_t { FAN_SPEED_LOW = 0, FAN_SPEED_MEDIUM = 1, FAN_SPEED_HIGH = 2 }
 
enum  FanDirection : uint32_t { FAN_DIRECTION_FORWARD = 0, FAN_DIRECTION_REVERSE = 1 }
 
enum  ColorMode : uint32_t {
  COLOR_MODE_UNKNOWN = 0, COLOR_MODE_ON_OFF = 1, COLOR_MODE_BRIGHTNESS = 2, COLOR_MODE_WHITE = 7,
  COLOR_MODE_COLOR_TEMPERATURE = 11, COLOR_MODE_COLD_WARM_WHITE = 19, COLOR_MODE_RGB = 35, COLOR_MODE_RGB_WHITE = 39,
  COLOR_MODE_RGB_COLOR_TEMPERATURE = 47, COLOR_MODE_RGB_COLD_WARM_WHITE = 51
}
 
enum  SensorStateClass : uint32_t { STATE_CLASS_NONE = 0, STATE_CLASS_MEASUREMENT = 1, STATE_CLASS_TOTAL_INCREASING = 2 }
 
enum  SensorLastResetType : uint32_t { LAST_RESET_NONE = 0, LAST_RESET_NEVER = 1, LAST_RESET_AUTO = 2 }
 
enum  LogLevel : uint32_t {
  LOG_LEVEL_NONE = 0, LOG_LEVEL_ERROR = 1, LOG_LEVEL_WARN = 2, LOG_LEVEL_INFO = 3,
  LOG_LEVEL_CONFIG = 4, LOG_LEVEL_DEBUG = 5, LOG_LEVEL_VERBOSE = 6, LOG_LEVEL_VERY_VERBOSE = 7
}
 
enum  ServiceArgType : uint32_t {
  SERVICE_ARG_TYPE_BOOL = 0, SERVICE_ARG_TYPE_INT = 1, SERVICE_ARG_TYPE_FLOAT = 2, SERVICE_ARG_TYPE_STRING = 3,
  SERVICE_ARG_TYPE_BOOL_ARRAY = 4, SERVICE_ARG_TYPE_INT_ARRAY = 5, SERVICE_ARG_TYPE_FLOAT_ARRAY = 6, SERVICE_ARG_TYPE_STRING_ARRAY = 7
}
 
enum  ClimateMode : uint32_t {
  CLIMATE_MODE_OFF = 0, CLIMATE_MODE_HEAT_COOL = 1, CLIMATE_MODE_COOL = 2, CLIMATE_MODE_HEAT = 3,
  CLIMATE_MODE_FAN_ONLY = 4, CLIMATE_MODE_DRY = 5, CLIMATE_MODE_AUTO = 6
}
 
enum  ClimateFanMode : uint32_t {
  CLIMATE_FAN_ON = 0, CLIMATE_FAN_OFF = 1, CLIMATE_FAN_AUTO = 2, CLIMATE_FAN_LOW = 3,
  CLIMATE_FAN_MEDIUM = 4, CLIMATE_FAN_HIGH = 5, CLIMATE_FAN_MIDDLE = 6, CLIMATE_FAN_FOCUS = 7,
  CLIMATE_FAN_DIFFUSE = 8
}
 
enum  ClimateSwingMode : uint32_t { CLIMATE_SWING_OFF = 0, CLIMATE_SWING_BOTH = 1, CLIMATE_SWING_VERTICAL = 2, CLIMATE_SWING_HORIZONTAL = 3 }
 
enum  ClimateAction : uint32_t {
  CLIMATE_ACTION_OFF = 0, CLIMATE_ACTION_COOLING = 2, CLIMATE_ACTION_HEATING = 3, CLIMATE_ACTION_IDLE = 4,
  CLIMATE_ACTION_DRYING = 5, CLIMATE_ACTION_FAN = 6
}
 
enum  ClimatePreset : uint32_t {
  CLIMATE_PRESET_NONE = 0, CLIMATE_PRESET_HOME = 1, CLIMATE_PRESET_AWAY = 2, CLIMATE_PRESET_BOOST = 3,
  CLIMATE_PRESET_COMFORT = 4, CLIMATE_PRESET_ECO = 5, CLIMATE_PRESET_SLEEP = 6, CLIMATE_PRESET_ACTIVITY = 7
}
 

Enumeration Type Documentation

◆ ClimateAction

Enumerator
CLIMATE_ACTION_OFF 
CLIMATE_ACTION_COOLING 
CLIMATE_ACTION_HEATING 
CLIMATE_ACTION_IDLE 
CLIMATE_ACTION_DRYING 
CLIMATE_ACTION_FAN 

Definition at line 108 of file api_pb2.h.

◆ ClimateFanMode

Enumerator
CLIMATE_FAN_ON 
CLIMATE_FAN_OFF 
CLIMATE_FAN_AUTO 
CLIMATE_FAN_LOW 
CLIMATE_FAN_MEDIUM 
CLIMATE_FAN_HIGH 
CLIMATE_FAN_MIDDLE 
CLIMATE_FAN_FOCUS 
CLIMATE_FAN_DIFFUSE 

Definition at line 91 of file api_pb2.h.

◆ ClimateMode

Enumerator
CLIMATE_MODE_OFF 
CLIMATE_MODE_HEAT_COOL 
CLIMATE_MODE_COOL 
CLIMATE_MODE_HEAT 
CLIMATE_MODE_FAN_ONLY 
CLIMATE_MODE_DRY 
CLIMATE_MODE_AUTO 

Definition at line 82 of file api_pb2.h.

◆ ClimatePreset

Enumerator
CLIMATE_PRESET_NONE 
CLIMATE_PRESET_HOME 
CLIMATE_PRESET_AWAY 
CLIMATE_PRESET_BOOST 
CLIMATE_PRESET_COMFORT 
CLIMATE_PRESET_ECO 
CLIMATE_PRESET_SLEEP 
CLIMATE_PRESET_ACTIVITY 

Definition at line 116 of file api_pb2.h.

◆ ClimateSwingMode

Enumerator
CLIMATE_SWING_OFF 
CLIMATE_SWING_BOTH 
CLIMATE_SWING_VERTICAL 
CLIMATE_SWING_HORIZONTAL 

Definition at line 102 of file api_pb2.h.

◆ ColorMode

Enumerator
COLOR_MODE_UNKNOWN 
COLOR_MODE_ON_OFF 
COLOR_MODE_BRIGHTNESS 
COLOR_MODE_WHITE 
COLOR_MODE_COLOR_TEMPERATURE 
COLOR_MODE_COLD_WARM_WHITE 
COLOR_MODE_RGB 
COLOR_MODE_RGB_WHITE 
COLOR_MODE_RGB_COLOR_TEMPERATURE 
COLOR_MODE_RGB_COLD_WARM_WHITE 

Definition at line 40 of file api_pb2.h.

◆ CoverOperation

Enumerator
COVER_OPERATION_IDLE 
COVER_OPERATION_IS_OPENING 
COVER_OPERATION_IS_CLOSING 

Definition at line 21 of file api_pb2.h.

◆ EntityCategory

Enumerator
ENTITY_CATEGORY_NONE 
ENTITY_CATEGORY_CONFIG 
ENTITY_CATEGORY_DIAGNOSTIC 

Definition at line 12 of file api_pb2.h.

◆ FanDirection

Enumerator
FAN_DIRECTION_FORWARD 
FAN_DIRECTION_REVERSE 

Definition at line 36 of file api_pb2.h.

◆ FanSpeed

Enumerator
FAN_SPEED_LOW 
FAN_SPEED_MEDIUM 
FAN_SPEED_HIGH 

Definition at line 31 of file api_pb2.h.

◆ LegacyCoverCommand

Enumerator
LEGACY_COVER_COMMAND_OPEN 
LEGACY_COVER_COMMAND_CLOSE 
LEGACY_COVER_COMMAND_STOP 

Definition at line 26 of file api_pb2.h.

◆ LegacyCoverState

Enumerator
LEGACY_COVER_STATE_OPEN 
LEGACY_COVER_STATE_CLOSED 

Definition at line 17 of file api_pb2.h.

◆ LogLevel

Enumerator
LOG_LEVEL_NONE 
LOG_LEVEL_ERROR 
LOG_LEVEL_WARN 
LOG_LEVEL_INFO 
LOG_LEVEL_CONFIG 
LOG_LEVEL_DEBUG 
LOG_LEVEL_VERBOSE 
LOG_LEVEL_VERY_VERBOSE 

Definition at line 62 of file api_pb2.h.

◆ SensorLastResetType

Enumerator
LAST_RESET_NONE 
LAST_RESET_NEVER 
LAST_RESET_AUTO 

Definition at line 57 of file api_pb2.h.

◆ SensorStateClass

Enumerator
STATE_CLASS_NONE 
STATE_CLASS_MEASUREMENT 
STATE_CLASS_TOTAL_INCREASING 

Definition at line 52 of file api_pb2.h.

◆ ServiceArgType

Enumerator
SERVICE_ARG_TYPE_BOOL 
SERVICE_ARG_TYPE_INT 
SERVICE_ARG_TYPE_FLOAT 
SERVICE_ARG_TYPE_STRING 
SERVICE_ARG_TYPE_BOOL_ARRAY 
SERVICE_ARG_TYPE_INT_ARRAY 
SERVICE_ARG_TYPE_FLOAT_ARRAY 
SERVICE_ARG_TYPE_STRING_ARRAY 

Definition at line 72 of file api_pb2.h.