mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-03-03 07:14:10 +01:00
Templated gate beacon on_press and on_release
This commit is contained in:
9
common/gate_beacon_open.yaml
Normal file
9
common/gate_beacon_open.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
- lambda: 'id(beacon_count) += 1;'
|
||||
- if:
|
||||
condition:
|
||||
and:
|
||||
- switch.is_on: ${enable_id}
|
||||
- switch.is_on: auto_open
|
||||
- lambda: 'return id(beacon_count) == 1;'
|
||||
then:
|
||||
- button.press: gate_open
|
||||
Reference in New Issue
Block a user