8static const char *
const TAG =
"nextion_switch";
16 ESP_LOGD(TAG,
"Switch: %s=%s", variable_name.c_str(), ONOFF(on));
30 if (send_to_nextion) {
virtual void add_no_result_to_queue_with_set(NextionComponentBase *component, int32_t state_value)=0
virtual void add_to_get_queue(NextionComponentBase *component)=0
std::string variable_name_
bool needs_to_send_update_
void update_component_settings() override
void write_state(bool state) override
void process_bool(const std::string &variable_name, bool on) override
void set_state(bool state) override
bool state
The current reported state of the binary sensor.
void publish_state(bool state)
Publish a state to the front-end from the back-end.
Providing packet encoding functions for exchanging data with a remote host.