|
ESPHome 2025.12.0-dev
|
#include <nextion_component.h>
Data Structures | |
| struct | ComponentState |
| Component state management using compact bitfield structure. More... | |
Public Member Functions | |
| void | update_component_settings () override |
| void | update_component_settings (bool force_update) override |
| void | set_background_color (Color bco) |
| void | set_background_pressed_color (Color bco2) |
| void | set_foreground_color (Color pco) |
| void | set_foreground_pressed_color (Color pco2) |
| void | set_font_id (uint8_t font_id) |
| void | set_visible (bool visible) |
Public Member Functions inherited from esphome::nextion::NextionComponentBase | |
| virtual | ~NextionComponentBase ()=default |
| void | set_variable_name (const std::string &variable_name, const std::string &variable_name_to_send="") |
| virtual void | update_component () |
| virtual void | process_sensor (const std::string &variable_name, int state) |
| virtual void | process_touch (uint8_t page_id, uint8_t component_id, bool on) |
| virtual void | process_text (const std::string &variable_name, const std::string &text_value) |
| virtual void | process_bool (const std::string &variable_name, bool on) |
| virtual void | set_state (float state) |
| virtual void | set_state (float state, bool publish) |
| virtual void | set_state (float state, bool publish, bool send_to_nextion) |
| virtual void | set_state (bool state) |
| virtual void | set_state (bool state, bool publish) |
| virtual void | set_state (bool state, bool publish, bool send_to_nextion) |
| virtual void | set_state (const std::string &state) |
| virtual void | set_state (const std::string &state, bool publish) |
| virtual void | set_state (const std::string &state, bool publish, bool send_to_nextion) |
| uint8_t | get_component_id () |
| void | set_component_id (uint8_t component_id) |
| uint8_t | get_wave_channel_id () |
| void | set_wave_channel_id (uint8_t wave_chan_id) |
| std::vector< uint8_t > | get_wave_buffer () |
| size_t | get_wave_buffer_size () |
| void | clear_wave_buffer (size_t buffer_sent) |
| std::string | get_variable_name () |
| std::string | get_variable_name_to_send () |
| virtual NextionQueueType | get_queue_type () |
| virtual std::string | get_queue_type_string () |
| virtual void | set_state_from_int (int state_value, bool publish, bool send_to_nextion) |
| virtual void | set_state_from_string (const std::string &state_value, bool publish, bool send_to_nextion) |
| virtual void | send_state_to_nextion () |
| bool | get_needs_to_send_update () |
| uint8_t | get_wave_chan_id () |
| void | set_wave_max_length (int wave_max_length) |
Protected Member Functions | |
| NextionComponent () | |
| Constructor initializes component state with visible=true (default state) | |
Protected Attributes | |
| NextionBase * | nextion_ |
| Color | bco_ |
| Color | bco2_ |
| Color | pco_ |
| Color | pco2_ |
| uint8_t | font_id_ = 0 |
| struct esphome::nextion::NextionComponent::ComponentState | component_flags_ |
Protected Attributes inherited from esphome::nextion::NextionComponentBase | |
| std::string | variable_name_ |
| std::string | variable_name_to_send_ |
| uint8_t | component_id_ = 0 |
| uint8_t | wave_chan_id_ = UINT8_MAX |
| std::vector< uint8_t > | wave_buffer_ |
| int | wave_max_length_ = 255 |
| bool | needs_to_send_update_ |
Definition at line 10 of file nextion_component.h.
|
inlineprotected |
Constructor initializes component state with visible=true (default state)
Definition at line 27 of file nextion_component.h.
| void esphome::nextion::NextionComponent::set_background_color | ( | Color | bco | ) |
Definition at line 6 of file nextion_component.cpp.
| void esphome::nextion::NextionComponent::set_background_pressed_color | ( | Color | bco2 | ) |
Definition at line 16 of file nextion_component.cpp.
| void esphome::nextion::NextionComponent::set_font_id | ( | uint8_t | font_id | ) |
Definition at line 47 of file nextion_component.cpp.
| void esphome::nextion::NextionComponent::set_foreground_color | ( | Color | pco | ) |
Definition at line 27 of file nextion_component.cpp.
| void esphome::nextion::NextionComponent::set_foreground_pressed_color | ( | Color | pco2 | ) |
Definition at line 37 of file nextion_component.cpp.
| void esphome::nextion::NextionComponent::set_visible | ( | bool | visible | ) |
Definition at line 57 of file nextion_component.cpp.
|
inlineoverridevirtual |
Reimplemented from esphome::nextion::NextionComponentBase.
Definition at line 12 of file nextion_component.h.
|
overridevirtual |
Reimplemented from esphome::nextion::NextionComponentBase.
Definition at line 67 of file nextion_component.cpp.
|
protected |
Definition at line 36 of file nextion_component.h.
|
protected |
Definition at line 35 of file nextion_component.h.
|
protected |
|
protected |
Definition at line 39 of file nextion_component.h.
|
protected |
Definition at line 32 of file nextion_component.h.
|
protected |
Definition at line 38 of file nextion_component.h.
|
protected |
Definition at line 37 of file nextion_component.h.