Before to read this section. It is recommended read Modules section.
Then, following is a step-by-step explanation of what you need to do to use your newly acquired modules, from the moment you unpack them to the moment you control them when you are in Mexico.
 Configure the modules
First, you will notice that there are four little switches on the control module. It is used to tell the server to what type of power module it is connected to. The possible configurations are listed in the table below (a blackened switch is « ON »):
As of now, there are only two power modules that were developed. When new functionalities are added to the project, they will use different switches configurations. Those will be added to future revisions of this document. The next step in configuring your modules is to connect them to the server. So, plug the server into the wall, and use the supplied USB cable to connect it to the modules. A yellow light should light up and should go green after a couple of seconds. If it does not, there was a problem (see the troubleshooting section). During this step, the server assigns a unique identification number to the modules, and sends the communication parameters.
 Install the modules
Now that the modules are configured, you can install them in their intended locations. First, make sure to turn off the breaker that controls electricity at this location. Then, open the electrical enclosure of the outlet or switch you want to control. The installation procedure varies according to the type of module that you are installing. The following sections give details and examples for many installation scenarios.
 High power module
On the power modules, two individual screw-on terminals were installed for each neutral and high voltage entry. This is useful to be able to connect the wires to the modules when they are also needed elsewhere, without the need to use wire nuts, so as to optimize the available space. The following figures illustrate how each module is to be connected with a power outlet:
You can see that the second « HOT » terminal on the power module is very useful to conduct the hot and neutral signals to other outlets or switches, without using a wire nut. This is most likely the case for a power outlet, unless it is the last one that’s connected on the breaker. If it is, one could use the remaining terminal to connect the power module to the control unit. However, it wouldn’t be possible to connect two 14 AWG wires in a single screw-on terminal, but since the current drawn from the hot wire by the transformer on the control unit reaches a maximum of only 1 A, a 24 AWG wire is big enough, which can be screwed in the terminal with the 14 AWG wire. Also, note that the outputs were chosen arbitrarily. The user has the liberty of choosing whether he wants his devices plugged on the normally open or on the normally closed terminal of the relays.
 Lighting module
Three-way configuration In order for the light controlling power module to allow the use of the mechanical switch (i.e. manual control) simultaneously with the server automatic control, the module needs to be wired using a three-way configuration, as illustrated on the following figure:
This configuration requires the user to replace the existing switch. That is, if the control in place is a single pole, single throw (SPST) interrupter, it needs to be replaced by a three-way. Also, if the control in place is already a three-way, it needs to be replaced by a four-way. If the configuration is already a four-way, the user needs to find one of the two three-way interrupters that control the same light (located at either end of the lighting network), and replace it by a four-way.
The following figure illustrates this configuration:
The following figure shows an example of how the lighting module may be installed:
In the case of a switch, it is rare that the hot and neutral wires will be needed elsewhere. This is why these wires are dashed. If those are not connected, then the remaining terminal might be used to connect the lighting module to the control unit. Here again, 24 AWG wires are big enough for that purpose.
 Finish the installation
Once the module is correctly installed, don’t close the electrical enclosure immediately. Turn the electrical breaker back on, and verify that a green LED has lit up on every module. If it is not the case, turn the breaker off and verify your connections. Once you see the LED, the module should be ready to use. Verify that it appears on the application. When it does, turn off the breaker again, put the enclosure back in the wall, and turn it back on. Installation is finished.
 Install Server (Software)
Installing server in 2 steps.
- . Download Curuba Server (merged with Curuba mobile)
- . Run the scrip tInstallCurubaServer.sh for Linux/Apple or InstallCurubaServer.bat for Windows.
 Use the application
Now that the modules are installed and working, you will be able to use them! First, you may want to assign a unique name to your new device. For this purpose, open the device configuration page, where you can change the device name and give it a schedule so that it turns on or off automatically. From now on, we will use the mobile application core functionality. You should now open the « Devices » tab. The first thing you should see in this tab is a list of the connected devices. Your newly installed device should appear with its name and its status. Click on it to see its details. At the top of the device details page, there is a control button. Use it to turn on or off the device. At the bottom, there is a histogram showing consumption statistics. You can view statistics with different time periods. There is a "configure device" button in the middle of the page. Click on it to configure the device further.
A prtvacooive insight! Just what we need!