ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
filter.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::text_sensor::Filter
 Apply a filter to text sensor values such as to_upper. More...
 
class  esphome::text_sensor::LambdaFilter
 This class allows for creation of simple template filters. More...
 
class  esphome::text_sensor::StatelessLambdaFilter
 Optimized lambda filter for stateless lambdas (no capture). More...
 
class  esphome::text_sensor::ToUpperFilter
 A simple filter that converts all text to uppercase. More...
 
class  esphome::text_sensor::ToLowerFilter
 A simple filter that converts all text to lowercase. More...
 
class  esphome::text_sensor::AppendFilter
 A simple filter that adds a string to the end of another string. More...
 
class  esphome::text_sensor::PrependFilter
 A simple filter that adds a string to the start of another string. More...
 
struct  esphome::text_sensor::Substitution
 
class  esphome::text_sensor::SubstituteFilter
 A simple filter that replaces a substring with another substring. More...
 
class  esphome::text_sensor::MapFilter
 A filter that maps values from one set to another. More...
 
class  esphome::text_sensor::ThrottleFilter
 Drops a value that comes sooner than min_time_between_inputs after the last one let through. More...
 
class  esphome::text_sensor::ThrottleWithPriorityFilter
 Same as ThrottleFilter, but a value in prioritized always passes. More...
 
class  esphome::text_sensor::TimeoutFilterBase
 Passes every value on and, once none has come for time_period, sends one value again. More...
 
class  esphome::text_sensor::TimeoutFilterLast
 Sends the last value again. More...
 
class  esphome::text_sensor::TimeoutThrottleFilter
 Codegen use only: timeout (value last) followed by throttle_with_priority with the same period, as one object. More...
 
class  esphome::text_sensor::TimeoutFilterConfigured
 Sends the configured text. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::text_sensor
 

Typedefs

using esphome::text_sensor::lambda_filter_t = std::function<optional<std::string>(std::string)>