ESPHome  2022.6.3
Public Member Functions | Data Fields
esphome::fan::FanRestoreState Struct Reference

#include <fan.h>

Public Member Functions

FanCall to_call (Fan &fan)
 Convert this struct to a fan call that can be performed. More...
 
void apply (Fan &fan)
 Apply these settings to the fan. More...
 

Data Fields

bool state
 
int speed
 
bool oscillating
 
FanDirection direction
 

Detailed Description

Definition at line 88 of file fan.h.

Member Function Documentation

◆ apply()

void esphome::fan::FanRestoreState::apply ( Fan fan)

Apply these settings to the fan.

Definition at line 71 of file fan.cpp.

◆ to_call()

FanCall esphome::fan::FanRestoreState::to_call ( Fan fan)

Convert this struct to a fan call that can be performed.

Definition at line 63 of file fan.cpp.

Field Documentation

◆ direction

FanDirection esphome::fan::FanRestoreState::direction

Definition at line 92 of file fan.h.

◆ oscillating

bool esphome::fan::FanRestoreState::oscillating

Definition at line 91 of file fan.h.

◆ speed

int esphome::fan::FanRestoreState::speed

Definition at line 90 of file fan.h.

◆ state

bool esphome::fan::FanRestoreState::state

Definition at line 89 of file fan.h.


The documentation for this struct was generated from the following files: