void set_parent(Pipsolar *parent)
const char * off_command_
void dump_config() override
void set_off_command(const char *command)
void set_on_command(const std::string &command)=delete
Prevent accidental use of std::string which would dangle.
void set_off_command(const std::string &command)=delete
void write_state(bool state) override
void set_on_command(const char *command)
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.