ESPHome  2024.11.1
Public Member Functions | Protected Attributes
esphome::binary_sensor::DoubleClickTrigger Class Reference

#include <automation.h>

Inheritance diagram for esphome::binary_sensor::DoubleClickTrigger:
esphome::Trigger<>

Public Member Functions

 DoubleClickTrigger (BinarySensor *parent, uint32_t min_length, uint32_t max_length)
 
- Public Member Functions inherited from esphome::Trigger<>
void trigger (Ts... x)
 Inform the parent automation that the event has triggered. More...
 
void set_automation_parent (Automation< Ts... > *automation_parent)
 
void stop_action ()
 Stop any action connected to this trigger. More...
 
bool is_action_running ()
 Returns true if any action connected to this trigger is running. More...
 

Protected Attributes

uint32_t start_time_ {0}
 
uint32_t end_time_ {0}
 
uint32_t min_length_
 
uint32_t max_length_
 Minimum length of click. 0 means no minimum. More...
 
- Protected Attributes inherited from esphome::Trigger<>
Automation< Ts... > * automation_parent_
 

Detailed Description

Definition at line 64 of file automation.h.

Constructor & Destructor Documentation

◆ DoubleClickTrigger()

esphome::binary_sensor::DoubleClickTrigger::DoubleClickTrigger ( BinarySensor parent,
uint32_t  min_length,
uint32_t  max_length 
)
inlineexplicit

Definition at line 66 of file automation.h.

Field Documentation

◆ end_time_

uint32_t esphome::binary_sensor::DoubleClickTrigger::end_time_ {0}
protected

Definition at line 88 of file automation.h.

◆ max_length_

uint32_t esphome::binary_sensor::DoubleClickTrigger::max_length_
protected

Minimum length of click. 0 means no minimum.

Definition at line 90 of file automation.h.

◆ min_length_

uint32_t esphome::binary_sensor::DoubleClickTrigger::min_length_
protected

Definition at line 89 of file automation.h.

◆ start_time_

uint32_t esphome::binary_sensor::DoubleClickTrigger::start_time_ {0}
protected

Definition at line 87 of file automation.h.


The documentation for this class was generated from the following file: