mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 07:50:21 +00:00
[lock] Use register_apply_condition for lock.is_locked and lock.is_unlocked (#19559)
This commit is contained in:
@@ -4,6 +4,16 @@ esphome:
|
||||
- lock.lock: test_lock1
|
||||
- lock.unlock: test_lock1
|
||||
- lock.open: test_lock1
|
||||
- if:
|
||||
condition:
|
||||
lock.is_locked: test_lock1
|
||||
then:
|
||||
- logger.log: locked
|
||||
- if:
|
||||
condition:
|
||||
lock.is_unlocked: test_lock1
|
||||
then:
|
||||
- logger.log: unlocked
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
|
||||
Reference in New Issue
Block a user