esphome / esphome/feature-requests
Lock component to have on_open trigger
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
I wish to be able to execute code when the lock.open action occurs via a lock.on_open trigger.
**Please describe your use case for this integration and alternatives you've tried:**
I'm designing a time lock where a box can only be opened at certain times. The times when the box can be operated are indicated by the lock/unlock status which are updated by a time event. To actually open the box the lock.open action is fired. The on_open function contains the code to fire the GPIO connected solenoid.
Current work around is to bypass the lock.open action and add code elsewhere.
**Additional context**
The documentation doesn't cover the purpose of the lock.open action and any functionality that calling it invokes.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.