32 void setup()
override;
void write_state(bool state) override
void set_pulse_length(uint32_t pulse_length)
void set_on_pin(GPIOPin *pin)
void set_optimistic(bool optimistic)
void set_wait_time(uint32_t wait_time)
void set_off_pin(GPIOPin *pin)
void dump_config() override
float get_setup_priority() const override
Base class for all switches.
bool state
The current reported state of the binary sensor.
@ RELAY_STATE_SWITCHING_ON
@ RELAY_STATE_SWITCHING_OFF
Providing packet encoding functions for exchanging data with a remote host.