11namespace binary_sensor {
19 virtual void input(
bool value);
34 void input(
bool value)
override;
118 std::function<optional<bool>(
bool)>
f_;
Helper class to deduplicate items in a series of values.
AutorepeatFilter(std::vector< AutorepeatFilterTiming > timings)
float get_setup_priority() const override
optional< bool > new_value(bool value) override
void next_value_(bool val)
std::vector< AutorepeatFilterTiming > timings_
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
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)
AutorepeatFilterTiming(uint32_t delay, uint32_t off, uint32_t on)