esphome: name: filtair esp32: board: nodemcu-32s framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: password: !secret ota_password ota: password: !secret ota_password wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Filtair Fallback Hotspot" password: "SECRET" captive_portal: switch: - platform: gpio id: relay pin: GPIO17 binary_sensor: - platform: gpio name: button pin: number: GPIO4 inverted: true mode: input: true pullup: true on_press: then: - switch.toggle: relay