#include <valve.h>
Definition at line 29 of file valve.h.
◆ ValveCall()
| esphome::valve::ValveCall::ValveCall |
( |
Valve * | parent | ) |
|
◆ get_position()
| const optional< float > & esphome::valve::ValveCall::get_position |
( |
| ) |
const |
◆ get_stop()
| bool esphome::valve::ValveCall::get_stop |
( |
| ) |
const |
◆ get_toggle()
| const optional< bool > & esphome::valve::ValveCall::get_toggle |
( |
| ) |
const |
◆ perform()
| void esphome::valve::ValveCall::perform |
( |
| ) |
|
Perform the valve call.
Definition at line 74 of file valve.cpp.
◆ set_command()
| ValveCall & esphome::valve::ValveCall::set_command |
( |
const char * | command | ) |
|
Set the command as a string, "STOP", "OPEN", "CLOSE", "TOGGLE".
Definition at line 40 of file valve.cpp.
◆ set_command_close()
| ValveCall & esphome::valve::ValveCall::set_command_close |
( |
| ) |
|
Set the command to close the valve.
Definition at line 58 of file valve.cpp.
◆ set_command_open()
| ValveCall & esphome::valve::ValveCall::set_command_open |
( |
| ) |
|
Set the command to open the valve.
Definition at line 54 of file valve.cpp.
◆ set_command_stop()
| ValveCall & esphome::valve::ValveCall::set_command_stop |
( |
| ) |
|
Set the command to stop the valve.
Definition at line 62 of file valve.cpp.
◆ set_command_toggle()
| ValveCall & esphome::valve::ValveCall::set_command_toggle |
( |
| ) |
|
Set the command to toggle the valve.
Definition at line 66 of file valve.cpp.
◆ set_position()
| ValveCall & esphome::valve::ValveCall::set_position |
( |
float | position | ) |
|
Set the call to a certain target position.
Definition at line 70 of file valve.cpp.
◆ set_stop()
| ValveCall & esphome::valve::ValveCall::set_stop |
( |
bool | stop | ) |
|
Set whether this valve call should stop the valve.
Definition at line 124 of file valve.cpp.
◆ validate_()
| void esphome::valve::ValveCall::validate_ |
( |
| ) |
|
|
protected |
◆ parent_
| Valve* esphome::valve::ValveCall::parent_ |
|
protected |
◆ position_
| optional<float> esphome::valve::ValveCall::position_ {} |
|
protected |
◆ stop_
| bool esphome::valve::ValveCall::stop_ {false} |
|
protected |
◆ toggle_
| optional<bool> esphome::valve::ValveCall::toggle_ {} |
|
protected |
The documentation for this class was generated from the following files: