7 static const char *
const TAG =
"template.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.
std::set< std::string > preset_modes_
FanDirection direction
The current direction of the fan.
optional< FanDirection > get_direction() const
optional< int > get_speed() const
optional< FanRestoreState > restore_state_()
int speed
The current fan speed level.
optional< bool > get_state() const
optional< bool > get_oscillating() const
void set_supported_preset_modes(const std::set< std::string > &preset_modes)
Set the preset modes supported by the fan.
Implementation of SPI Controller mode.
void control(const fan::FanCall &call) override
std::string get_preset_mode() const
void dump_config() override