Hello fellow Home Assistant enthusiasts!
I wanted to share my recent experience setting up an ESPHome display to show outdoor temperature. It’s been a bit of a learning curve, but I’m thrilled with how it turned out!
I followed the official ESPHome guide for setting up a Time & Temperature display on an OLED screen. The idea was to pull the outdoor temperature from a sensor entity in Home Assistant (sensor.outside_temperature) and display it on the ESPHome device. Here’s a quick overview of my setup:
sensor:
- platform: homeassistant
id: OutsideTemp
entity_id: sensor.outside_temperature
internal: true
lcd_pcf8574:
- id: my_display
dimensions: 20x4
address: 0x27
lambda: |
if (id(OutsideTemp).has_state()) {
it.printf(0,2,“Outside: %.1f”, id(OutsideTemp).state);
} else {
it.print(0,2,“No outside Temp”);
}
At first, I was frustrated because it kept showing “No outside Temp” despite the sensor being available in Home Assistant. After some troubleshooting, I realized the issue was with the internal: true flag. Once I removed that, the display started updating correctly! ![]()
This project has been a great way to dive deeper into ESPHome and understand how it interacts with Home Assistant. It’s also a nice visual reminder of the current outdoor conditions, which helps me decide whether to bundle up before heading out! ![]()
If anyone has tips for improving the display or suggestions for other sensors to add, I’d love to hear them! Happy coding and happy automating! ![]()