Esphome binnary sensor delay

I just want to add a delay to the code below (I am using ESP32)

binary_sensor:

  • platform: gpio

    pin:

    number: 32

    mode: INPUT_PULLUP

    inverted: True

    name: “EDL Presence”

    device_class: power

Please format you post correctly: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

You can use the delay_on or delay_off filters. Or both.

See: Binary Sensor Component — ESPHome

1 Like