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.

  1. Create Systemd override for deconz-gui

    sudo systemctl edit deconz-gui
    

    This opens the editor, here replace all template content with the following.

    [Service]
    ExecStart=
    ExecStart=/usr/bin/deCONZ --http-port=9000
    

    Note: 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.

  2. Reload the Systemd daemon to apply the changes:

    sudo systemctl daemon-reload
    
  3. Restart deCONZ

    sudo systemctl restart deconz-gui
    

NOTES

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.

⚠️ **GitHub.com Fallback** ⚠️