ESPHome  2024.11.0
Public Member Functions | Data Fields
esphome::valve::ValveRestoreState Struct Reference

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

#include <valve.h>

Public Member Functions

ValveCall to_call (Valve *valve)
 Convert this struct to a valve call that can be performed. More...
 
void apply (Valve *valve)
 Apply these settings to the valve. More...
 

Data Fields

float position
 

Detailed Description

Struct used to store the restored state of a valve.

Definition at line 65 of file valve.h.

Member Function Documentation

◆ apply()

void esphome::valve::ValveRestoreState::apply ( Valve valve)

Apply these settings to the valve.

Definition at line 173 of file valve.cpp.

◆ to_call()

ValveCall esphome::valve::ValveRestoreState::to_call ( Valve valve)

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

Definition at line 168 of file valve.cpp.

Field Documentation

◆ position

float esphome::valve::ValveRestoreState::position

Definition at line 66 of file valve.h.


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