Please note: this page has been translated automatically. If you can, you should read it in one of these languages:

Install domoticz.

Here is an example of a domoticz installation under raspbian.

We start by creating a dedicated user, then we install domoticz:

sudo bash
adduser domotiko
cd /home/domotiko
curl -sSL install.domoticz.com | bash

Press Enter when the presentation is displayed ( <OK> estas la sola elekto).

Selection of services: leave http and https checked, go to OK, press Enter.
«HTTP Port number:» leave 8080, go to OK, press Enter.
«HTTPS Port number:» enter 8443, go to OK, Enter.
«Installation Folder:» Put /home/domotiko/domoticz Go OK, input key.
«Installation Complete!» , come in.

Now we create the service «systemd» , which will launch domoticz:

service domoticz stop
rm /etc/*.d/*domoticz*
echo "[Unit]
Description=domoticz

[Service]
ExecStart=/home/domotiko/domoticz/domoticz -daemon -www 8080 -sslwww 8443 -pidfile /var/run/domotiko/domoticz.pid
User=domotiko
RuntimeDirectory=domotiko
LogsDirectory=domotiko
Restart=on-abort
PIDFile=/var/run/domotiko/domoticz.pid

[Install]
WantedBy=multi-user.target
" >/etc/systemd/system/domoticz.service
echo "domotiko ALL=(root) NOPASSWD: /usr/sbin/service domoticz.sh *,/bin/systemctl stop domoticz.service,/bin/systemctl start domoticz.service
" >/etc/sudoers.d/010_domoticz
chmod 440 /etc/sudoers.d/010_domoticz
systemctl daemon-reload
chown -R domotiko.domotiko domoticz
systemctl enable domoticz
systemctl start domoticz

domoticz is installed and accessible:

some configuration:
go to «Setup –> Settings»
change language, define location
define security: username and password
define the “Local Area Networks”, for example: «127.0.0.*;192.168.0.*»
Activate “Auto save”
Hardware / Side devices: disable “Accept new devices”
Click “Apply parameters”.

Now we need to add the hardware.
see https://www.domoticz.com/wiki/Getting_started

For more details, see https://www.domoticz.com/wiki/Raspberry_Pi