15 void setup()
override;
26 void control(
float value)
override;
This class simplifies creating components that periodically check a state.
Base-class for all numbers.
optional< std::function< optional< float >()> > f_
Trigger< float > * set_trigger_
void set_restore_value(bool restore_value)
float get_setup_priority() const override
void set_optimistic(bool optimistic)
void control(float value) override
Trigger< float > * get_set_trigger() const
void set_template(std::function< optional< float >()> &&f)
void dump_config() override
ESPPreferenceObject pref_
void set_initial_value(float initial_value)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Providing packet encoding functions for exchanging data with a remote host.