|
ESPHome 2025.10.3
|
A script type that restarts scripts from the beginning when a new instance is started. More...
#include <script.h>
Public Member Functions | |
| void | execute (Ts... x) override |
Public Member Functions inherited from esphome::script::Script< Ts... > | |
| virtual bool | is_running () |
| Check if any instance of this script is currently running. | |
| virtual void | stop () |
| Stop all instances of this script. | |
| void | execute_tuple (const std::tuple< Ts... > &tuple) |
| void | set_name (const LogString *name) |
Public Member Functions inherited from esphome::Trigger< Ts... > | |
| void | trigger (Ts... x) |
| Inform the parent automation that the event has triggered. | |
| void | set_automation_parent (Automation< Ts... > *automation_parent) |
| void | stop_action () |
| Stop any action connected to this trigger. | |
| bool | is_action_running () |
| Returns true if any action connected to this trigger is running. | |
Additional Inherited Members | |
Protected Member Functions inherited from esphome::script::Script< Ts... > | |
| void | execute_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >) |
Protected Member Functions inherited from esphome::script::ScriptLogger | |
| void | esp_logw_ (int line, const __FlashStringHelper *format, const char *param) |
| void | esp_logd_ (int line, const __FlashStringHelper *format, const char *param) |
| void | esp_log_ (int level, int line, const __FlashStringHelper *format, const char *param) |
| void | esp_logw_ (int line, const char *format, const char *param) |
| void | esp_logd_ (int line, const char *format, const char *param) |
| void | esp_log_ (int level, int line, const char *format, const char *param) |
Protected Attributes inherited from esphome::script::Script< Ts... > | |
| const LogString * | name_ |
Protected Attributes inherited from esphome::Trigger< Ts... > | |
| Automation< Ts... > * | automation_parent_ |
A script type that restarts scripts from the beginning when a new instance is started.
If a new instance is started but another one is already running, the existing script is stopped and the new instance starts from the beginning.
|
inlineoverridevirtual |
Implements esphome::script::Script< Ts... >.