45 return this->parent_->state == check_state;
void play(Ts... x) override
bool check(Ts... x) override
void play(Ts... x) override
LockState state
The current reported state of the lock.
void play(Ts... x) override
TEMPLATABLE_VALUE(LockState, state) void play(Ts... x) override
LockCondition(Lock *parent, bool state)
LockLockTrigger(Lock *a_lock)
void add_on_state_callback(std::function< void()> &&callback)
Set callback for state changes.
void lock()
Turn this lock on.
LockPublishAction(Lock *a_lock)
Base class for all automation conditions.
LockUnlockTrigger(Lock *a_lock)
UnlockAction(Lock *a_lock)
void open()
Open (unlatch) this lock.
Implementation of SPI Controller mode.
void unlock()
Turn this lock off.
LockState
Enum for all states a lock can be in.
Base class for all locks.
void publish_state(LockState state)
Publish a state to the front-end from the back-end.