ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::light::LightTurnOnTrigger Class Reference

#include <automation.h>

Inheritance diagram for esphome::light::LightTurnOnTrigger:
esphome::Trigger<>

Public Member Functions

 LightTurnOnTrigger (LightState *a_light)
 
- 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

bool last_on_
 
- Protected Attributes inherited from esphome::Trigger<>
Automation< Ts... > * automation_parent_
 

Detailed Description

Definition at line 124 of file automation.h.

Constructor & Destructor Documentation

◆ LightTurnOnTrigger()

esphome::light::LightTurnOnTrigger::LightTurnOnTrigger ( LightState a_light)
inline

Definition at line 126 of file automation.h.

Field Documentation

◆ last_on_

bool esphome::light::LightTurnOnTrigger::last_on_
protected

Definition at line 143 of file automation.h.


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