The safest distance between you, your Pi, and mains power is 100 metres.
WiFi and other wireless connections are the safest. The distance you have to cover is the next decision. The Pi 4 and 5 WiFi works across the width of my house but not the length. You could connect your Pi to a WiFi mesh network to cover longer distances.
Look up Z-wave for wireless connection to mains switches. ZWLR is a special long range version of Z-wave for farms and building to building.
Then look at products like the following.
https://z-wave.me/products/razberry/
WiFi and other wireless connections are the safest. The distance you have to cover is the next decision. The Pi 4 and 5 WiFi works across the width of my house but not the length. You could connect your Pi to a WiFi mesh network to cover longer distances.
Look up Z-wave for wireless connection to mains switches. ZWLR is a special long range version of Z-wave for farms and building to building.
Then look at products like the following.
https://z-wave.me/products/razberry/
Statistics: Posted by peterlite — Sat Jan 31, 2026 11:13 pm