ESPHome  2024.12.2
Public Member Functions | Protected Attributes
esphome::micronova::MicroNovaNumber Class Reference

#include <micronova_number.h>

Inheritance diagram for esphome::micronova::MicroNovaNumber:
esphome::number::Number esphome::micronova::MicroNovaSensorListener esphome::EntityBase esphome::micronova::MicroNovaBaseListener

Public Member Functions

 MicroNovaNumber ()
 
 MicroNovaNumber (MicroNova *m)
 
void dump_config () override
 
void control (float value) override
 
void request_value_from_stove () override
 
void process_value_from_stove (int value_from_stove) override
 
void set_memory_write_location (uint8_t l)
 
uint8_t get_memory_write_location ()
 
- Public Member Functions inherited from esphome::number::Number
void publish_state (float state)
 
NumberCall make_call ()
 
void add_on_state_callback (std::function< void(float)> &&callback)
 
bool has_state () const
 Return whether this number has gotten a full state yet. More...
 
- Public Member Functions inherited from esphome::EntityBase
const StringRefget_name () const
 
void set_name (const char *name)
 
bool has_own_name () const
 
std::string get_object_id () const
 
void set_object_id (const char *object_id)
 
uint32_t get_object_id_hash ()
 
bool is_internal () const
 
void set_internal (bool internal)
 
bool is_disabled_by_default () const
 
void set_disabled_by_default (bool disabled_by_default)
 
EntityCategory get_entity_category () const
 
void set_entity_category (EntityCategory entity_category)
 
std::string get_icon () const
 
void set_icon (const char *icon)
 
- Public Member Functions inherited from esphome::micronova::MicroNovaSensorListener
 MicroNovaSensorListener ()
 
 MicroNovaSensorListener (MicroNova *m)
 
void set_needs_update (bool u)
 
bool get_needs_update ()
 
- Public Member Functions inherited from esphome::micronova::MicroNovaBaseListener
 MicroNovaBaseListener ()
 
 MicroNovaBaseListener (MicroNova *m)
 
void set_micronova_object (MicroNova *m)
 
void set_function (MicroNovaFunctions f)
 
MicroNovaFunctions get_function ()
 
void set_memory_location (uint8_t l)
 
uint8_t get_memory_location ()
 
void set_memory_address (uint8_t a)
 
uint8_t get_memory_address ()
 

Protected Attributes

uint8_t memory_write_location_ = 0
 
- Protected Attributes inherited from esphome::number::Number
CallbackManager< void(float)> state_callback_
 
bool has_state_ {false}
 
- Protected Attributes inherited from esphome::EntityBase
StringRef name_
 
const char * object_id_c_str_ {nullptr}
 
const char * icon_c_str_ {nullptr}
 
uint32_t object_id_hash_
 
bool has_own_name_ {false}
 
bool internal_ {false}
 
bool disabled_by_default_ {false}
 
EntityCategory entity_category_ {ENTITY_CATEGORY_NONE}
 
- Protected Attributes inherited from esphome::micronova::MicroNovaSensorListener
bool needs_update_ = false
 
- Protected Attributes inherited from esphome::micronova::MicroNovaBaseListener
MicroNovamicronova_ {nullptr}
 
MicroNovaFunctions function_ = MicroNovaFunctions::STOVE_FUNCTION_VOID
 
uint8_t memory_location_ = 0
 
uint8_t memory_address_ = 0
 

Additional Inherited Members

- Data Fields inherited from esphome::number::Number
float state
 
NumberTraits traits
 
- Protected Member Functions inherited from esphome::EntityBase
virtual uint32_t hash_base ()
 The hash_base() function has been deprecated. More...
 
void calc_object_id_ ()
 

Detailed Description

Definition at line 9 of file micronova_number.h.

Constructor & Destructor Documentation

◆ MicroNovaNumber() [1/2]

esphome::micronova::MicroNovaNumber::MicroNovaNumber ( )
inline

Definition at line 11 of file micronova_number.h.

◆ MicroNovaNumber() [2/2]

esphome::micronova::MicroNovaNumber::MicroNovaNumber ( MicroNova m)
inline

Definition at line 12 of file micronova_number.h.

Member Function Documentation

◆ control()

void esphome::micronova::MicroNovaNumber::control ( float  value)
overridevirtual

Implements esphome::number::Number.

Definition at line 27 of file micronova_number.cpp.

◆ dump_config()

void esphome::micronova::MicroNovaNumber::dump_config ( )
inlineoverridevirtual

Reimplemented from esphome::micronova::MicroNovaBaseListener.

Definition at line 13 of file micronova_number.h.

◆ get_memory_write_location()

uint8_t esphome::micronova::MicroNovaNumber::get_memory_write_location ( )
inline

Definition at line 21 of file micronova_number.h.

◆ process_value_from_stove()

void esphome::micronova::MicroNovaNumber::process_value_from_stove ( int  value_from_stove)
overridevirtual

Implements esphome::micronova::MicroNovaSensorListener.

Definition at line 6 of file micronova_number.cpp.

◆ request_value_from_stove()

void esphome::micronova::MicroNovaNumber::request_value_from_stove ( )
inlineoverridevirtual

Implements esphome::micronova::MicroNovaSensorListener.

Definition at line 15 of file micronova_number.h.

◆ set_memory_write_location()

void esphome::micronova::MicroNovaNumber::set_memory_write_location ( uint8_t  l)
inline

Definition at line 20 of file micronova_number.h.

Field Documentation

◆ memory_write_location_

uint8_t esphome::micronova::MicroNovaNumber::memory_write_location_ = 0
protected

Definition at line 24 of file micronova_number.h.


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