8 static const char *
const TAG =
"nextion_binarysensor";
19 ESP_LOGD(TAG,
"Processed binarysensor \"%s\" state %s", variable_name.c_str(), state ?
"ON" :
"OFF");
46 if (send_to_nextion) {
64 ESP_LOGN(TAG,
"Wrote state for sensor \"%s\" state %s", this->
variable_name_.c_str(),
std::string variable_name_
void update_component_settings() override
bool needs_to_send_update_
virtual bool is_updating()
void process_bool(const std::string &variable_name, bool state) override
virtual void add_to_get_queue(NextionComponentBase *component)=0
bool state
The current reported state of the binary sensor.
void publish_state(bool state)
Publish a new state to the front-end.
void process_touch(uint8_t page_id, uint8_t component_id, bool state) override
void set_state(bool state) override
Implementation of SPI Controller mode.
virtual void add_no_result_to_queue_with_set(NextionComponentBase *component, int32_t state_value)=0