I set up a Heltec ESP32 with a built in OLED screen like this and I’m using it to graph temp and humidity values.
Seems to be working but the log is spamming the warning [W][graph:121]: Graphing reducing y-scale to prevent too many gridlines
I’m confused because I’m not using gridlines. Here is my YAML
esphome:
name: esp-test-temp-snsr
platform: ESP32
board: heltec_wifi_kit_32
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "623a1961e2f93afa685ca58d0bce5972"
wifi:
ssid: "[redacted"
password: "[redacted]"
power_save_mode: none
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Living-Room-Temp-Sensor"
password: "fallback"
captive_portal:
i2c:
scl: 15
sda: 4
sensor:
- platform: wifi_signal
name: "espTestSensor AC wifi signal"
update_interval: 60s
- platform: uptime
name: "espTestSensor Basement AC uptime"
- platform: dht
pin:
number: GPIO5
mode: INPUT_PULLUP
temperature:
id: 'temp'
name: "ESP Test temperature"
filters:
- lambda: return x * (9.0/5.0) + 32.0;
unit_of_measurement: "°F"
humidity:
id: 'hum'
name: "ESP Test Humidity"
update_interval: 60s
model: DHT22_TYPE2
font:
# gfonts://family[@weight]
- file: "arial.ttf"
id: arial
size: 12
graph:
# Show multi-trace graph
- id: temp_humidity_graph
duration: 1h
width: 128
height: 64
traces:
- sensor: hum
line_type: DASHED
line_thickness: 1
- sensor: temp
line_type: SOLID
line_thickness: 2
display:
- platform: ssd1306_i2c
model: 'SSD1306 128x64'
reset_pin: 16
address: 0x3C
lambda: |-
it.printf(5, 10, id(arial), "Temp : %.1f °f", id(temp).state);
it.printf(5, 25, id(arial), "Hum : %.1f %%", id(hum).state);
it.graph(0, 0, id(temp_humidity_graph));