There's a need for a relay button that returns to the original position after a chosen time limit

Sorry, it’s not possible with the standard agent right now. You will have to use the MQTT API, REST API, or an Arduno. Here is an Arduino solution