New practical tutorial where you can learn everything you need to know about installing electrical systems in your smart home and ensuring everything works perfectly, just like a professional. Everything is explained step by step and in a very clear and visual way, so you don't miss a thing.
In addition, we'll also show you some recommendations for products and tools needed for the entire process. This way, you can save thousands of euros on the installation of your new home, and you won't have to depend on specialized electricians.
Tools needed

To learn about the tools needed for electrical installations , I recommend checking out the section dedicated to these tools in the article I wrote about them . You may already have many of them at home, as they are quite common, although others might not be. As for the specific materials or items you'll need, I'll explain them step by step in the following sections.
Precautions

When working with an electrical installation, remember that you are dealing with energy that can cause serious harm, therefore, you must take all necessary precautions to avoid accidents :
- Always work on dead circuits (unplugged) whenever possible. Keep in mind that in Europe we have voltages of 230 volts AC at 50 Hz. However, it is common to find a range between 220V and 240V, but either way, it is enough to harm you.
- Wear appropriate footwear with rubber soles and good grip.
- Always wear insulated gloves.
- Keep the tools you use in good condition. Sometimes, the deterioration of the insulating handle of some of them can cause you to come into contact with the metal part and suffer an electric shock.
How to install the electrical wiring in a house step by step

To carry out the electrical installation, you will have to follow a series of steps. If it is a new installation, and you didn't have a connection to the electrical grid because it is a new house, etc., you should always contact a licensed electrician registered with the Electrical Installations Registry of your autonomous community and associated with the electricity distributors (Endesa, Iberdrola, Repsol,…) so that they can make the appropriate connection to the local electrical grid and install the meter and other necessary devices.
You can't do this yourself, as it would be illegal. Even if you do it according to regulations (see the Low Voltage Electrotechnical Regulations), it won't be suitable, since these installations must be approved by a professional and sealed with a lead seal to prevent tampering. Furthermore, the meter is equipment that you rent from the company.
Once the contract and the legal connection/installation have been made, you will now have the starting point that will supply the rest of your installation…
How to make grooves in the wall and install the corrugated pipe

Although exposed cables and conduits can be used, the most suitable, aesthetically pleasing, and professional solution is to run the wiring inside the wall (through chases) or under the floor (between the floor and the concrete structure). This will require construction work. If the house is new, this can be done as needed. But if the house is already built, then you'll have to cut chases or channels (depending on the terminology used in your area). This means creating channels in the wall to embed the corrugated conduit through which the cables will run. It's important to use corrugated conduit ; it not only protects the cables but also allows you to remove old wiring and install new wiring if necessary, without having to carry out any major construction work.
Before you begin, I recommend making a drawing or diagram of how you want the electrical installation to be laid out , from the main electrical panel where the power will arrive, to the various outlets, lighting fixtures, switches, and so on. Keep in mind that to distribute wiring from the main panel to the different areas of a room, you can use junction boxes or distribution boxes to run a main branch and then make the necessary connections and branches for the entire room.
To make the grooves, you know, either use a groover or a mallet and chisel…
Remember that the width and depth of the groove must be sufficient to fit the corrugated pipe so that it does not protrude, and even have enough margin to later apply a layer of plaster to cover the imperfection again and carry out the finishing.
How to place boxes for electrical installation

Now, once you've chased all the conduit and laid the corrugated pipe for your electrical installation, each of these pipes will run to an area where either a distribution box or junction box, or a box for a socket or switch, will be located. Also, remember that all the main branches must run to where the main electrical panel will be installed. In those areas where the main panel box (ICP), junction boxes, and small boxes (universal boxes for mechanisms) will be located , you'll also need to drill a hole large enough to embed them and secure them with plaster, as shown in the image above.
One point to note: when there is more than one mechanism in the same area, such as a switch next to a socket or several sockets, or several antenna outlets, etc., you should fit the universal boxes together on their sides and embed the entire unit together; this way you won't have any problems with the trim pieces.
How to make a ground connection

Grounding is a fundamental element in any electrical installation, as it guarantees the safety of people and equipment by conducting leakage currents to the earth in case of a fault or short circuit. This is no longer optional, as it was decades ago when many older homes lacked grounding. Now it is essential.
To install the grounding system in your home, you must follow these steps:
- Find a nearby location outside, on your plot, on the ground. And that does not have pipes or other electrical installations nearby. It should not be far from the main panel, since the greater the distance, the longer the wiring and corrugated pipe for exteriors you will need.
- Dig a hole in the ground at least 80 cm deep and wide enough to work comfortably.
- There you will have to nail the 2-meter copper stake that you have bought. You can use a hammer to make the stake stick in so that only about 15 or 20 cm sticks out of the ground.
- Now install the connector and the bare ground wire (it must be 16mm in section), tighten the nuts so that it is well secured and makes a perfect electrical connection.
- You can then make a construction register around this installation, but without covering the rod or the wiring. It must be visible for inspections.
- You can then install a manhole cover to protect the installation. Others simply bury the installation…
- The other end of the outdoor corrugated pipe and ground wire must go to the main panel or ICP.
Install the main electrical panel

The main electrical panel (MEP) is the heart of a home's electrical system. It's the point where electricity enters the house and is distributed to the different circuits. It's not just the power source and distribution point; it's also the control and safety panel, housing the various protection systems and allowing you to disconnect different sections of your home for future repairs, expansions, or maintenance without risk.
In this box you will now have 2 hoses, one coming from the grounding installation you have made, and another from the main meter that the professional will have made for you, and which is the one that will bring the energy. In addition, you have to install the following devices:

