7 static const char *
const TAG =
"speed.fan";
11 if (restore.has_value()) {
12 restore->apply(*
this);
bool state
The current on/off state of the fan.
bool oscillating
The current oscillation state of the fan.
FanDirection direction
The current direction of the fan.
optional< FanDirection > get_direction() const
optional< int > get_speed() const
void dump_config() override
output::FloatOutput * output_
virtual void set_state(bool state)
Enable or disable this binary output.
void control(const fan::FanCall &call) override
optional< FanRestoreState > restore_state_()
void set_level(float state)
Set the level of this float output, this is called from the front-end.
int speed
The current fan speed level.
optional< bool > get_state() const
optional< bool > get_oscillating() const
std::set< std::string > preset_modes_
void set_supported_preset_modes(const std::set< std::string > &preset_modes)
Set the preset modes supported by the fan.
output::BinaryOutput * oscillating_
Implementation of SPI Controller mode.
std::string get_preset_mode() const
output::BinaryOutput * direction_