ESPHome  1.15.2
Namespaces | Data Structures | Functions | Variables
esphome::api Namespace Reference

Namespaces

 enums
 

Data Structures

class  APIConnectedCondition
 
class  APIConnection
 
class  APIServer
 
class  APIServerConnection
 
class  APIServerConnectionBase
 
class  BinarySensorStateResponse
 
class  CameraImageRequest
 
class  CameraImageResponse
 
class  ClimateCommandRequest
 
class  ClimateStateResponse
 
class  ComponentIterator
 
class  ConnectRequest
 
class  ConnectResponse
 
class  CoverCommandRequest
 
class  CoverStateResponse
 
class  CustomAPIDevice
 
class  CustomAPIDeviceService
 
class  DeviceInfoRequest
 
class  DeviceInfoResponse
 
class  DisconnectRequest
 
class  DisconnectResponse
 
class  ExecuteServiceArgument
 
class  ExecuteServiceRequest
 
class  FanCommandRequest
 
class  FanStateResponse
 
class  GetTimeRequest
 
class  GetTimeResponse
 
class  HelloRequest
 
class  HelloResponse
 
class  HomeAssistantServiceCallAction
 
class  HomeassistantServiceMap
 
class  HomeassistantServiceResponse
 
class  HomeAssistantStateResponse
 
class  InitialStateIterator
 
class  LightCommandRequest
 
class  LightStateResponse
 
class  ListEntitiesBinarySensorResponse
 
class  ListEntitiesCameraResponse
 
class  ListEntitiesClimateResponse
 
class  ListEntitiesCoverResponse
 
class  ListEntitiesDoneResponse
 
class  ListEntitiesFanResponse
 
class  ListEntitiesIterator
 
class  ListEntitiesLightResponse
 
class  ListEntitiesRequest
 
class  ListEntitiesSensorResponse
 
class  ListEntitiesServicesArgument
 
class  ListEntitiesServicesResponse
 
class  ListEntitiesSwitchResponse
 
class  ListEntitiesTextSensorResponse
 
class  PingRequest
 
class  PingResponse
 
class  Proto32Bit
 
class  Proto64Bit
 
class  ProtoLengthDelimited
 
class  ProtoMessage
 
class  ProtoService
 
class  ProtoVarInt
 Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit. More...
 
class  ProtoWriteBuffer
 
class  SensorStateResponse
 
class  SubscribeHomeassistantServicesRequest
 
class  SubscribeHomeAssistantStateResponse
 
class  SubscribeHomeAssistantStatesRequest
 
class  SubscribeLogsRequest
 
class  SubscribeLogsResponse
 
class  SubscribeStatesRequest
 
class  SwitchCommandRequest
 
class  SwitchStateResponse
 
class  TemplatableKeyValuePair
 
class  TextSensorStateResponse
 
class  UserServiceBase
 
class  UserServiceDescriptor
 
class  UserServiceTrigger
 

Functions

std::string get_default_unique_id (const std::string &component_type, Nameable *nameable)
 
template<>
const char * proto_enum_to_string< enums::LegacyCoverState > (enums::LegacyCoverState value)
 
template<>
const char * proto_enum_to_string< enums::CoverOperation > (enums::CoverOperation value)
 
template<>
const char * proto_enum_to_string< enums::LegacyCoverCommand > (enums::LegacyCoverCommand value)
 
template<>
const char * proto_enum_to_string< enums::FanSpeed > (enums::FanSpeed value)
 
template<>
const char * proto_enum_to_string< enums::FanDirection > (enums::FanDirection value)
 
template<>
const char * proto_enum_to_string< enums::LogLevel > (enums::LogLevel value)
 
template<>
const char * proto_enum_to_string< enums::ServiceArgType > (enums::ServiceArgType value)
 
template<>
const char * proto_enum_to_string< enums::ClimateMode > (enums::ClimateMode value)
 
template<>
const char * proto_enum_to_string< enums::ClimateFanMode > (enums::ClimateFanMode value)
 
template<>
const char * proto_enum_to_string< enums::ClimateSwingMode > (enums::ClimateSwingMode value)
 
template<>
const char * proto_enum_to_string< enums::ClimateAction > (enums::ClimateAction value)
 
template<typename T >
const char * proto_enum_to_string (T value)
 
template<>
bool get_execute_arg_value< bool > (const ExecuteServiceArgument &arg)
 
template<>
int get_execute_arg_value< int > (const ExecuteServiceArgument &arg)
 
template<>
float get_execute_arg_value< float > (const ExecuteServiceArgument &arg)
 
template<>
std::string get_execute_arg_value< std::string > (const ExecuteServiceArgument &arg)
 
template<>
std::vector< bool > get_execute_arg_value< std::vector< bool > > (const ExecuteServiceArgument &arg)
 
template<>
std::vector< int > get_execute_arg_value< std::vector< int > > (const ExecuteServiceArgument &arg)
 
template<>
std::vector< float > get_execute_arg_value< std::vector< float > > (const ExecuteServiceArgument &arg)
 
