Notes:
- The script is made to start a timer of 30min every time the button is pressed.
- If the button is pressed when the timer is already running, the countdown restarts
- The relay for the ventilation is connected on GPIO 24
- Write your mac address(es) below indicated in yellow (if you don't know them, just comment the line and run the script, you will see the mac displayed when you press the button).
- You have to half configure the Dash button before the first use (but stop the process before assigning the button to a product).
- There are a lot of scripts online (such as this one) but I find this solution more elegant as it does not use scapy... only standard stuff. Source of where of what Ibuilt this script on