51 lines
935 B
YAML
51 lines
935 B
YAML
|
|
esphome:
|
||
|
|
name: 3d-print-exhaust-fan-controller
|
||
|
|
friendly_name: 3D Printer Exhaust Fan Controller
|
||
|
|
|
||
|
|
esp32:
|
||
|
|
board: esp32-c3-devkitm-1
|
||
|
|
framework:
|
||
|
|
type: esp-idf
|
||
|
|
|
||
|
|
# Enable logging
|
||
|
|
logger:
|
||
|
|
|
||
|
|
# Enable Home Assistant API
|
||
|
|
api:
|
||
|
|
encryption:
|
||
|
|
key: "/ShmmPWizefVS7KaU/IgbNgT6/Y6XZBwlqHqbpphNY8="
|
||
|
|
|
||
|
|
ota:
|
||
|
|
- platform: esphome
|
||
|
|
password: "bc4dc6b8569529e2954176f08a8d38de"
|
||
|
|
|
||
|
|
wifi:
|
||
|
|
ssid: !secret wifi_iot_ssid
|
||
|
|
password: !secret wifi_password
|
||
|
|
|
||
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||
|
|
ap:
|
||
|
|
ssid: "3D-Print-Exhaust-Fan-Controller"
|
||
|
|
password: "BkRoiHuVvDyR"
|
||
|
|
|
||
|
|
captive_portal:
|
||
|
|
|
||
|
|
web_server:
|
||
|
|
port: 80
|
||
|
|
|
||
|
|
output:
|
||
|
|
- platform: gpio
|
||
|
|
pin: GPIO3
|
||
|
|
id: fan_80mm_output
|
||
|
|
- platform: gpio
|
||
|
|
pin: GPIO4
|
||
|
|
id: fan_120mm_output
|
||
|
|
|
||
|
|
fan:
|
||
|
|
- platform: binary
|
||
|
|
name: "80mm Exhaust Fan"
|
||
|
|
output: fan_80mm_output
|
||
|
|
- platform: binary
|
||
|
|
name: "120mm Exhaust Fan"
|
||
|
|
output: fan_120mm_output
|
||
|
|
|