|
ESPHome 2026.3.0
|
#include <automation.h>
Public Member Functions | |
| ClickTrigger (BinarySensor *parent, uint32_t min_length, uint32_t max_length) | |
Public Member Functions inherited from esphome::Trigger<> | |
| void | trigger (const 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. | |
Protected Attributes | |
| uint32_t | start_time_ {0} |
| uint32_t | min_length_ |
| The millis() time when the click started. | |
| uint32_t | max_length_ |
| Minimum length of click. 0 means no minimum. | |
Protected Attributes inherited from esphome::Trigger<> | |
| Automation< Ts... > * | automation_parent_ |
Definition at line 42 of file automation.h.
|
inlineexplicit |
Definition at line 44 of file automation.h.
|
protected |
Minimum length of click. 0 means no minimum.
Definition at line 60 of file automation.h.
|
protected |
The millis() time when the click started.
Definition at line 59 of file automation.h.
|
protected |
Definition at line 58 of file automation.h.