Show temperature on MAX7219 only during daytime

Hi, how can I set my MAX7219digit display to show temperature only during day time and not from 10pm to 6am? Or dim?

  - platform: homeassistant
    id: homeassistant_time

  - platform: max7219digit
    cs_pin: D6
    num_chips: 4
    intensity: 2
    lambda: |-
      if (id(temperature).has_state())  {
      it.printf(0, 0, id(digit_font), "%.1f°C", id(temperature).state);
  - file: "pixelmix.ttf"
    id: digit_font
    size: 8

It’s in the docs

There is nothing about time based switch off and on.

Use the Time component to figure out when to turn the display on/off (or set intensity).