void set_parent(Pipsolar *parent)
void dump_config() override
void set_on_command(const std::string &command)
void set_off_command(const std::string &command)
void write_state(bool state) 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.