Looked in other posts, but no solution.
No ‘temperature’ and ‘humidity’ displayed; only ‘txt’ and ‘time’.
My code ‘ESPHome’ .yaml is - as below.
In hass.io both parameters are displayed…
esphome:
name: display_station_01
platform: ESP8266
board: esp01_1m
wifi:
ssid: "HOME-WI-FI"
password: "xxxxxx"
# Manual IP
manual_ip:
static_ip: 192.168.1.141
gateway: 192.168.1.1
subnet: 255.255.255.0
dns1: 8.8.8.8
dns2: 8.8.4.4
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Display Station 01"
password: "T34cen9lZ7jZ"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "xxxxxx"
ota:
password: "xxxxxx"
# i2c bus of SSD1306
i2c:
sda: GPIO0
scl: GPIO2
scan: true
# OLED SSD1306 configuration
# display:
# platform: ssd1306_i2c
# model: "SSD1306 128x64"
# address: 0x3C
# lambda: |-
# it.print(0, 0, id(font1), "Hello World!");
# Some fonts & images to display
font:
file: "Roboto-Light.ttf"
id: font1
size: 12
# Time to be displayed on OLED SSD1306
time:
platform: homeassistant
id: esptime
# Parameters to be displayed on OLED SSD1306
sensor:
- platform: homeassistant
id: outside_temperature
entity_id: sensor.switch_sonoff_01_bme280_temperature
internal: true
- platform: homeassistant
id: outside_humidity
entity_id: sensor.switch_sonoff_01_bme280_humidity
internal: true
- platform: homeassistant
id: outside_pressure
entity_id: sensor.switch_sonoff_01_bme280_pressure
internal: true
# OLED SSD1306 configuration
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
// Print "My Home" in top center.
it.printf(64, 0, id(font1), TextAlign::TOP_CENTER, "My Home");
// Print time in HH:MM format
it.strftime(0, 60, id(font1), TextAlign::BASELINE_LEFT, "%H:%M", id(esptime).now());
// Print outside temperature (from homeassistant sensor)
it.printf(127, 23, id(font1), TextAlign::TOP_RIGHT , "%.1f °C", id(outside_temperature).state);
// Print outside humidity (from homeassistant sensor)
it.printf(127, 60, id(font1), TextAlign::BASELINE_RIGHT , "%.0f %%", id(outside_humidity).state);
Yes, this is what I have in ‘Integrations’.
In fact no any icon is shown below. It is ‘ESPHome: display_station_01’.
Should be done something with that?
The circuit I assembled is simple ‘ESP8266’ + ‘OLED 128x64’.
O.K. - working…
By unknown reason the ‘integration’ was faulty. I created manually 2nd.
And this one is good and ‘communicating’.
Now I must remove the 1st one.
It is strange - some bug in ‘hass.io’ ?
Why it is allowing to create 2nd ‘integration’ to the same ‘device’?
Yes I installed the ESPHome plugin. I created the file. I added the codes. I edited the codes myself. But I couldn’t get the system to work. Status appears offline.
Hi, I bought the modules. I integrated the page codes and got an error while trying to install.
ERROR Error resolving IP address of display-state-01.local. Is it connected to WiFi?
ERROR (If this error persists, please set a static IP address: WiFi Component — ESPHome)
ERROR Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname
Hi guys, I’ve come a long way on the subject. I had to do a lot of research. I bought a usb stick for the ESP8266 module. Afterwards, it didn’t happen again. While I was researching on the internet, I saw that I had to make a chassis for the ESP8266 to be programmable. I did the same and it worked. I wrote the program in ESP. But the display still didn’t work. In the log records it says that it does not see SSD1306.