How to change deCONZ HTTP and Websocket port on Linux - dresden-elektronik/deconz-rest-plugin GitHub Wiki
Changing any default settings like the HTTP port is done via Systemd override files. In the following guide we change the default port 80 to 9000.
Important: The following steps are for the deconz-gui service, if you are running the headless version replace deconz-gui with deconz.
-
Create Systemd override for deconz-gui
sudo systemctl edit deconz-guiThis opens the editor, here replace all template content with the following.
[Service] ExecStart= ExecStart=/usr/bin/deCONZ --http-port=9000Note: The first empty
ExecStart=is required to clear the former command line.Press Ctrl+O, then Enter and Ctrl+X to save the changes and exit the editor.
-
Reload the Systemd daemon to apply the changes:
sudo systemctl daemon-reload -
Restart deCONZ
sudo systemctl restart deconz-gui
All deCONZ command line parameters can be overridden in the same manner.
Refer to deCONZ command line parameters for a complete list of all available parameters.