using 2 esp32s for thermostat system

This commit is contained in:
Chris Cochrun 2025-07-14 12:53:15 -05:00
parent db0b5bf77d
commit c063bac416
3 changed files with 134 additions and 107 deletions

59
relay.yml Normal file
View file

@ -0,0 +1,59 @@
esphome:
name: relay-test
esp32:
board: nodemcu-32s
framework:
type: arduino
# Enable logging
logger:
ota:
- platform: esphome
password: ""
wifi:
ssid: "Cochrun"
password: "GreasyChicken784"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Kitchen Fallback Hotspot"
password: "RUfAhbEfZmOU"
api:
password: ""
captive_portal:
switch:
- platform: gpio
name: heat
pin:
number: 0
mode:
output: true
input: false
inverted: false
id: heater
- platform: gpio
name: cool
pin:
number: 4
mode:
output: true
input: false
open_drain: false
inverted: false
id: ac
- platform: gpio
name: fan
pin:
number: 16
mode:
output: true
input: false
open_drain: false
inverted: false
id: fan