17 void process_bool(
const std::string &variable_name,
bool on)
override;
21 void set_state(
bool state,
bool publish,
bool send_to_nextion)
override;
27 this->
set_state(state_value != 0, publish, send_to_nextion);
This class simplifies creating components that periodically check a state.
void set_state_from_int(int state_value, bool publish, bool send_to_nextion) override
NextionQueueType get_queue_type() override
void write_state(bool state) override
void process_bool(const std::string &variable_name, bool on) override
NextionSwitch(NextionBase *nextion)
void send_state_to_nextion() override
void update_component() override
void set_state(bool state) override
void set_state_from_string(const std::string &state_value, bool publish, bool send_to_nextion) override
void set_state(bool state, bool publish) override
Base class for all switches.
bool state
The current reported state of the binary sensor.
Providing packet encoding functions for exchanging data with a remote host.