Timed button

I try to use a Timed Button with raspberry using GPIO port and relay, but i do not see the funcion to timed the button for 5 sec every time that i push it, can you help me?

You will have to create the code yourself, and unfortunately it is not yet possible with the Pi agent. What connection method are you using? MQTT or the Pi agent?

I am not an expert in this field, i try to move for some second a GPIO low to high using a relay boards i do not konow MQTT and PI agent