ESPHome  2024.4.0
binary_fan.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace binary {
9 
10 class 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
bool oscillating
The current oscillation state of the fan.
Definition: fan.h:112
output::BinaryOutput * output_
Definition: binary_fan.h:25
FanDirection direction
The current direction of the fan.
Definition: fan.h:116
void set_oscillating(output::BinaryOutput *oscillating)
Definition: binary_fan.h:16
void control(const fan::FanCall &call) override
Definition: binary_fan.cpp:20
void set_output(output::BinaryOutput *output)
Definition: binary_fan.h:15
output::BinaryOutput * oscillating_
Definition: binary_fan.h:26
output::BinaryOutput * direction_
Definition: binary_fan.h:27
fan::FanTraits get_traits() override
Definition: binary_fan.cpp:17
void dump_config() override
Definition: binary_fan.cpp:16
void setup() override
Definition: binary_fan.cpp:9
void set_direction(output::BinaryOutput *direction)
Definition: binary_fan.h:17
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7