Just leaving this here for anybody who wants to know the current time of your ESPHome device. This text-sensor template updates the time into the text sensor every 60 seconds. I could not find the time anywhere so i created this solution. It takes 60 seconds after the reboot before the time is set correctly, probably the time is not up to date directly after reboot.
Well yes, that is time explained, the latter one even for an oled. But I was looking for displaying time on the web page of my esp to check if the time is correct. And in the docs there is no copy paste solution, or maybe I am missing something?
From the time docs it requires some knowledge regarding programming to get it done.
Edit: @nickrout focussing on that sentence alone makes me look like that meme with john travolta from pulp fiction. The sentence should have been “I could not find the time displayed anywhere on my ESP so I created this solution”