7namespace homeassistant {
12 void setup()
override;
void set_entity_id(const std::string &entity_id)
void write_state(bool state) override
float get_setup_priority() const override
void dump_config() 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.