59 lines
822 B
YAML
59 lines
822 B
YAML
esphome:
|
|
name: thermostat
|
|
|
|
esp32:
|
|
board: upesy_wroom
|
|
framework:
|
|
type: arduino
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
password: ""
|
|
|
|
ota:
|
|
password: ""
|
|
|
|
wifi:
|
|
ssid: "Cochrun"
|
|
password: "GreasyChicken784"
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Thermostat Fallback Hotspot"
|
|
password: "RUfAhbEfZmOU"
|
|
|
|
captive_portal:
|
|
|
|
i2c:
|
|
sda: GPIO21
|
|
scl: GPIO22
|
|
scan: true
|
|
id: bus_a
|
|
|
|
sensor:
|
|
- platform: bme280_i2c
|
|
temperature:
|
|
name: "Temperature"
|
|
id: temperature
|
|
pressure:
|
|
name: "Pressure"
|
|
humidity:
|
|
name: "Humidity"
|
|
i2c_id: bus_a
|
|
address: 0x76
|
|
|
|
|
|
switch:
|
|
- platform: gpio
|
|
pin: 15
|
|
id: heater
|
|
- platform: gpio
|
|
pin: 16
|
|
id: ac
|
|
- platform: gpio
|
|
pin: 17
|
|
id: fan
|
|
|