ESPHome  2022.6.2
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::template_::TemplateBinaryOutput Class Reference

#include <template_output.h>

Inheritance diagram for esphome::template_::TemplateBinaryOutput:
esphome::output::BinaryOutput

Public Member Functions

Trigger< bool > * get_trigger () const
 
- Public Member Functions inherited from esphome::output::BinaryOutput
void set_inverted (bool inverted)
 Set the inversion state of this binary output. More...
 
void set_power_supply (power_supply::PowerSupply *power_supply)
 Use this to connect up a power supply to this output. More...
 
virtual void set_state (bool state)
 Enable or disable this binary output. More...
 
virtual void turn_on ()
 Enable this binary output. More...
 
virtual void turn_off ()
 Disable this binary output. More...
 
bool is_inverted () const
 Return whether this binary output is inverted. More...
 

Protected Member Functions

void write_state (bool state) override
 

Protected Attributes

Trigger< bool > * trigger_ = new Trigger<bool>()
 
- Protected Attributes inherited from esphome::output::BinaryOutput
bool inverted_ {false}
 
power_supply::PowerSupplyRequester power_ {}
 

Detailed Description

Definition at line 10 of file template_output.h.

Member Function Documentation

◆ get_trigger()

Trigger<bool>* esphome::template_::TemplateBinaryOutput::get_trigger ( ) const
inline

Definition at line 12 of file template_output.h.

◆ write_state()

void esphome::template_::TemplateBinaryOutput::write_state ( bool  state)
inlineoverrideprotectedvirtual

Implements esphome::output::BinaryOutput.

Definition at line 15 of file template_output.h.

Field Documentation

◆ trigger_

Trigger<bool>* esphome::template_::TemplateBinaryOutput::trigger_ = new Trigger<bool>()
protected

Definition at line 17 of file template_output.h.


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