Mainly based on the hard work of @vandalon
In order to get full functionality, a text helper must be created and the “elapsed” function must be enabled in Zigbee2MQTT as well.
UPDATE 2024.10 : The blueprint has been updated and there is no need anymore to use the « elapsed » function.
The latest syntax has been used which implies that Homeassistant must run version 2024.10.x minimum.