ESPHome  1.15.3
Public Member Functions | Protected Attributes
esphome::binary_sensor::Filter Class Referenceabstract

#include <filter.h>

Inheritance diagram for esphome::binary_sensor::Filter:
esphome::binary_sensor::DelayedOffFilter esphome::binary_sensor::DelayedOnFilter esphome::binary_sensor::DelayedOnOffFilter esphome::binary_sensor::InvertFilter esphome::binary_sensor::LambdaFilter esphome::binary_sensor::UniqueFilter

Public Member Functions

virtual optional< bool > new_value (bool value, bool is_initial)=0
 
void input (bool value, bool is_initial)
 
void output (bool value, bool is_initial)
 

Protected Attributes

friend BinarySensor
 
Filternext_ {nullptr}
 
BinarySensorparent_ {nullptr}
 
Deduplicator< bool > dedup_
 

Detailed Description

Definition at line 12 of file filter.h.

Member Function Documentation

◆ input()

void esphome::binary_sensor::Filter::input ( bool  value,
bool  is_initial 
)

Definition at line 20 of file filter.cpp.

◆ new_value()

virtual optional<bool> esphome::binary_sensor::Filter::new_value ( bool  value,
bool  is_initial 
)
pure virtual

◆ output()

void esphome::binary_sensor::Filter::output ( bool  value,
bool  is_initial 
)

Definition at line 10 of file filter.cpp.

Field Documentation

◆ BinarySensor

friend esphome::binary_sensor::Filter::BinarySensor
protected

Definition at line 21 of file filter.h.

◆ dedup_

Deduplicator<bool> esphome::binary_sensor::Filter::dedup_
protected

Definition at line 25 of file filter.h.

◆ next_

Filter* esphome::binary_sensor::Filter::next_ {nullptr}
protected

Definition at line 23 of file filter.h.

◆ parent_

BinarySensor* esphome::binary_sensor::Filter::parent_ {nullptr}
protected

Definition at line 24 of file filter.h.


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