Domoticz: login or password lost, reinitialized password

If you have lost your Domoticz password or login, here’s how to re-initialize your permissions using an SSH connection.

From a computer on the network, launch the Terminal or Power Shell and open an SSH connection

ssh pi@IP_DOMOTICZ

Go to the folder and stop the service

cd domoticz
sudo service domoticz.sh stop

Stopping may take a few seconds. You can check that Domoticz is stopped by refreshing the browser

domoticz offline

Or execute this command

$ sudo service domoticz.sh status 
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh)
   Active: inactive (dead) since dim. 2017-02-05 11:09:48 UTC; 2min 7s ago
  Process: 29163 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)
  Process: 615 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

févr. 02 06:17:35 domoticz domoticz.sh[615]: 2017-02-02 06:17:35.158  Build Hash: 15b013c, Date: 2016-11-10...4:33
févr. 02 06:17:35 domoticz domoticz[633]: Domoticz is starting up....
févr. 02 06:17:35 domoticz domoticz.sh[615]: 2017-02-02 06:17:35.159  System: Raspberry Pi
févr. 02 06:17:35 domoticz domoticz.sh[615]: 2017-02-02 06:17:35.159  Startup Path: /home/pi/domoticz/
févr. 02 06:17:35 domoticz domoticz.sh[615]: domoticz: Domoticz is starting up....
févr. 02 06:17:35 domoticz domoticz[647]: Domoticz running...
févr. 02 06:17:35 domoticz systemd[1]: Started LSB: Home Automation System.
févr. 05 11:09:18 domoticz systemd[1]: Stopping LSB: Home Automation System...
févr. 05 11:09:18 domoticz domoticz[647]: Domoticz is exiting...
févr. 05 11:09:21 domoticz domoticz[647]: Domoticz stopped...
févr. 05 11:09:48 domoticz systemd[1]: Stopped LSB: Home Automation System.
févr. 05 11:11:53 domoticz systemd[1]: Stopped LSB: Home Automation System.
Hint: Some lines were ellipsized, use -l to show in full.

Now we restart the service with the parameter -nowwpwd

./domoticz -nowwwpwd

You can now change the connection settings from the settings -> Security

domoticz parametres securite identifiant mot de passe

Once everything is configured, return to the Terminal and stop the service with CTRL + C. Restart the service with

sudo service domoticz.sh start

Unable to connect to Domoticz after setting up password

After activating the protection by login and password, when you connect Domoticz does not return any error but one remains blocked on the page of connection. This problem may occur with some browsers (including Chrome). In this case, you must empty the browser cache before you can connect.

Subscribe to the weekly newsletter

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

We will be happy to hear your thoughts

Leave a Reply

DIY Projects
%d bloggers like this: