6PROGMEM_STRING_TABLE(NextionQueueTypeStrings,
"NO_RESULT",
"SENSOR",
"BINARY_SENSOR",
"SWITCH",
"TEXT_SENSOR",
11 return NextionQueueTypeStrings::get_log_str(this->
get_queue_type(), 0);
76 if (this->
nextion_->
is_sleeping() || !this->nextion_->is_setup() || !this->component_flags_.visible_is_set ||
77 (!this->component_flags_.visible_needs_update && !this->component_flags_.visible)) {
85 size_t pos = name_to_send.find_last_of(
'.');
86 if (
pos != std::string::npos) {
87 name_to_send = name_to_send.substr(
pos + 1);
virtual void set_component_foreground_color(const char *component, Color color)=0
virtual void set_component_pressed_background_color(const char *component, Color color)=0
virtual void set_component_background_color(const char *component, Color color)=0
virtual void set_component_font(const char *component, uint8_t font_id)=0
virtual void set_component_visibility(const char *component, bool show)=0
virtual void set_component_pressed_foreground_color(const char *component, Color color)=0
const LogString * get_queue_type_string() const
virtual void send_state_to_nextion()
virtual NextionQueueType get_queue_type() const
std::string variable_name_to_send_
std::string variable_name_
bool needs_to_send_update_
void update_component_settings() override
void set_font_id(uint8_t font_id)
struct esphome::nextion::NextionComponent::ComponentState component_flags_
void set_background_color(Color bco)
void set_visible(bool visible)
void set_background_pressed_color(Color bco2)
void set_foreground_color(Color pco)
void set_foreground_pressed_color(Color pco2)
PROGMEM_STRING_TABLE(NextionQueueTypeStrings, "NO_RESULT", "SENSOR", "BINARY_SENSOR", "SWITCH", "TEXT_SENSOR", "WAVEFORM_SENSOR")
uint16_t bco_needs_update
uint16_t pco2_needs_update
uint16_t pco_needs_update
uint16_t visible_needs_update
uint16_t font_id_needs_update
uint16_t bco2_needs_update