How long is the "activity" history kept?

How long are activity data retained?

You can go to Settings > System and you have this configuration that indicates how long device states are kept:

But I set it to unlimited from the start!

Don’t you find any events before a certain date?

I think I understand why: I changed the name of a device in zigbeemqtt and in Gladys, and this deletes all the data from the old name, since I have to create a new device.