ESPHome
2024.11.0
|
#include <number_traits.h>
Public Member Functions | |
void | set_min_value (float min_value) |
float | get_min_value () const |
void | set_max_value (float max_value) |
float | get_max_value () const |
void | set_step (float step) |
float | get_step () const |
void | set_mode (NumberMode mode) |
NumberMode | get_mode () const |
Public Member Functions inherited from esphome::EntityBase_DeviceClass | |
std::string | get_device_class () |
Get the device class, using the manual override if set. More... | |
void | set_device_class (const char *device_class) |
Manually set the device class. More... | |
Public Member Functions inherited from esphome::EntityBase_UnitOfMeasurement | |
std::string | get_unit_of_measurement () |
Get the unit of measurement, using the manual override if set. More... | |
void | set_unit_of_measurement (const char *unit_of_measurement) |
Manually set the unit of measurement. More... | |
Protected Attributes | |
float | min_value_ = NAN |
float | max_value_ = NAN |
float | step_ = NAN |
NumberMode | mode_ {NUMBER_MODE_AUTO} |
Protected Attributes inherited from esphome::EntityBase_DeviceClass | |
const char * | device_class_ {nullptr} |
Device class override. More... | |
Protected Attributes inherited from esphome::EntityBase_UnitOfMeasurement | |
const char * | unit_of_measurement_ {nullptr} |
Unit of measurement override. More... | |
Definition at line 15 of file number_traits.h.
|
inline |
Definition at line 21 of file number_traits.h.
|
inline |
Definition at line 19 of file number_traits.h.
|
inline |
Definition at line 29 of file number_traits.h.
|
inline |
Definition at line 25 of file number_traits.h.
|
inline |
Definition at line 20 of file number_traits.h.
|
inline |
Definition at line 18 of file number_traits.h.
|
inline |
Definition at line 28 of file number_traits.h.
|
inline |
Definition at line 24 of file number_traits.h.
|
protected |
Definition at line 33 of file number_traits.h.
|
protected |
Definition at line 32 of file number_traits.h.
|
protected |
Definition at line 35 of file number_traits.h.
|
protected |
Definition at line 34 of file number_traits.h.