|
ESPHome 2025.12.0-dev
|
#include <homeassistant_service.h>
Data Structures | |
| struct | Flags |
Public Member Functions | |
| HomeAssistantServiceCallAction (APIServer *parent, bool is_event) | |
| template<typename T > | |
| void | set_service (T service) |
| void | init_data (size_t count) |
| void | init_data_template (size_t count) |
| void | init_variables (size_t count) |
| template<typename K , typename V > | |
| void | add_data (K &&key, V &&value) |
| template<typename K , typename V > | |
| void | add_data_template (K &&key, V &&value) |
| template<typename K , typename V > | |
| void | add_variable (K &&key, V &&value) |
| template<typename T > | |
| void | set_response_template (T response_template) |
| void | set_wants_status () |
| void | set_wants_response () |
| Trigger< JsonObjectConst, Ts... > * | get_success_trigger_with_response () const |
| Trigger< Ts... > * | get_success_trigger () const |
| Trigger< std::string, Ts... > * | get_error_trigger () const |
| void | play (const Ts &...x) override |
Public Member Functions inherited from esphome::Action< Ts... > | |
| virtual void | play_complex (const Ts &...x) |
| virtual void | stop_complex () |
| virtual bool | is_running () |
| Check if this or any of the following actions are currently running. | |
| int | num_running_total () |
| The total number of actions that are currently running in this plus any of the following actions in the chain. | |
Protected Member Functions | |
| template<typename K , typename V > | |
| void | add_kv_ (FixedVector< TemplatableKeyValuePair< Ts... > > &vec, K &&key, V &&value) |
Protected Member Functions inherited from esphome::Action< Ts... > | |
| void | play_next_ (const Ts &...x) |
| void | play_next_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >) |
| void | play_next_tuple_ (const std::tuple< Ts... > &tuple) |
| virtual void | stop () |
| void | stop_next_ () |
| bool | is_running_next_ () |
Static Protected Member Functions | |
| template<typename VectorType , typename SourceType > | |
| static void | populate_service_map (VectorType &dest, SourceType &source, Ts... x) |
Protected Attributes | |
| APIServer * | parent_ |
| TemplatableStringValue< Ts... > | service_ {} |
| FixedVector< TemplatableKeyValuePair< Ts... > > | data_ |
| FixedVector< TemplatableKeyValuePair< Ts... > > | data_template_ |
| FixedVector< TemplatableKeyValuePair< Ts... > > | variables_ |
| TemplatableStringValue< Ts... > | response_template_ {""} |
| Trigger< JsonObjectConst, Ts... > * | success_trigger_with_response_ = new Trigger<JsonObjectConst, Ts...>() |
| Trigger< Ts... > * | success_trigger_ = new Trigger<Ts...>() |
| Trigger< std::string, Ts... > * | error_trigger_ = new Trigger<std::string, Ts...>() |
| struct esphome::api::HomeAssistantServiceCallAction::Flags | flags_ |
Protected Attributes inherited from esphome::Action< Ts... > | |
| friend | ActionList< Ts... > |
| Action< Ts... > * | next_ |
| int | num_running_ |
| The number of instances of this sequence in the list of actions that is currently being executed. | |
Definition at line 92 of file homeassistant_service.h.
|
inlineexplicit |
Definition at line 94 of file homeassistant_service.h.
|
inline |
Definition at line 108 of file homeassistant_service.h.
|
inline |
Definition at line 111 of file homeassistant_service.h.
|
inlineprotected |
Definition at line 189 of file homeassistant_service.h.
|
inline |
Definition at line 114 of file homeassistant_service.h.
|
inline |
Definition at line 133 of file homeassistant_service.h.
|
inline |
Definition at line 132 of file homeassistant_service.h.
|
inline |
Definition at line 128 of file homeassistant_service.h.
|
inline |
Definition at line 102 of file homeassistant_service.h.
|
inline |
Definition at line 103 of file homeassistant_service.h.
|
inline |
Definition at line 104 of file homeassistant_service.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 136 of file homeassistant_service.h.
|
inlinestaticprotected |
Definition at line 196 of file homeassistant_service.h.
|
inline |
Definition at line 119 of file homeassistant_service.h.
|
inline |
Definition at line 98 of file homeassistant_service.h.
|
inline |
Definition at line 125 of file homeassistant_service.h.
|
inline |
Definition at line 124 of file homeassistant_service.h.
|
protected |
Definition at line 207 of file homeassistant_service.h.
|
protected |
Definition at line 208 of file homeassistant_service.h.
|
protected |
Definition at line 216 of file homeassistant_service.h.
|
protected |
|
protected |
Definition at line 205 of file homeassistant_service.h.
|
protected |
Definition at line 212 of file homeassistant_service.h.
|
protected |
Definition at line 206 of file homeassistant_service.h.
|
protected |
Definition at line 215 of file homeassistant_service.h.
|
protected |
Definition at line 213 of file homeassistant_service.h.
|
protected |
Definition at line 209 of file homeassistant_service.h.