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