Send multiple measured values with timestamp over mqtt

I am tinkering with an ESP32 to send values over MQTT. However to save some energy, i want to measure the value 20 times and only every 20th time i want to send all 20 measurements over mqtt to home assistant. That means i need to combine each measured value with a timestamp and home assistant should display all measurements at the right timestamp. Do you have an idea if that is possible ? Is it possible to send a “event time” in MQTT so home asistant understands it and displays it correctly?

Thanks for your support.

It’s not possible without heavy customizing and you’ll most likely need a custom integration to handle the data.

i tought so, thanks anyways