ESPhome clock

Hi there,
I’m a newbie.
I want to build an accurate clock with an ESP8266 nodemcu and 4xMAX7219 dot matrix displays.
My configuration file is follows. When I installed as an ESPHome project, the clock works good for aprx. 15 minutes and then display shows 03:00 and goes on.
Is there something missing or forgetting?
Tnx.

esphome:
name: clocky
friendly_name: clocky

esp8266:
board: nodemcuv2

Enable logging

logger:

Enable Home Assistant API

api:
encryption:
key: “kPGH5/CPM0nGqAgfn4LXL/yCjpe85nrfsEyFjRI93X0=”

ota:

  • platform: esphome
    password: “98d629cec4375b899d85330ca19bc0bf”

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: “Clocky Fallback Hotspot”
password: “Yl3GWWF2Lqjv”
captive_portal:
spi:
clk_pin: GPIO0
mosi_pin: GPIO2
display:

  • platform: max7219digit
    cs_pin: GPIO3
    num_chips: 4
    intensity: 1
    it.strftime(0, 0, id(digit_font), “%H:%M”, id(hass_time).now());
    font:
  • file: “common/lcd2.ttf”
    id: digit_font
    size: 9

time:

  • platform: homeassistant
    id: hass_time

Ok, first of all! You gotta do code formatting with that mess you copy/pasted… There are icons above your keypad or use 3x ``` above and below the code. Silly question but what was the time supposed to show after 15min? For all i know you been smoking that whacky weed and 15min ago it was 2:45.

Also, why gpio0? You really dont want to use that pin if you dont know how to use it or especially if you dont know why not to use it. Change that pin out and reflash with the updated pin#. Im surprised you got this far honestly. Didn’t see any other weird things happen? blinking led? esp going offline? anything?

@ [Fallingaway24
You can say about formatting errors.
But you can’t decide whether a question is silly or not. I guess you think you’re a judge!
I don’t want help from you or those who think like you.

You generally should use gpio0 and gpio2 carefully, they are strapping pins and have pullups. Instead use default spi pins gpio12-15. Also you could use sntp time instead of HA.

Clearly, I was referring to my question to you.

If you go around looking to be offended, youll always find something and people like that are no fun.