Base class for all switches.
void write_state(bool state) override
void dump_config() override
void set_ota(ota::OTAComponent *ota)
bool state
The current reported state of the binary sensor.
OTAComponent provides a simple way to integrate Over-the-Air updates into your app using ArduinoOTA...