ESPHome
2024.11.3
|
Namespaces | |
enums | |
Typedefs | |
using | psk_t = std::array< uint8_t, 32 > |
Enumerations | |
enum | APIError : int { APIError::OK = 0, APIError::WOULD_BLOCK = 1001, APIError::BAD_HANDSHAKE_PACKET_LEN = 1002, APIError::BAD_INDICATOR = 1003, APIError::BAD_DATA_PACKET = 1004, APIError::TCP_NODELAY_FAILED = 1005, APIError::TCP_NONBLOCKING_FAILED = 1006, APIError::CLOSE_FAILED = 1007, APIError::SHUTDOWN_FAILED = 1008, APIError::BAD_STATE = 1009, APIError::BAD_ARG = 1010, APIError::SOCKET_READ_FAILED = 1011, APIError::SOCKET_WRITE_FAILED = 1012, APIError::HANDSHAKESTATE_READ_FAILED = 1013, APIError::HANDSHAKESTATE_WRITE_FAILED = 1014, APIError::HANDSHAKESTATE_BAD_STATE = 1015, APIError::CIPHERSTATE_DECRYPT_FAILED = 1016, APIError::CIPHERSTATE_ENCRYPT_FAILED = 1017, APIError::OUT_OF_MEMORY = 1018, APIError::HANDSHAKESTATE_SETUP_FAILED = 1019, APIError::HANDSHAKESTATE_SPLIT_FAILED = 1020, APIError::BAD_HANDSHAKE_ERROR_BYTE = 1021, APIError::CONNECTION_CLOSED = 1022 } |
Variables | |
APIServer * | global_api_server = nullptr |
using esphome::api::psk_t = typedef std::array<uint8_t, 32> |
Definition at line 10 of file api_noise_context.h.
|
strong |
Definition at line 33 of file api_frame_helper.h.
const char * esphome::api::api_error_to_str | ( | APIError | err | ) |
Definition at line 23 of file api_frame_helper.cpp.
std::string esphome::api::get_default_unique_id | ( | const std::string & | component_type, |
EntityBase * | entity | ||
) |
Definition at line 191 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 15 of file user_services.cpp.
std::vector<float> esphome::api::get_execute_arg_value< std::vector< float > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 21 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 18 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 24 of file user_services.cpp.
bool esphome::api::is_would_block | ( | ssize_t | ret | ) |
Is the given return value (from write syscalls) a wouldblock error?
Definition at line 16 of file api_frame_helper.cpp.
std::string esphome::api::noise_err_to_str | ( | int | err | ) |
Convert a noise error code to a readable error.
Definition at line 83 of file api_frame_helper.cpp.
void esphome::api::noise_rand_bytes | ( | void * | output, |
size_t | len | ||
) |
Definition at line 736 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 506 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::AlarmControlPanelStateCommand > | ( | enums::AlarmControlPanelStateCommand | value | ) |
Definition at line 535 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::BluetoothDeviceRequestType > | ( | enums::BluetoothDeviceRequestType | value | ) |
Definition at line 403 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimateAction > | ( | enums::ClimateAction | value | ) |
Definition at line 264 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimateFanMode > | ( | enums::ClimateFanMode | value | ) |
Definition at line 220 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimateMode > | ( | enums::ClimateMode | value | ) |
Definition at line 198 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimatePreset > | ( | enums::ClimatePreset | value | ) |
Definition at line 284 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimateSwingMode > | ( | enums::ClimateSwingMode | value | ) |
Definition at line 248 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ColorMode > | ( | enums::ColorMode | value | ) |
Definition at line 92 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::CoverOperation > | ( | enums::CoverOperation | value | ) |
Definition at line 38 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::EntityCategory > | ( | enums::EntityCategory | value | ) |
Definition at line 12 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::FanDirection > | ( | enums::FanDirection | value | ) |
Definition at line 80 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::FanSpeed > | ( | enums::FanSpeed | value | ) |
Definition at line 66 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LegacyCoverCommand > | ( | enums::LegacyCoverCommand | value | ) |
Definition at line 52 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LegacyCoverState > | ( | enums::LegacyCoverState | value | ) |
Definition at line 26 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LockCommand > | ( | enums::LockCommand | value | ) |
Definition at line 342 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LockState > | ( | enums::LockState | value | ) |
Definition at line 322 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LogLevel > | ( | enums::LogLevel | value | ) |
Definition at line 150 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::MediaPlayerCommand > | ( | enums::MediaPlayerCommand | value | ) |
Definition at line 372 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::MediaPlayerFormatPurpose > | ( | enums::MediaPlayerFormatPurpose | value | ) |
Definition at line 390 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::MediaPlayerState > | ( | enums::MediaPlayerState | value | ) |
Definition at line 356 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::NumberMode > | ( | enums::NumberMode | value | ) |
Definition at line 308 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::SensorLastResetType > | ( | enums::SensorLastResetType | value | ) |
Definition at line 136 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::SensorStateClass > | ( | enums::SensorStateClass | value | ) |
Definition at line 120 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ServiceArgType > | ( | enums::ServiceArgType | value | ) |
Definition at line 174 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::TextMode > | ( | enums::TextMode | value | ) |
Definition at line 557 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::UpdateCommand > | ( | enums::UpdateCommand | value | ) |
Definition at line 583 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ValveOperation > | ( | enums::ValveOperation | value | ) |
Definition at line 569 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::VoiceAssistantEvent > | ( | enums::VoiceAssistantEvent | value | ) |
Definition at line 452 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::VoiceAssistantRequestFlag > | ( | enums::VoiceAssistantRequestFlag | value | ) |
Definition at line 438 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::VoiceAssistantSubscribeFlag > | ( | enums::VoiceAssistantSubscribeFlag | value | ) |
Definition at line 426 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::VoiceAssistantTimerEvent > | ( | enums::VoiceAssistantTimerEvent | value | ) |
Definition at line 490 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 347 of file api_server.cpp.