@Bret_1975 wrote:
Hi everyone,
I’m new to the community, although I have been using Home Assistant now for about a year. I have several home-built Temperature & Humidity sensors utilising the DHT22 and Wemos D1 Mini. These are working really well, but I have developed some small rechargeable units for areas where I have no power available, and I would like to use an OLED display in my enclosure for a quick reference rather than having to carry my phone or tablet everywhere with me.
My current YAML config is as follows:
esphome: name: dht22_lounge platform: ESP8266 board: d1_mini wifi: ssid: "************" password: "************" # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Dht22 Lounge Fallback Hotspot" password: "************" captive_portal: # Enable logging logger: # Enable Home Assistant API api: password: "************" ota: password: "************" # DHT22 Config sensor: - platform: dht model: DHT22 pin: D2 temperature: name: "Living Room Temperature" humidity: name: "Living Room Humidity" update_interval: 30s
My question is, what code do I need to add here to get the OLED display to also output the temp and humidity? I have it working standalone from an Arduino IDE Sketch, but haven’t a clue how to translate it to ESPHome.
Many thanks in advance,
Bret
Posts: 5
Participants: 2