MQTT - 5 messages per second, just want sample

So I have a robotic mower running mqtt and it contains GPS RTK data along with the mowers battery health, gyro data and, pretty much lots of other statistics and debug data.

I don’t want homeassistant to subscribe and collect the huge amount of data for no point, I just would like to maybe connect for 1 second every 30 to take a sample and collect the most recent info.

I am brand new to mqtt and couldn’t find any help on this; so, Is it possible for homeassistant to do this?

Or is there a way to write a script to do this?

Thanks in advance