ESPHome 2025.5.0
Loading...
Searching...
No Matches
cover.h File Reference

Go to the source code of this file.

Data Structures

class  esphome::cover::CoverCall
 
struct  esphome::cover::CoverRestoreState
 Struct used to store the restored state of a cover. More...
 
class  esphome::cover::Cover
 Base class for all cover devices. More...
 

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::cover
 

Enumerations

enum  esphome::cover::CoverOperation : uint8_t { esphome::cover::COVER_OPERATION_IDLE = 0 , esphome::cover::COVER_OPERATION_OPENING , esphome::cover::COVER_OPERATION_CLOSING }
 Enum encoding the current operation of a cover. More...
 

Functions

struct esphome::cover::CoverRestoreState esphome::cover::__attribute__ ((packed))
 
CoverCall to_call (Cover *cover)
 Convert this struct to a cover call that can be performed.
 
void apply (Cover *cover)
 Apply these settings to the cover.
 
const char * esphome::cover::cover_operation_to_str (CoverOperation op)
 

Variables

float position
 
float tilt
 
enum esphome::cover::CoverOperation esphome::cover::__attribute__
 

Function Documentation

◆ apply()

void __attribute__::apply ( Cover * cover)

Apply these settings to the cover.

◆ to_call()

CoverCall __attribute__::to_call ( Cover * cover)

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

Variable Documentation

◆ position

float position

Definition at line 0 of file cover.h.

◆ tilt

float tilt

Definition at line 1 of file cover.h.