Created
June 13, 2024 04:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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