Putting internal info on screen

TL;DR How can I print on my esp32’s oled screen info like the esp32’s IP address, and whether it is conected to mqtt.

I had an esp32 lolin module with a built in oled arrive the other day. (this one https://www.aliexpress.com/item/Lolin-ESP32-OLED-wemos-for-Arduino-ESP32-OLED-WiFi-Modules-Bluetooth-Dual-ESP-32-ESP-32S/32807531243.html?spm=2114.search0104.3.10.IYFXEZ&ws_ab_test=searchweb0_0,searchweb201602_1_10152_10065_10151_10344_10068_10345_10342_10343_10340_10341_10541_10562_10084_10083_10304_10307_10302_5080011_10539_10312_10059_10313_10314_10184_10534_10533_100031_10604_10603_10103_10594_10557_10596_10595_10142_10107,searchweb201603_12,ppcSwitch_5&algo_expid=d935a260-bd60-4a89-9393-4ae6fbae7728-1&algo_pvid=d935a260-bd60-4a89-9393-4ae6fbae7728&rmStoreLevelAB=5)

I have been watching this project for a while, but this is the first time I have used it “in anger”. I am very impressed. I have been able to get it up and running and draw lines in the screen. Cool, but not yet useful :slight_smile:

I thought my next (small) step on the way would be to put the something useful on the screen, eg some of the esp32’s internal states on the screen, like ip address, whetrher it is connected to the mqtt broker etc. However I am not sure how to get this info. I have read https://esphome.io/components/display/ and I see how I would for example get the state of a sensor. But I don’t know how to get the sort of info I am talking about.

TIA, Nick.

Have you made some improvements on this?
Can you share your config?