ESPHome 2025.6.0
|
Namespaces | |
namespace | enums |
Typedefs | |
using | psk_t = std::array<uint8_t, 32> |
Enumerations | |
enum class | APIError : int { OK = 0 , WOULD_BLOCK = 1001 , BAD_HANDSHAKE_PACKET_LEN = 1002 , BAD_INDICATOR = 1003 , BAD_DATA_PACKET = 1004 , TCP_NODELAY_FAILED = 1005 , TCP_NONBLOCKING_FAILED = 1006 , CLOSE_FAILED = 1007 , SHUTDOWN_FAILED = 1008 , BAD_STATE = 1009 , BAD_ARG = 1010 , SOCKET_READ_FAILED = 1011 , SOCKET_WRITE_FAILED = 1012 , HANDSHAKESTATE_READ_FAILED = 1013 , HANDSHAKESTATE_WRITE_FAILED = 1014 , HANDSHAKESTATE_BAD_STATE = 1015 , CIPHERSTATE_DECRYPT_FAILED = 1016 , CIPHERSTATE_ENCRYPT_FAILED = 1017 , OUT_OF_MEMORY = 1018 , HANDSHAKESTATE_SETUP_FAILED = 1019 , HANDSHAKESTATE_SPLIT_FAILED = 1020 , BAD_HANDSHAKE_ERROR_BYTE = 1021 , CONNECTION_CLOSED = 1022 } |
Variables | |
APIServer * | global_api_server = nullptr |
struct esphome::api::SavedNoisePsk | PACKED |
using esphome::api::psk_t = std::array<uint8_t, 32> |
Definition at line 10 of file api_noise_context.h.
|
strong |
Definition at line 41 of file api_frame_helper.h.
const char * esphome::api::api_error_to_str | ( | APIError | err | ) |
Definition at line 17 of file api_frame_helper.cpp.
std::string esphome::api::get_default_unique_id | ( | const std::string & | component_type, |
EntityBase * | entity ) |
Definition at line 228 of file api_connection.cpp.
T esphome::api::get_execute_arg_value | ( | const ExecuteServiceArgument & | arg | ) |
bool esphome::api::get_execute_arg_value< bool > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 7 of file user_services.cpp.
float esphome::api::get_execute_arg_value< float > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 13 of file user_services.cpp.
int32_t esphome::api::get_execute_arg_value< int32_t > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 8 of file user_services.cpp.
std::string esphome::api::get_execute_arg_value< std::string > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 14 of file user_services.cpp.
std::vector< bool > esphome::api::get_execute_arg_value< std::vector< bool > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 14 of file user_services.cpp.
std::vector< float > esphome::api::get_execute_arg_value< std::vector< float > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 14 of file user_services.cpp.
std::vector< int32_t > esphome::api::get_execute_arg_value< std::vector< int32_t > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 14 of file user_services.cpp.
std::vector< std::string > esphome::api::get_execute_arg_value< std::vector< std::string > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 14 of file user_services.cpp.
std::string esphome::api::noise_err_to_str | ( | int | err | ) |
Convert a noise error code to a readable error.
Definition at line 224 of file api_frame_helper.cpp.
void esphome::api::noise_rand_bytes | ( | void * | output, |
size_t | len ) |
Definition at line 803 of file api_frame_helper.cpp.
const char * esphome::api::proto_enum_to_string | ( | T | value | ) |
const char * esphome::api::proto_enum_to_string< enums::AlarmControlPanelState > | ( | enums::AlarmControlPanelState | value | ) |
Definition at line 543 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::AlarmControlPanelStateCommand > | ( | enums::AlarmControlPanelStateCommand | value | ) |
Definition at line 572 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::BluetoothDeviceRequestType > | ( | enums::BluetoothDeviceRequestType | value | ) |
Definition at line 406 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::BluetoothScannerMode > | ( | enums::BluetoothScannerMode | value | ) |
Definition at line 448 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::BluetoothScannerState > | ( | enums::BluetoothScannerState | value | ) |
Definition at line 428 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::ClimateAction > | ( | enums::ClimateAction | value | ) |
Definition at line 267 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::ClimateFanMode > | ( | enums::ClimateFanMode | value | ) |
Definition at line 223 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::ClimateMode > | ( | enums::ClimateMode | value | ) |
Definition at line 201 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::ClimatePreset > | ( | enums::ClimatePreset | value | ) |
Definition at line 287 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::ClimateSwingMode > | ( | enums::ClimateSwingMode | value | ) |
Definition at line 251 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::ColorMode > | ( | enums::ColorMode | value | ) |
Definition at line 93 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::CoverOperation > | ( | enums::CoverOperation | value | ) |
Definition at line 39 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::EntityCategory > | ( | enums::EntityCategory | value | ) |
Definition at line 13 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::FanDirection > | ( | enums::FanDirection | value | ) |
Definition at line 81 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::FanSpeed > | ( | enums::FanSpeed | value | ) |
Definition at line 67 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::LegacyCoverCommand > | ( | enums::LegacyCoverCommand | value | ) |
Definition at line 53 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::LegacyCoverState > | ( | enums::LegacyCoverState | value | ) |
Definition at line 27 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::LockCommand > | ( | enums::LockCommand | value | ) |
Definition at line 345 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::LockState > | ( | enums::LockState | value | ) |
Definition at line 325 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::LogLevel > | ( | enums::LogLevel | value | ) |
Definition at line 153 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::MediaPlayerCommand > | ( | enums::MediaPlayerCommand | value | ) |
Definition at line 375 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::MediaPlayerFormatPurpose > | ( | enums::MediaPlayerFormatPurpose | value | ) |
Definition at line 393 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::MediaPlayerState > | ( | enums::MediaPlayerState | value | ) |
Definition at line 359 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::NumberMode > | ( | enums::NumberMode | value | ) |
Definition at line 311 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::SensorLastResetType > | ( | enums::SensorLastResetType | value | ) |
Definition at line 139 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::SensorStateClass > | ( | enums::SensorStateClass | value | ) |
Definition at line 123 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::ServiceArgType > | ( | enums::ServiceArgType | value | ) |
Definition at line 177 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::TextMode > | ( | enums::TextMode | value | ) |
Definition at line 594 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::UpdateCommand > | ( | enums::UpdateCommand | value | ) |
Definition at line 620 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::ValveOperation > | ( | enums::ValveOperation | value | ) |
Definition at line 606 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::VoiceAssistantEvent > | ( | enums::VoiceAssistantEvent | value | ) |
Definition at line 487 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::VoiceAssistantRequestFlag > | ( | enums::VoiceAssistantRequestFlag | value | ) |
Definition at line 473 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::VoiceAssistantSubscribeFlag > | ( | enums::VoiceAssistantSubscribeFlag | value | ) |
Definition at line 461 of file api_pb2.cpp.
const char * esphome::api::proto_enum_to_string< enums::VoiceAssistantTimerEvent > | ( | enums::VoiceAssistantTimerEvent | value | ) |
Definition at line 527 of file api_pb2.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type | ( | ) |
enums::ServiceArgType esphome::api::to_service_arg_type< bool > | ( | ) |
Definition at line 28 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< float > | ( | ) |
Definition at line 30 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< int32_t > | ( | ) |
Definition at line 29 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::string > | ( | ) |
Definition at line 31 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< bool > > | ( | ) |
Definition at line 32 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< float > > | ( | ) |
Definition at line 36 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< int32_t > > | ( | ) |
Definition at line 33 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< std::string > > | ( | ) |
Definition at line 39 of file user_services.cpp.
APIServer * esphome::api::global_api_server = nullptr |
Definition at line 25 of file api_server.cpp.
struct esphome::api::SavedNoisePsk esphome::api::PACKED |