diff --git a/filtair.yml b/filtair.yml new file mode 100644 index 0000000..2e6bd5a --- /dev/null +++ b/filtair.yml @@ -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