esphome:
  name: hvac

esp32:
  board: nodemcu-32s
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: ""

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"

captive_portal:
    
switch:
  - platform: gpio
    name: heat
    pin:
      number: 0
      mode: 
        output: true
        input: false
      inverted: false
    id: heater
    restore_mode: RESTORE_DEFAULT_OFF
  - platform: gpio
    name: ac
    pin:
      number: 4
      mode:
        output: true
        input: false
        open_drain: false
      inverted: false
    id: ac
    restore_mode: RESTORE_DEFAULT_OFF
  - platform: gpio
    name: fan
    pin:
      number: 16
      mode:
        output: true
        input: false
        open_drain: false
      inverted: false
    id: fan
    restore_mode: RESTORE_DEFAULT_OFF
