mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-03-03 07:14:10 +01:00
10 lines
232 B
YAML
10 lines
232 B
YAML
- if:
|
|
condition:
|
|
and:
|
|
- switch.is_on: ${enable_id}
|
|
- switch.is_on: auto_close
|
|
- lambda: 'return id(beacon_count) == 1;'
|
|
then:
|
|
- button.press: gate_close
|
|
- lambda: 'id(beacon_count) -= 1;'
|