void dump_config() override
void control(const lock::LockCall &call) override
This class is used to encode all control actions on a lock device.
LockCall & set_state(LockState state)
Set the state of the lock device.
LockCall make_call()
Make a lock device control call, this is used to control the lock device, see the LockCall descriptio...
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.
void add_on_state_callback(F &&callback)
Set callback for state changes.
ESPHOME_LOG_TAG(TAG, "copy.binary_sensor")
LockState
Enum for all states a lock can be in.