ESPHome  2024.12.2
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
 
uint8_t preset_mode
 

Detailed Description

Definition at line 94 of file fan.h.

Member Function Documentation

◆ apply()

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

Apply these settings to the fan.

Definition at line 95 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 79 of file fan.cpp.

Field Documentation

◆ direction

FanDirection esphome::fan::FanRestoreState::direction

Definition at line 98 of file fan.h.

◆ oscillating

bool esphome::fan::FanRestoreState::oscillating

Definition at line 97 of file fan.h.

◆ preset_mode

uint8_t esphome::fan::FanRestoreState::preset_mode

Definition at line 99 of file fan.h.

◆ speed

int esphome::fan::FanRestoreState::speed

Definition at line 96 of file fan.h.

◆ state

bool esphome::fan::FanRestoreState::state

Definition at line 95 of file fan.h.


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