7 static const char *
const TAG =
"binary.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.
output::BinaryOutput * output_
FanDirection direction
The current direction of the fan.
optional< FanDirection > get_direction() const
void control(const fan::FanCall &call) override
virtual void set_state(bool state)
Enable or disable this binary output.
optional< FanRestoreState > restore_state_()
output::BinaryOutput * oscillating_
output::BinaryOutput * direction_
fan::FanTraits get_traits() override
void dump_config() override
optional< bool > get_state() const
optional< bool > get_oscillating() const
Implementation of SPI Controller mode.