Skip to content

Instantly share code, notes, and snippets.

@uSlackr
Created January 3, 2024 02:59
Show Gist options
  • Save uSlackr/b77dc8985963e8218bd2331e9dd8a6be to your computer and use it in GitHub Desktop.
Save uSlackr/b77dc8985963e8218bd2331e9dd8a6be to your computer and use it in GitHub Desktop.
ESPhome temp controller
esphome:
  name: temp-ctrl-1
  friendly_name: Temp Ctrl 1

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

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "8tWA7foM9AyYkzWIl2gDxV6naBW0Nf65b1MdoVh/wEE="

ota:
  password: "3495350e3396889d63ae475629186597"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Temp-Ctrl-1 Fallback Hotspot"
    password: "x8UzerhnV3MS"

captive_portal:

spi:
  miso_pin: 12
  mosi_pin: 13
  clk_pin: 14

sensor:
  - platform: max31865
    name: "Ferm 1 Temperature"
    # unit_of_measurement: "F"
    device_class: temperature
    update_interval: 10s
    cs_pin: GPIO4
    reference_resistance: 4300 Ω
    rtd_nominal_resistance: 100 Ω

switch:
  - platform: gpio
    name: "Relay-1"
    pin: GPIO3
  - platform: gpio
    name: "Relay-2"
    pin: GPIO21
    ```
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment