|
ESPHome 2025.12.0-dev
|
#include <fan.h>
Public Member Functions | |
| FanCall (Fan &parent) | |
| FanCall & | set_state (bool binary_state) |
| FanCall & | set_state (optional< bool > binary_state) |
| optional< bool > | get_state () const |
| FanCall & | set_oscillating (bool oscillating) |
| FanCall & | set_oscillating (optional< bool > oscillating) |
| optional< bool > | get_oscillating () const |
| FanCall & | set_speed (int speed) |
| optional< int > | get_speed () const |
| FanCall & | set_direction (FanDirection direction) |
| FanCall & | set_direction (optional< FanDirection > direction) |
| optional< FanDirection > | get_direction () const |
| FanCall & | set_preset_mode (const std::string &preset_mode) |
| FanCall & | set_preset_mode (const char *preset_mode) |
| const char * | get_preset_mode () const |
| bool | has_preset_mode () const |
| void | perform () |
Protected Member Functions | |
| void | validate_ () |
Protected Attributes | |
| Fan & | parent_ |
| optional< bool > | binary_state_ |
| optional< bool > | oscillating_ |
| optional< int > | speed_ |
| optional< FanDirection > | direction_ {} |
| const char * | preset_mode_ {nullptr} |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| FanCall & esphome::fan::FanCall::set_preset_mode | ( | const char * | preset_mode | ) |
| FanCall & esphome::fan::FanCall::set_preset_mode | ( | const std::string & | preset_mode | ) |
|
inline |
|
protected |
|
protected |