Files
esphome-config/common/binary_sensors/power_button_inverted.yaml
T
2019-12-13 13:30:35 -08:00

13 lines
194 B
YAML

---
platform: gpio
pin:
number: $button_gpio
mode: INPUT_PULLUP
inverted: True
id: ${id}_button
internal: true
on_press:
- switch.toggle: relay
filters:
- delayed_on: 10ms