|
ESPHome 2026.1.0-dev
|
#include <user_services.h>
Public Member Functions | |
| APIRespondAction (APIServer *parent) | |
| template<typename V > | |
| void | set_success (V success) |
| template<typename V > | |
| void | set_error_message (V error) |
| void | set_is_optional_mode (bool is_optional) |
| void | set_data (std::function< void(Ts..., JsonObject)> func) |
| 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 Attributes | |
| APIServer * | parent_ |
| TemplatableValue< bool, Ts... > | success_ {true} |
| TemplatableValue< std::string, Ts... > | error_message_ {""} |
| std::function< void(Ts..., JsonObject)> | json_builder_ |
| bool | has_data_ {false} |
| bool | is_optional_mode_ {false} |
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. | |
Additional Inherited Members | |
Protected Member Functions inherited from esphome::Action< Ts... > | |
| void | play_next_ (const Ts &...x) |
| void | play_next_tuple_ (const std::tuple< Ts... > &tuple, std::index_sequence< S... >) |
| void | play_next_tuple_ (const std::tuple< Ts... > &tuple) |
| virtual void | stop () |
| void | stop_next_ () |
| bool | is_running_next_ () |
Definition at line 224 of file user_services.h.
|
inlineexplicit |
Definition at line 226 of file user_services.h.
|
inlineoverridevirtual |
Implements esphome::Action< Ts... >.
Definition at line 239 of file user_services.h.
|
inline |
Definition at line 233 of file user_services.h.
|
inline |
Definition at line 229 of file user_services.h.
|
inline |
Definition at line 230 of file user_services.h.
|
inline |
Definition at line 228 of file user_services.h.
|
protected |
Definition at line 279 of file user_services.h.
|
protected |
Definition at line 282 of file user_services.h.
|
protected |
Definition at line 284 of file user_services.h.
|
protected |
Definition at line 281 of file user_services.h.
|
protected |
Definition at line 277 of file user_services.h.
|
protected |
Definition at line 278 of file user_services.h.