mirror of
https://github.com/esphome/esphome.git
synced 2026-10-11 13:54:12 +00:00
45 lines
835 B
YAML
45 lines
835 B
YAML
---
|
|
esphome:
|
|
name: test
|
|
|
|
esp32:
|
|
board: nodemcu-32s
|
|
|
|
logger:
|
|
|
|
binary_sensor:
|
|
- platform: template
|
|
id: single_and
|
|
on_press:
|
|
- if:
|
|
condition:
|
|
- lambda: return true;
|
|
then:
|
|
- logger.log: single and
|
|
- platform: template
|
|
id: single_or
|
|
on_press:
|
|
- if:
|
|
any:
|
|
- lambda: return true;
|
|
then:
|
|
- logger.log: single or
|
|
- platform: template
|
|
id: double_and
|
|
on_press:
|
|
- if:
|
|
condition:
|
|
- lambda: return true;
|
|
- lambda: return false;
|
|
then:
|
|
- logger.log: double and
|
|
- platform: template
|
|
id: single_xor
|
|
on_press:
|
|
- if:
|
|
condition:
|
|
xor:
|
|
- lambda: return true;
|
|
then:
|
|
- logger.log: single xor
|