8static const char *
const TAG =
"output.float";
27#ifdef USE_POWER_SUPPLY
power_supply::PowerSupplyRequester power_
bool is_inverted() const
Return whether this binary output is inverted.
void set_level(float state)
Set the level of this float output, this is called from the front-end.
float get_min_power() const
Get the minimum power output.
void set_max_power(float max_power)
Set the maximum power output of this component.
void set_zero_means_zero(bool zero_means_zero)
Sets this output to ignore min_power for a 0 state.
float get_max_power() const
Get the maximum power output.
void write_state(bool state) override
Implement BinarySensor's write_enabled; this should never be called.
void set_min_power(float min_power)
Set the minimum power output of this component.
Providing packet encoding functions for exchanging data with a remote host.
constexpr const T & clamp(const T &v, const T &lo, const T &hi, Compare comp)