9namespace binary_sensor {
17 virtual void input(
bool value);
32 void input(
bool value)
override;
90 explicit AutorepeatFilter(std::initializer_list<AutorepeatFilterTiming> timings);
111 std::function<optional<bool>(
bool)>
f_;
Helper class to deduplicate items in a series of values.
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
float get_setup_priority() const override
AutorepeatFilter(std::initializer_list< AutorepeatFilterTiming > timings)
FixedVector< AutorepeatFilterTiming > timings_
optional< bool > new_value(bool value) override
void next_value_(bool val)
Base class for all binary_sensor-type classes.
float get_setup_priority() const override
optional< bool > new_value(bool value) override
TemplatableValue< uint32_t > delay_
optional< bool > new_value(bool value) override
TemplatableValue< uint32_t > delay_
float get_setup_priority() const override
void set_off_delay(T delay)
void set_on_delay(T delay)
TemplatableValue< uint32_t > on_delay_
float get_setup_priority() const override
optional< bool > new_value(bool value) override
TemplatableValue< uint32_t > off_delay_
virtual void input(bool value)
virtual optional< bool > new_value(bool value)=0
Deduplicator< bool > dedup_
optional< bool > new_value(bool value) override
LambdaFilter(std::function< optional< bool >(bool)> f)
std::function< optional< bool >(bool)> f_
optional< bool > new_value(bool value) override
float get_setup_priority() const override
TemplatableValue< uint32_t > delay_
optional< bool > new_value(bool value) override
Optimized lambda filter for stateless lambdas (no capture).
StatelessLambdaFilter(optional< bool >(*f)(bool))
optional< bool >(* f_)(bool)
optional< bool > new_value(bool value) override
void set_timeout_value(T timeout)
void input(bool value) override
TemplatableValue< uint32_t > timeout_delay_
optional< bool > new_value(bool value) override
Providing packet encoding functions for exchanging data with a remote host.
void IRAM_ATTR HOT delay(uint32_t ms)