Safer UK Sonoff Wireless Switch- Home Automation.

by Anonwelder in Circuits > Wireless

8854 Views, 21 Favorites, 0 Comments

Safer UK Sonoff Wireless Switch- Home Automation.

20170708_101016.jpg

I recently bought some Sonoff Wireless switches online and although I was pleased with the operation of these switches, I was not content with the way the wiring of mains voltage to and from these devices is made, not least the exclusion of the Earth wire as the Sonoff units only provide terminals for Live and Neutral.

I was wanting a safer way to wire these units in and was looking at project boxes when I hit on the idea of using a two way trailing socket to house the Sonoff and provide a designed safe enclosure while still allowing the functions of the Sonoff to be accessed.

These sockets allow them to be plugged into existing equipment without cutting into its wiring and can be moved as and when required.

Beware that this project involves wiring of mains voltage which should only be attempted by a suitable competent person and building and using the unit is at your own risk and I take no responsibility for any loss or injury in providing this educational information.

Tools and Equipment Required.

20170708_101659.jpg
  • A trailing socket which may be dismantled- look for screw heads either on the front or rear of the socket. Note that some of these sockets do not have screws, but captive clips which prevent disassembly and these should be avoided.
  • Mains plug and lead.
  • A Sonoff Wireless Switch.
  • Screwdriver to dismantle socket and screwdriver to wire the terminals.
  • Sharp side cutters.
  • Sharp knife
  • Pliers
  • Glue gun and glue

Dismantle the Socket

20170708_101738.jpg
20170708_101729_001.jpg

This socket is ideal for the project and cost around £2.50 from national high street home store. Note the screws on the rear of the unit.

Socket Connections

20170708_101819.jpg

This is a typical layout of one of these sockets, with copper strips connecting the terminals to each of the pins. To make room for the Sonoff, the left hand connections and internal mouldings need to be removed.

Copper Strips Trimmed to Size and Case Preparation.

20170708_101925.jpg
20170708_102248.jpg
20170708_101217.jpg
20170708_102958.jpg

I used my side cutters to trim down the copper strips, removed all redundant copper and then used the cutters again to remove the unwanted plastic from the base. The plastic flies off at all angles and at surprising speed, so wear eye protection. Once done, I removed MOST of the plastic material from the top cover, retaining that around one hole where the Sonoff reset switch will engage.

Remove the Sonoff PCB From Its Case and Trial Fit in the Case.

20170708_102012.jpg
20170708_103135.jpg
20170708_101515.jpg

The Sonoff case comes apart really easily, exposing the PCB. Place this into the base as shown and carefully fit the top to ensure there is enough room for the PCB, whilst ensuring the reset switch fits into the intended hole.

Wire Up the Mains Cable to the Sonoff.

20170708_103450.jpg
20170708_101034.jpg
20170708_101027.jpg

Using a mains cable, I wired this up as shown having confirmed Live and Neutral locations with the Sonoff original casing and ensuring each wire was routed in the safest manner within the socket itself.

Reassemble and Test

20170708_101514.jpg
20170708_101519.jpg

Once the wiring is complete, refit the cover, ensuring the reset switch engages in its new hole once more and then screw the new Sonoff Socket together.

Plug in and switch on the unit and after a few seconds, its LED will illuminate to show that the project is working.

After unplugging, I filled the unused Earth and Live holes (excluding the reset hole, obviously) with hot melt glue from a glue gun to prevent any attempt to force a plug in there by accident.

It is now complete and ready to use!