[HomeAssistant] ESP8266 Temperature&Humidity Sensor
Writed: 12 Mar 2020
Index
1. Component
2. Make Temp&Humi Sensor Device
3. Check ESP8266's IP
4. Setup Integrations and UI card
5. Picture
1. Component
1) Raspberry Pi 3B+ is already installed Hass.io
2) ESP8266 board
3) DHT11 sensor
2. Make Temp&Humi Sensor Device
1) Input device and Wifi information
2) Edit yaml file
- If ESPHome Web show "404: Not found" error and can not read ".yaml" file, you clieck ESPHome button on navigation left side. Reload ESPHome Web.
- Add this configuration
# Example configuration entry
sensor:
- platform: dht
pin: D2
temperature:
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
model: DHT11
update_interval: 60s
- You can find exmaple on ESPHome Document below picture. They said that the default model is AUTO_DETECT. But AUTO_DETECT model choose DHT22 despite I use DHT11. So Manually specify the DHT model, DHT11.
3. Check ESP8266's IP
4. Setup Integrations and UI card
5. Picture
Reference:
- https://www.home-assistant.io/
Home Assistant
Open source home automation that puts local control and privacy first.
www.home-assistant.io
PlatformIO is a new generation ecosystem for embedded development
Open source, cross-platform IDE and Unified Debugger. Static Code Analyzer and Remote Unit Testing. Multi-platform and Multi-architecture Build System. Firmware File Explorer and Memory Inspection.
platformio.org
ESPHome
ESPHome Homepage - Reimagining DIY Home Automation. ESPHome is a framework that tries to provide the best possible use experience for using ESP8266 and ESP32 microcontrollers for Home Automation. Just write a simple YAML configuration file and get your own
esphome.io