Please consider donating if this saves you time so that I can continue to deliver tutorials for you. I cannot keep creating these tutorials without your help Here you can download the code that I used in the AWESOME MOUSE TRAP in Home Assistant tutorial. You can simply copy and paste this code so that you do not have to type it yourself. NOTE: If you choose to sponsor me by becoming a member on Ko-Fi, you get a discount on the code downloads. See the membership descriptions for more information. Thank you! P.S. You do not have to register to download this file. You can fill in whatever you like in the name and e-mail field and you can still download.