Add filtair.yml

This commit is contained in:
cybrwshl 2025-03-23 18:22:27 +01:00
parent 6348377ce9
commit 9c6ea1254e

46
filtair.yml Normal file
View file

@ -0,0 +1,46 @@
esphome:
name: filtair
esp32:
board: nodemcu-32s
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret ota_pass
ota:
password: !secret ota_pass
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