Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blocks:zigbee [2019-12-19 14:22]
mattias [Adding Lights and Other Devices]
blocks:zigbee [2023-07-18 11:06] (current)
melvin [Using DeConz in Headless Mode]
Line 103: Line 103:
 ===== Installing the Blocks DeConz Driver ===== ===== Installing the Blocks DeConz Driver =====
  
-Download the DeConz driver from the [[https://github.com/pixilab/blocks-script|driver repository]], along with the latest version of the [[https://int.pixilab.se/docs/blocks/drivers/concepts#using_a_device_driver|support files]] for your Blocks server.+Download the DeConz driver from the [[https://github.com/pixilab/blocks-script|driver repository]], along with the latest version of the [[blocks:drivers:concepts#using_a_device_driver|support files]] for your Blocks server.
  
-If your server isn't set up to [[https://int.pixilab.se/docs/blocks/drivers/troubleshooting#reloading_changes_automatically|automatically load]] new drivers, you need to restart your server to make the driver available.+If your server isn't set up to [[blocks:drivers:troubleshooting#reloading_changes_automatically|automatically load]] new drivers, you need to restart your server to make the driver available.
  
 ==== Configuring the DeConz Device ==== ==== Configuring the DeConz Device ====
Line 188: Line 188:
 ===== Using DeConz in Headless Mode ===== ===== Using DeConz in Headless Mode =====
  
-While running the DeConz controller GUI, as described above, is useful for initial tests, a more robust way is to run it as a headless service. This can be accomplished by enabling the //deconz.service// system daemon. Use [[https://int.pixilab.se/docs/blocks/server/advanced_server_configuration#introducing_webmin|webmin]] to enable and start this service, or use the Linux terminal command //systemctl//.+While running the DeConz controller GUI, as described above, is useful for initial tests, a more robust way is to run it as a headless service. This can be accomplished by enabling the //deconz.service// system daemon. Use [[blocks:server:advanced_server_configuration:webmin|webmin]] to enable and start this service, or use the Linux terminal command //systemctl//. 
 + 
 +Alternatively, to be able to access the deconz GUI, launch deconz using a //user service// instead, similar to how Blocks is launched. To do so, put the following into file "/home/pixi-server/.config/systemd/user/deconz-gui.service": 
 + 
 +<code> 
 +[Unit] 
 +Description=deCONZ: ZigBee gateway -- GUI/REST API 
 +Wants=deconz-init.service deconz-update.service 
 +After=default.target 
 + 
 +[Service] 
 +Environment="DISPLAY=:0" 
 +ExecStart=/usr/bin/deCONZ --http-port=9080 
 +Restart=on-failure 
 +StartLimitIntervalSec=0 
 +RestartSec=30 
 + 
 +[Install] 
 +WantedBy=default.target 
 +</code> 
 + 
 +Then start the service with the following terminal command under the pixi-server user: 
 +<code> 
 +systemctl --user enable --now deconz-gui 
 +</code> 
 +