Free shipping from € 74,95 NL (€ 99,95 BE / DE)

Ordered before 16:00 tomorrow at home

Express ordered before 11:30 am tonight at home*

14 days free return *

Logo Electronics For You


 

In this project you will learn how to install one on a Raspberry Pi Domoticz. With Domoticz you can control the home automation in your home via your web browser.

 

This manual covers:

 

  • Supplies
  • Prepare the Raspberry Pi
  • Set up the Raspberry Pi
  • Install Domoticz
  • Access the web interface

 

  • Level - Beginner 30% 30%
  • Duration - 20-30 min 35% 35%
  • Cost - € 75,75 to € 133,69 50% 50%

You need:

 

Step 1: Prepare your Raspberry Pi

Now that you've got everything ready, let's start installing Raspbian Lite. Raspbian Lite is the lightest version of Raspbian, the OS for the Raspberry Pi. Insert your micro SD card into your computer via an adapter and start up the Raspberry Pi imager. Allow the Raspberry Pi imager to make adjustments to your system.

What you will see now is the following:

Here you can see the Raspberry Pi imager. Click on the left button. It is labeled "CHOOSE OS".

We will first select an Operating System (OS). In this case, Raspbian Lite.

Here you see the OS selection menu. Click on Raspbian (other).
Here you can choose between Raspbian Lite and Raspbian Full. We choose Lite.

Now that you have selected your OS, it is time to select the correct SD card.

Here you can see that your OS is selected. Now click on "CHOOSE SD CARD".

We use a 16GB micro SD card. What you see here may differ based on your micro SD card.

Here you see a list of all SD cards. Select your SD card here.

If you have selected your micro SD card you will arrive at the next screen.

Now that you have selected your SD card. Are we going to write the OS on this card. Click on "WRITE".

You will now go through the next three screens. When the writing process is finished, you can close the imager. Then remove the micro SD card.

Here you can see a progress bar with the progress of the imager writing the OS
Here you will see a progress bar showing how far the imager is with verifying the written OS
When you see this screen, the whole process is done. Shut down the imager and remove the micro SD card from your PC.

Step 2: Set up the Raspberry Pi

Now that you have Raspbian Lite installed on your micro SD card, it is time to make some adjustments to the settings. Be the first to insert the micro SD card back into the computer. This process consists of a step that you only need to perform if you do not have an Ethernet connection. The second step is necessary for both an Ethernet connection and a wireless connection.

Step 2.1: Configure WiFi (not necessary if you have an ethernet connection)

First go to the windows explorer and then to this computer.
You will now find a similar screen to the photo on the right. Now click on the “boot” disk.

You are now in the windows explorer. Click on My Computer. Then select the "boot" drive.

We are going to work in the “boot” disk. In this you will find something similar to the following photo.

Here you see an overview of the "boot" disk.

What we are going to do now is edit the ”wpa_supplicant.conf” 'and add it to the ”boot” disk. You should have downloaded this file from supplies. If not, look below this text. Open the document with notepad. You should now see the following text. If not, copy the following text.

wpa_supplicant.conf

 

ctrl_interface = DIR = / var / run / wpa_suppliant GROUP = netdev
update_config = 1
country = NL

network = {
 ssid = "Your_Network_Name"
 psk = "Your_Network_Password"
 key_mgmt = WPA-PSK
}

Now change “Your_Network_Name” and “Your_Network_Password” with your WiFi's name and password.

In our case:
Name: Electronics For You
Password: Electronics @ 123

Here you see an example of the end result.

ctrl_interface = DIR = / var / run / wpa_suppliant GROUP = netdev
update_config = 1
country = NL

network = {
 ssid = "Electronics For You"
 psk = ”Electronics @ 1234 ″
 key_mgmt = WPA-PSK
}

If you have edited this document and saved it to the "boot" disk you can go to the next step.

Step 2.2: Configure remote approach

Go to the windows explorer and then to this computer. Now click on the hard drive named: ”boot”. And paste the following file here: ssh       

You are now ready to install domoticz. Remove the micro SD card from your PC and insert the micro SD card into your Raspberry Pi. Now connect the Raspberry Pi to your power supply and possibly with an ethernet cable.

Step 3: Install Domoticz

We are now going to connect to our Raspberry pi. This process consists of two steps. Finding the IP address of the Raspberry and connecting and installing domoticz.

Step 3.1: Find the IP address

Search in the search bar “cmd”. Then click enter.

The program shown on the right should now be open. Type the command 'ipconfig' and hit enter.

 

Then you will see something similar to the photo on the right.

Search for IPv4 Address. Here you will find your IP address. This is important for finding the IP address of your Raspberry Pi.

 

Your IP address will consist of xxxx, in our case 10.120.0.166. 

Open now advanced IP scanner, a preparation program.

You will see this now. In the circled line type xxx0-254, so in our case 10.120.0.0-254.

Then click Scan.

Wait until you have finished scanning.

You will now see a list of Device Names, IP addresses, Manufacturers and MAC addresses. Unfortunately, we cannot see a manufacturer or name with the Raspberry Pi. So we are going to search by MAC address. A MAC address consists of XX: XX: XX: XX: XX: XX. With a Raspberry Pi this always starts with DC: A6: 32: or B8: 27: EB:. Now find such a MAC address and see which IP address is listed. In our case '10.120.0.154 .XNUMX '.

Step 3.2: Connecting to your Raspberry Pi

Go back to the windows search bar and type 'cmd'. Click on enter.

You will now see the following screen.

 

Now type 'ssh pi @ xxxx', where xxxx is the IP address of your Raspberry Pi. So in our case it will be 'ssh pi@10.120.0.154'. After entering, click enter.

You will now see the following. Type 'yes'. Click on enter.

You will be asked for a password. The default password is 'raspberry'. Enter this password. While typing passwords, no characters will appear. This is normal. Click enter after entering your password.

 

 

You are now logged in to your Raspberry Pi. The first thing we're going to do is create a new password so that not everyone can access your Raspberry Pi. Type 'passwd' and click enter. Type your current password and the new password twice. Click enter after each password.

You now have a secure Raspberry Pi accessible only to you. We still have to perform a number of steps until the domoticz is ready for use. Type the command 'sudo apt-get update' and click enter. Wait for the process to finish. This command updates your Raspberry Pi.

Now that we have prepared everything, the time has finally come. We are going to install domoticz. Type the command 'sudo su'. Then type
'curl -sSL install.domoticz.com | sudo bash". Click on enter.

A number of configurable settings will then appear. We recommend the default settings, but if you have already installed OpenMediaVault change port 8080 to 8888. You can navigate through the steps with enter.

Step 4: The web interface

To connect to the web interface, go in your web browser to the IP address of your Raspberry Pi, xxx.xxx.xxx.xxx, and then type “:” and the port you have chosen. Should be 8080 or 8888. So in our case we go to http://10.120.0.154:8080 or http://10.120.0.154:8888

Sign up for exclusive offers!
SIGN UP

Are you already a member of our newsletter?

Stay tuned for:
  • New products
  • Deals
  • Events
  • News
  • Projects
close-link
The rating of www.elektronicavoorjou.nl at webwinkelkeurmerk.com is 9.2/10 based on 811 reviews.