ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
esphome::cover::CoverPositionTrigger< OPEN > Class Template Reference

#include <automation.h>

Inheritance diagram for esphome::cover::CoverPositionTrigger< OPEN >:
esphome::Trigger<>

Public Member Functions

 CoverPositionTrigger (Cover *a_cover)
 
- 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

float last_position_ {NAN}
 
- Protected Attributes inherited from esphome::Trigger<>
Automation< Ts... > * automation_parent_
 

Detailed Description

template<bool OPEN>
class esphome::cover::CoverPositionTrigger< OPEN >

Definition at line 106 of file automation.h.

Constructor & Destructor Documentation

◆ CoverPositionTrigger()

template<bool OPEN>
esphome::cover::CoverPositionTrigger< OPEN >::CoverPositionTrigger ( Cover * a_cover)
inline

Definition at line 108 of file automation.h.

Field Documentation

◆ last_position_

template<bool OPEN>
float esphome::cover::CoverPositionTrigger< OPEN >::last_position_ {NAN}
protected

Definition at line 119 of file automation.h.


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