Regarding the connection, here are some example diagrams to guide you , but you already know that the number of circuit breakers will depend on your electrical installation, depending on whether you have more or fewer zones:

As you can see, the installation is quite simple . On one side, you'll have a terminal block to connect the main grounding wire, and from there you'll connect all the grounding wires that go to the different rooms or circuits in your home. On the other side, you must connect the live and neutral wires exactly as shown in the image; the first three are important. Then, from there, you can bridge the various circuit breakers.
Which circuit breakers should you install? Well, I recommend separating the electrical outlets and lighting in each area or room of the house. Depending on this, you'll need to install appropriate circuit breakers for each type of device.
- 10A: They are generally used for lighting circuits, where the current demand is lower.
- 16A: They are the most common and are used for general power outlet circuits (wall sockets).
- 20A: They are used for circuits that supply higher-power appliances, such as washing machines, dishwashers or electric boilers/water heaters.
- 25A: for high demand circuits, such as those for electric stoves or ovens.
Regardless of the type of amperage of the PIA, they are all installed exactly the same. Of course, you will have to take into account how to connect the wiring according to the circuit to which it corresponds... It is important to read the following section to see the wiring you need for the main panel.
Install the house wiring

So far I have only talked about the grounding cable, but it is important that you keep in mind what types of cables are used for each connection. We have different copper sections or diameters, and not all of them are suitable for everything:
- 1,5 mm²: for lighting circuits and low-consumption mechanisms (switches, lamp sockets, etc.).
- 2,5 mm²: general power outlet circuits (wall sockets) and for bathroom and kitchen circuits.
- 4 mm²: for greater power, such as washing machine, dryer, dishwasher, oven, electric stove, and electric water heater.
- 6 mm²: It can also be used for circuits with a higher power demand, but I recommend that you use it to make the connections from the main panel to the different boxes or main registers that you have installed for each room, and in each of these boxes make the connections for the wires of the lower sections for the different purposes…
In addition to the sections, it is important to know the colors we have for each of the lines:
- Brown, black or grey: Generally used to identify the phase conductor (L). This is the conductor through which the electric current flows from the power source to the load.
- Blue: It is used to identify the neutral conductor (N). The neutral completes the electrical circuit and returns the current to the power source.
- Green and yellow (longitudinal stripes): This is the exclusive color for the protective or ground conductor.
A common question is whether the phase and neutral wires could be interchanged. The answer is yes, since it is alternating current (AC), and that means that it oscillates changing polarity 50 times every second (50Hz) in Europe, and it does not happen like in a direct current (DC) circuit, where you cannot reverse the polarity... However, I advise you to always respect this diagram so that it will be easier for you to identify in the future or for other people who did not do the installation.
I also recommend preparing/crimping the bare ends of the wires (reducing the risk of sparks, fraying, etc.) for the connections you make, and buying connectors to splice the different wires in the junction boxes:
Install the basic mechanisms

Now that you've wired everything from the main panel to the various junction boxes, and from there to the individual switch boxes, the next step is to make the connections for these devices , whether they're switches or sockets. This part is also critical, as everything depends on it to function correctly. Let's go step by step:
- Automotive Lighting : This is perhaps the most complex point, since simple installations with a switch are simple, but the situation becomes more complicated when we have two or three "switches" for the same light. In any case, as I show you in the diagram below, you always have to interrupt the phase line that comes from the register to the bulb. On the other hand, the neutral line will go directly from the register to the lamp holder. As you know, there is not much mystery in the lamp... it is just a matter of connecting the phase cable, the neutral cable and the ground cable (some lighting installations do not have a ground cable, but if it is present, it is better).
- One: A switch mechanism is used. For example, for small rooms, outdoors, etc.
- Two: Two switching mechanisms are needed. For example, for hallways, one at one end and one at the other end.
- Three: Two switching mechanisms and a crossover are needed. For example, for bedrooms where we have two, one on each side of the bed, and one at the entrance door.

- Plugs: In this case it is much simpler than in lighting, since we do not have different mechanisms, just one, a plug. With three terminals or clamps to connect, one for the phase cable, another for the neutral and another for the ground. In this case, unlike lighting, it should always have a ground connection for safety.
Remember that the mechanisms can then be decorated with whatever embellishments you want, depending on the colour or design you prefer…
Smart home: step-by-step home automation installation
After this quick "master class" on electrical installations, continuing with home automation or smart home devices is child's play, since everything will be much easier for you.
Smart switches

For recessed smart switches , installation is very simple, although it may vary slightly depending on the model you choose. Some will be controlled via Wi-Fi through a mobile app to turn them on or off, while others will use different protocols such as Zigbee, Bluetooth, or voice commands through Amazon Alexa, Google Assistant, or Apple Home, etc. Of course, the wall switch itself will also allow you to operate it manually.
For example, some use the scheme you see above, with the phase going through the smart mechanism and then through the manual switch, while the smart mechanism will also have a connection to the neutral.
Intelligent lighting

Smart bulbs are as simple as screwing the bulb into the socket just like any other conventional bulb. It's that simple, but thanks to their connection to the Hub, you can control them through a mobile app, voice commands, and more.
And don't forget to choose the Hub compatible with your bulbs:
Smart plugs

In this case, the installation is exactly the same, connecting the live, neutral, and ground wires to the corresponding connectors. This will provide enough power for the smart device itself and for it to supply current to whatever you plug into it.
Table of Contents