Hey everyone, I’m really excited to share my latest project with you! I’ve been working on integrating an SSD1306 OLED display with my NodeMCU ESP8266 setup, and I’m thrilled with how far I’ve come. The display is connected, and I’ve managed to set up a few ‘pages’ that show different sensor readings, like temperature and humidity both indoors and outdoors. It’s been a great way to keep an eye on the weather conditions without having to check multiple devices.
However, there’s one feature I’m really eager to add, and I could use some guidance. I want to integrate a new entity in Home Assistant, specifically a select entity, that would allow me to choose what’s displayed on the ‘Outside’ page of my OLED screen. For example, I’d love to have the option to switch between showing temperature, humidity, or even a combination of both with just a button press.
I’ve included my current code below, and I’m wondering if anyone has any concrete examples or tips on how to modify it to achieve this functionality. I’m particularly interested in how to structure the code so that the select entity seamlessly integrates with the existing display logic. Any advice or pointers would be incredibly appreciated!
Here’s my current setup:
python
Code snippet showing the current display configuration
sensor:
- platform: homeassistant
name: “Time”
id: Time
entity_id: sensor.time - platform: homeassistant
name: “Wetterstation Temperature”
id: Temperature
entity_id: sensor.unknown_70_ee_50_a2_17_9a_unknown_70_ee_50_a2_17_9a_unknown_70_ee_50_a2_17_9a_aussenmodul_temperature