ESPHome
2023.11.6
|
#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) |
ESPDEPRECATED ("set_speed() with string argument is deprecated, use integer argument instead.", "2021.9") FanCall &set_speed(const char *legacy_speed) | |
optional< int > | get_speed () const |
FanCall & | set_direction (FanDirection direction) |
FanCall & | set_direction (optional< FanDirection > direction) |
optional< FanDirection > | get_direction () 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_ {} |
esphome::fan::FanCall::ESPDEPRECATED | ( | "set_speed() with string argument is | deprecated, |
use integer argument instead." | , | ||
"2021.9" | |||
) | const & |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |