Domoticz: installation and configuration on Raspberry Pi 3 (or 2)


Domoticz is a free and open source home automation server very simple to install and configure on a Raspberry Pi 3 (or 2). In this article we will discover how to install and configure it. To write this article I used a Raspberry Pi 3 equipped with a Micro SD card 8GB class 10. We will see how to configure the WiFi connection of the new Raspberry Pi 3 if you do not have an ethernet plug nearby.

Equipment used

The Raspberry Pi 3 is very well adapted to the realization of a home automation box 100% Domoticz. Here is a typical configuration.

raspberry-pi3 Raspberry Pi 3

About €40

convertisseur hdmi dvi HDMI adapter

To DVI, about €7

To VGA, about €6

case raspberry pi 3 Raspberry Pi 3 case

A partir de 6,99€

carte sd SD card8 Go SDHC Classe 10

From  €5.90€

chargeur raspbery pi 3 5v 3000ma 5V – 2.5A power supply

From €4

That is a budget of about €65.

Installation of Domoticz on Raspbian

Let’s start by updating the system

Then we check that the file system is extended and that the whole place of the SD card is available. run

Then go to 1 Expand Filesystem

domoticz-expand filesystem domoticz

Restart the RPI with sudo reboot to complete the operation.


Create the Domoticz user

Even if it is not necessary, it is best to create a domoticz user. Run the following command and fill in the requested information (the account name and password at a minimum). For security, give a password different from that of the user pi.

The new user is added to the sudo group to allow it to use this command.

Change user

Then, you modify the configuration to allow the user to execute sudo commands without entering the password.

At the end of the file, insert this new line

Save with Ctrl + X then Y.

Installing Domoticz

Now that everything is ready, change account and run the installation with this curl command.

This simple command will take care of everything. From the installation of the dependencies to the configuration via small configurators that will appear as the installation.

domoticz orange pi lite installation armbian raspbian

Configuration start


You can activate change the HTTP and HTTPS ports

domoticz orange pi lite installation armbian port http raspbian

Change the destination folder

domoticz orange pi lite installation armbian raspberry pi raspbian folder destination

Installation is completed

domoticz orange pi lite installation armbian raspberry pi raspbian complete

Once the installation is complete, close the last window and wait for the Domoticz service to start before you connect from a browser to your new smart home box.

Configure the keyboard

Then run sudo raspi-config  to run the configuration utility. Go to option (5) Internationalization Options then Change Local. Choose your language into the list then validate (2 times).

raspi-config domoticz francais

When done, go back to Internationalization Options and go to Change Keyboard Layout. In the list select PC Generic (intl) then in the keyboard layout English – French (variant). If you do not know which model to choose do not change anything to the following options.

You can now quit raspi-config and reboot your Pi so that the settings apply with the command

Configure the Wi-Fi connection

Start raspi-config and go to option (5) Internationalization Options then Change Wi-Fi Country. In the list choose FR France. Confirm and exit raspi-config

We will now verify that there is a wlan0 connection. Normally it is already pre-configured on Raspbian.

You should have the following lines in the configuration. If not, add the following lines.

Press CTRL+X then Y to save and exit nano.

Now you need to set up authentication to the WiFi network. Type

Your configuration file should look like this

Save and exit nano and then apply the changes by restarting your Pi (sudo reboot).

You can also manually restart the WiFi interface like this. The wlan0 interface is turned off.


After restarting (or doing ifdown / ifup), type ifconfig. If your configuration is correct, on the 2nd line of the block wlan0 is the ip address of your Domoticz server (it also appears at startup).

raspberry pi ifconfig domoticz adresse ip serveur

Enable SSH connection

Enabling the ssh connection will allow you to access your Domoticz server from another machine without the need to connect a keyboard and a screen to your Raspberry Pi.

To enable ssh, go to option (8) Advanced Options then (A4) SSH. Validate Enable.

Now you can access your Raspberry from Windows using Putty or from the Terminal under Mac OS X and Linux using the command

Librairie absent on Raspbian Stretch

The error was pointed out to me by Philippe in the comments. Several libraries (, libcrypto ..) are absent on Raspbian Stretch (version of August 2017), which prevents the start of Domoticz. When you launch Domoticz, you will get the following message

Here is how to install the library (thanks to Philippe who found the solution on the official forum of Domoticz).

The Linux ldd command verifies that all necessary libraries are installed. Run the following command by changing the path if necessary.

The command returns the list of required libraries and indicates the installation path. If a library is missing, the message not found is shown next to it. for example

To manually install the library, we will already download it

Then install it

And here, Domoticz will start normally. obsolete library on Raspbian Stretch, updated November 2017

Since the beginning of November 2017, the library seems to no longer be integrated into the Raspbian Strech repository. Here’s how to install the library. A big thank you to Guillaume for the tip.

We will already start by adding the library to the list of sources file. Open it

And add this line at the end of the file

Save it with CTRL + X, Y. Then run these two commands to install the library

And that’s it, everything should be in order

Access the Domoticz server from a web browser

Now that our server is ready, we can access it from any web browser, including from a tablet by entering the following URL:


raspberry pi domoticz

Subscribe to the weekly newsletter

No spam and no other use will be made of your email. You can unsubscribe anytime.

  • Olivier Martin

    Bonjour, supprimer les espaces avant et après le + :
    sudo dpkg -i libssl1.0.0_1.0.1t-1 + deb8u6_armhf.deb
    devient :
    sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb

    • Merci beaucoup Olivier. C’est corrigé !

  • Peter Zeilstra

    Could you tell me how to add the repository line to sudo nano /etc/apt/sources.list?

    • Hello Peter, just copy/past or type this line at the end of the file.

  • Rob Phillips-Legge

    getting a message when trying to run ldd that ./domoticz is not regular file. any suggestions?

  • Ciuku Ciuk

    “GPIO INIT ERROR” when i try to choose Pin. Can somebody help me with configure RPi ?

DIY Projects