This script replicates the activation_switch profile behavior from Shelly Gen1 devices using Shelly's scripting capabilities. It configures the switch to 'detached' mode and adds an event handler to manage button push events. The script ignores single and double push events, activating the switch with a user-defined timeout when the "btn_up" event is detected. Ideal for users looking to emulate Gen1 behavior on their Shelly devices, the script allows customization of toggle timeout and switch/input IDs.