Skip to content

Instantly share code, notes, and snippets.

@quonic
Created June 13, 2024 04:07
Show Gist options
  • Save quonic/fa6ff39c039aefec773ed32933fe8890 to your computer and use it in GitHub Desktop.
Save quonic/fa6ff39c039aefec773ed32933fe8890 to your computer and use it in GitHub Desktop.
ESPHOME: esp32 + DHT (AM2302) temp monitor for an odd esp32 found on Amazon
esphome:
name: temp-monitor
friendly_name: Temp Monitor
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "ReplaceMe"
ota:
password: "ReplaceMe"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Temp-Monitor Fallback Hotspot"
password: "ReplaceMe"
captive_portal:
sensor:
- platform: dht
pin: 4 # Replace with where you plugged the data pin into
temperature:
name: "Vent Temperature"
humidity:
name: "Vent Humidity"
update_interval: 60s
model: AM2302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment