How to protect a GPIO pin with a long input wire from transients?
If you build this for your home and you live in a EMC quiet place, then you might not need input protection. Else you might want to protect your inputs e.g. with TVS transzorber diodes. Twisting and shielding the cable is also your friend.