13 void setup()
override;
19 ESPDEPRECATED(
"Use set_supported_preset_modes() instead. Removed in 2027.5.0",
"2026.11.0")
void set_supported_preset_modes(std::initializer_list< const char * > preset_modes)
Set the supported preset modes; the list is copied (stored on Fan, referenced by FanTraits).
FanDirection direction
The current direction of the fan.
bool oscillating
The current oscillation state of the fan.
void wire_preset_modes_(FanTraits &traits)
Wire the Fan-owned preset modes pointer into the given traits object.
Base class for all output components that can output a variable level, like PWM.
void control(const fan::FanCall &call) override
void set_output(output::FloatOutput *output)
void set_oscillating(output::BinaryOutput *oscillating)
output::BinaryOutput * oscillating_
output::FloatOutput * output_
void dump_config() override
output::BinaryOutput * direction_
ESPDEPRECATED("Use set_supported_preset_modes() instead. Removed in 2027.5.0", "2026.11.0") void set_preset_modes(std
void set_direction(output::BinaryOutput *direction)
fan::FanTraits get_traits() override
SpeedFan(int speed_count)