ESPHome
2024.11.3
|
#include <user_services.h>
Public Member Functions | |
UserServiceBase (std::string name, const std::array< std::string, sizeof...(Ts)> &arg_names) | |
ListEntitiesServicesResponse | encode_list_service_response () override |
bool | execute_service (const ExecuteServiceRequest &req) override |
Protected Member Functions | |
virtual void | execute (Ts... x)=0 |
template<int... S> | |
void | execute_ (std::vector< ExecuteServiceArgument > args, seq< S... > type) |
Protected Attributes | |
std::string | name_ |
uint32_t | key_ {0} |
std::array< std::string, sizeof...(Ts)> | arg_names_ |
Definition at line 24 of file user_services.h.
|
inline |
Definition at line 26 of file user_services.h.
|
inlineoverridevirtual |
Implements esphome::api::UserServiceDescriptor.
Definition at line 31 of file user_services.h.
|
protectedpure virtual |
Implemented in esphome::api::UserServiceTrigger< Ts >, and esphome::api::CustomAPIDeviceService< T, Ts >.
|
inlineprotected |
Definition at line 56 of file user_services.h.
|
inlineoverridevirtual |
Implements esphome::api::UserServiceDescriptor.
Definition at line 45 of file user_services.h.
|
protected |
Definition at line 62 of file user_services.h.
|
protected |
Definition at line 61 of file user_services.h.
|
protected |
Definition at line 60 of file user_services.h.