ESPHome  2024.3.2
Public Member Functions | Data Fields
esphome::cover::CoverRestoreState Struct Reference

Struct used to store the restored state of a cover. More...

#include <cover.h>

Public Member Functions

CoverCall to_call (Cover *cover)
 Convert this struct to a cover call that can be performed. More...
 
void apply (Cover *cover)
 Apply these settings to the cover. More...
 

Data Fields

float position
 
float tilt
 

Detailed Description

Struct used to store the restored state of a cover.

Definition at line 69 of file cover.h.

Member Function Documentation

◆ apply()

void esphome::cover::CoverRestoreState::apply ( Cover cover)

Apply these settings to the cover.

Definition at line 219 of file cover.cpp.

◆ to_call()

CoverCall esphome::cover::CoverRestoreState::to_call ( Cover cover)

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

Definition at line 211 of file cover.cpp.

Field Documentation

◆ position

float esphome::cover::CoverRestoreState::position

Definition at line 70 of file cover.h.

◆ tilt

float esphome::cover::CoverRestoreState::tilt

Definition at line 71 of file cover.h.


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