ESPHome 2025.5.0
Loading...
Searching...
No Matches
binary_fan.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace binary {
9
10class BinaryFan : public Component, public fan::Fan {
11 public:
12 void setup() override;
13 void dump_config() override;
14
15 void set_output(output::BinaryOutput *output) { this->output_ = output; }
18
19 fan::FanTraits get_traits() override;
20
21 protected:
22 void control(const fan::FanCall &call) override;
23 void write_state_();
24
28};
29
30} // namespace binary
31} // namespace esphome
fan::FanTraits get_traits() override
output::BinaryOutput * oscillating_
Definition binary_fan.h:26
output::BinaryOutput * output_
Definition binary_fan.h:25
void set_output(output::BinaryOutput *output)
Definition binary_fan.h:15
output::BinaryOutput * direction_
Definition binary_fan.h:27
void set_direction(output::BinaryOutput *direction)
Definition binary_fan.h:17
void control(const fan::FanCall &call) override
void dump_config() override
void set_oscillating(output::BinaryOutput *oscillating)
Definition binary_fan.h:16
FanDirection direction
The current direction of the fan.
Definition fan.h:116
bool oscillating
The current oscillation state of the fan.
Definition fan.h:112
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7