ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
esphome::switch_::SwitchStateTrigger Class Reference

#include <automation.h>

Inheritance diagram for esphome::switch_::SwitchStateTrigger:
esphome::Trigger< bool >

Public Member Functions

 SwitchStateTrigger (Switch *a_switch)
 
- Public Member Functions inherited from esphome::Trigger< bool >
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 Attributes inherited from esphome::Trigger< bool >
Automation< Ts... > * automation_parent_
 

Detailed Description

Definition at line 67 of file automation.h.

Constructor & Destructor Documentation

◆ SwitchStateTrigger()

esphome::switch_::SwitchStateTrigger::SwitchStateTrigger ( Switch * a_switch)
inline

Definition at line 69 of file automation.h.


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