7static const char *
const TAG =
"output.lock";
12 auto state_val =
call.get_state();
13 if (!state_val.has_value())
15 auto state = *state_val;
This class is used to encode all control actions on a lock device.
void publish_state(LockState state)
Publish a state to the front-end from the back-end.
LockState state
The current reported state of the lock.
virtual void turn_off()
Disable this binary output.
virtual void turn_on()
Enable this binary output.
output::BinaryOutput * output_
void dump_config() override
void control(const lock::LockCall &call) override
Providing packet encoding functions for exchanging data with a remote host.