Add filtair.yml
This commit is contained in:
parent
6348377ce9
commit
9c6ea1254e
1 changed files with 46 additions and 0 deletions
46
filtair.yml
Normal file
46
filtair.yml
Normal 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
|
Loading…
Add table
Reference in a new issue