template<>
std::vector< std::string > get_execute_arg_value< std::vector< std::string > > (const ExecuteServiceArgument &arg)
 
template<>
enums::ServiceArgType to_service_arg_type< bool > ()
 
template<>
enums::ServiceArgType to_service_arg_type< int > ()
 
template<>
enums::ServiceArgType to_service_arg_type< float > ()
 
template<>
enums::ServiceArgType to_service_arg_type< std::string > ()
 
template<>
enums::ServiceArgType to_service_arg_type< std::vector< bool > > ()
 
template<>
enums::ServiceArgType to_service_arg_type< std::vector< int > > ()
 
template<>
enums::ServiceArgType to_service_arg_type< std::vector< float > > ()
 
template<>
enums::ServiceArgType to_service_arg_type< std::vector< std::string > > ()
 
template<typename T >
get_execute_arg_value (const ExecuteServiceArgument &arg)
 
template<typename T >
enums::ServiceArgType to_service_arg_type ()
 

Variables

APIServerglobal_api_server = nullptr
 

Function Documentation

◆ get_default_unique_id()

std::string esphome::api::get_default_unique_id ( const std::string &  component_type,
Nameable nameable 
)

Definition at line 153 of file api_connection.cpp.

◆ get_execute_arg_value()

template<typename T >
T esphome::api::get_execute_arg_value ( const ExecuteServiceArgument arg)

◆ get_execute_arg_value< bool >()

template<>
bool esphome::api::get_execute_arg_value< bool > ( const ExecuteServiceArgument arg)

Definition at line 7 of file user_services.cpp.

◆ get_execute_arg_value< float >()

template<>
float esphome::api::get_execute_arg_value< float > ( const ExecuteServiceArgument arg)

Definition at line 13 of file user_services.cpp.

◆ get_execute_arg_value< int >()

template<>
int esphome::api::get_execute_arg_value< int > ( const ExecuteServiceArgument arg)

Definition at line 8 of file user_services.cpp.

◆ get_execute_arg_value< std::string >()

template<>
std::string esphome::api::get_execute_arg_value< std::string > ( const ExecuteServiceArgument arg)

Definition at line 14 of file user_services.cpp.

◆ get_execute_arg_value< std::vector< bool > >()

template<>
std::vector<bool> esphome::api::get_execute_arg_value< std::vector< bool > > ( const ExecuteServiceArgument arg)

Definition at line 15 of file user_services.cpp.

◆ get_execute_arg_value< std::vector< float > >()

template<>
std::vector<float> esphome::api::get_execute_arg_value< std::vector< float > > ( const ExecuteServiceArgument arg)

Definition at line 21 of file user_services.cpp.

◆ get_execute_arg_value< std::vector< int > >()

template<>
std::vector<int> esphome::api::get_execute_arg_value< std::vector< int > > ( const ExecuteServiceArgument arg)

Definition at line 18 of file user_services.cpp.

◆ get_execute_arg_value< std::vector< std::string > >()

template<>
std::vector<std::string> esphome::api::get_execute_arg_value< std::vector< std::string > > ( const ExecuteServiceArgument arg)

Definition at line 24 of file user_services.cpp.

◆ proto_enum_to_string()

template<typename T >
const char* esphome::api::proto_enum_to_string ( value)

◆ proto_enum_to_string< enums::ClimateAction >()

Definition at line 163 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::ClimateFanMode >()

Definition at line 125 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::ClimateMode >()

Definition at line 107 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::ClimateSwingMode >()

Definition at line 149 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::CoverOperation >()

Definition at line 19 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::FanDirection >()

Definition at line 55 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::FanSpeed >()

Definition at line 43 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::LegacyCoverCommand >()

Definition at line 31 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::LegacyCoverState >()

Definition at line 9 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::LogLevel >()

Definition at line 65 of file api_pb2.cpp.

◆ proto_enum_to_string< enums::ServiceArgType >()

Definition at line 85 of file api_pb2.cpp.

◆ to_service_arg_type()

template<typename T >
enums::ServiceArgType esphome::api::to_service_arg_type ( )

◆ to_service_arg_type< bool >()

Definition at line 28 of file user_services.cpp.

◆ to_service_arg_type< float >()

Definition at line 30 of file user_services.cpp.

◆ to_service_arg_type< int >()

Definition at line 29 of file user_services.cpp.

◆ to_service_arg_type< std::string >()

Definition at line 31 of file user_services.cpp.

◆ to_service_arg_type< std::vector< bool > >()

template<>
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< bool > > ( )

Definition at line 32 of file user_services.cpp.

◆ to_service_arg_type< std::vector< float > >()

template<>
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< float > > ( )

Definition at line 34 of file user_services.cpp.

◆ to_service_arg_type< std::vector< int > >()

template<>
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< int > > ( )

Definition at line 33 of file user_services.cpp.

◆ to_service_arg_type< std::vector< std::string > >()

template<>
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< std::string > > ( )

Definition at line 37 of file user_services.cpp.

Variable Documentation

◆ global_api_server

APIServer * esphome::api::global_api_server = nullptr

Definition at line 202 of file api_server.cpp.