ESPHome  2024.11.1
Public Member Functions
esphome::micronova::MicroNovaTextSensor Class Reference

#include <micronova_text_sensor.h>

Inheritance diagram for esphome::micronova::MicroNovaTextSensor:
esphome::text_sensor::TextSensor esphome::micronova::MicroNovaSensorListener esphome::EntityBase esphome::EntityBase_DeviceClass esphome::micronova::MicroNovaBaseListener

Public Member Functions

 MicroNovaTextSensor (MicroNova *m)
 
void dump_config () override
 
void request_value_from_stove () override
 
void process_value_from_stove (int value_from_stove) override
 
- Public Member Functions inherited from esphome::text_sensor::TextSensor
std::string get_state () const
 Getter-syntax for .state. More...
 
std::string get_raw_state () const
 Getter-syntax for .raw_state. More...
 
void publish_state (const std::string &state)
 
void add_filter (Filter *filter)
 Add a filter to the filter chain. Will be appended to the back. More...
 
void add_filters (const std::vector< Filter *> &filters)
 Add a list of vectors to the back of the filter chain. More...
 
void set_filters (const std::vector< Filter *> &filters)
 Clear the filters and replace them by filters. More...
 
void clear_filters ()
 Clear the entire filter chain. More...
 
void add_on_state_callback (std::function< void(std::string)> callback)
 
void add_on_raw_state_callback (std::function< void(std::string)> callback)
 Add a callback that will be called every time the sensor sends a raw value. More...
 
virtual std::string unique_id ()
 Override this method to set the unique ID of this sensor. More...
 
bool has_state ()
 
void internal_send_state_to_frontend (const std::string &state)
 
- 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::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::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 ()
 

Additional Inherited Members

- Data Fields inherited from esphome::text_sensor::TextSensor
std::string state
 
std::string raw_state
 
- Protected Member Functions inherited from esphome::EntityBase
virtual uint32_t hash_base ()
 The hash_base() function has been deprecated. More...
 
void calc_object_id_ ()
 
- Protected Attributes inherited from esphome::text_sensor::TextSensor
CallbackManager< void(std::string)> raw_callback_
 Storage for raw state callbacks. More...
 
CallbackManager< void(std::string)> callback_
 Storage for filtered state callbacks. More...
 
Filterfilter_list_ {nullptr}
 Store all active filters. More...
 
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::EntityBase_DeviceClass
const char * device_class_ {nullptr}
 Device class override. More...
 
- 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
 

Detailed Description

Definition at line 9 of file micronova_text_sensor.h.

Constructor & Destructor Documentation

◆ MicroNovaTextSensor()

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

Definition at line 11 of file micronova_text_sensor.h.

Member Function Documentation

◆ dump_config()

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

Reimplemented from esphome::micronova::MicroNovaBaseListener.

Definition at line 12 of file micronova_text_sensor.h.

◆ process_value_from_stove()

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

◆ request_value_from_stove()

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

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