commit dd284d7c787a88f8af8a5f826409f08f0368e561 Author: Chris Cochrun Date: Tue Jul 2 13:11:25 2024 -0500 initial commit of my esphome devices diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d8b4157 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Gitignore settings for ESPHome +# This is an example and may include too much for your use-case. +# You can modify this file to suit your needs. +/.esphome/ +/secrets.yaml diff --git a/thermostat.yml b/thermostat.yml new file mode 100644 index 0000000..646d7a9 --- /dev/null +++ b/thermostat.yml @@ -0,0 +1,59 @@ +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 +