ESPHome 2025.12.0-dev
Loading...
Searching...
No Matches
esphome::fan::FanPresetSetTrigger Class Reference

#include <automation.h>

Inheritance diagram for esphome::fan::FanPresetSetTrigger:
esphome::Trigger< std::string >

Public Member Functions

 FanPresetSetTrigger (Fan *state)
 
- Public Member Functions inherited from esphome::Trigger< std::string >
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

const char * last_preset_mode_ {nullptr}
 
- Protected Attributes inherited from esphome::Trigger< std::string >
Automation< Ts... > * automation_parent_
 

Detailed Description

Definition at line 211 of file automation.h.

Constructor & Destructor Documentation

◆ FanPresetSetTrigger()

esphome::fan::FanPresetSetTrigger::FanPresetSetTrigger ( Fan * state)
inline

Definition at line 213 of file automation.h.

Field Documentation

◆ last_preset_mode_

const char* esphome::fan::FanPresetSetTrigger::last_preset_mode_ {nullptr}
protected

Definition at line 227 of file automation.h.


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