ESPHome 2025.7.1
Loading...
Searching...
No Matches
esphome::binary_sensor::StateChangeTrigger Class Reference

#include <automation.h>

Inheritance diagram for esphome::binary_sensor::StateChangeTrigger:
esphome::Trigger< optional< bool >, optional< bool > >

Public Member Functions

 StateChangeTrigger (BinarySensor *parent)
 
- Public Member Functions inherited from esphome::Trigger< optional< bool >, optional< 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< optional< bool >, optional< bool > >
Automation< Ts... > * automation_parent_
 

Detailed Description

Definition at line 133 of file automation.h.

Constructor & Destructor Documentation

◆ StateChangeTrigger()

esphome::binary_sensor::StateChangeTrigger::StateChangeTrigger ( BinarySensor * parent)
inlineexplicit

Definition at line 135 of file automation.h.


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