Files
esphome-config/common/binary_sensors/power_button_inverted.yaml
T
2022-05-27 18:50:07 -07:00

13 lines
182 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