7static const char *
const TAG =
"binary.fan";
11 if (restore.has_value()) {
12 restore->apply(*
this);
21 if (
call.get_state().has_value())
23 if (
call.get_oscillating().has_value())
25 if (
call.get_direction().has_value())
fan::FanTraits get_traits() override
output::BinaryOutput * oscillating_
output::BinaryOutput * output_
output::BinaryOutput * direction_
void control(const fan::FanCall &call) override
void dump_config() override
optional< bool > get_state() const
optional< bool > get_oscillating() const
optional< FanDirection > get_direction() const
FanDirection direction
The current direction of the fan.
bool oscillating
The current oscillation state of the fan.
bool state
The current on/off state of the fan.
optional< FanRestoreState > restore_state_()
virtual void set_state(bool state)
Enable or disable this binary output.
Providing packet encoding functions for exchanging data with a remote host.