8static const char *
const TAG =
"nextion_binarysensor";
19 ESP_LOGD(TAG,
"Binary sensor: %s=%s", variable_name.c_str(), ONOFF(
state));
46 if (send_to_nextion) {
64 ESP_LOGN(TAG,
"Write: %s=%s", this->
variable_name_.c_str(), ONOFF(this->state));
void set_has_state(bool state)
void publish_state(bool new_state)
Publish a new state to the front-end.
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
void set_state(bool state) override
void process_bool(const std::string &variable_name, bool state) override
void process_touch(uint8_t page_id, uint8_t component_id, bool state) override
std::string variable_name_
bool needs_to_send_update_
void update_component_settings() override
Providing packet encoding functions for exchanging data with a remote host.