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-04-11 17:23]
admin [Authorizing the Driver]
blocks:zigbee [2023-07-18 11:06] (current)
melvin [Using DeConz in Headless Mode]
Line 26: Line 26:
 ===== Controller ===== ===== Controller =====
  
-Many manufacturers tends to have their own controllers, working primarily with their products. An example here is the [[https://www2.meethue.com/en-us/p/hue-bridge/046677458478|Philips HUE Bridge]]. Sometimes, such a controller can also work with other brands' zigbee products, but bot always. +Many manufacturers tends to have their own controllers, working primarily with their products. An example here is the [[https://www2.meethue.com/en-us/p/hue-bridge/046677458478|Philips HUE Bridge]]. Sometimes, such a controller can also work with other brands' zigbee products, but not always. 
  
 Another option is to use a controller from an independent company, specializing in this kind of products. Such a controller often works with a wide variety of zigbee products, since they're in the business of selling the controller itself, rather than their own brand of lamps. Another option is to use a controller from an independent company, specializing in this kind of products. Such a controller often works with a wide variety of zigbee products, since they're in the business of selling the controller itself, rather than their own brand of lamps.
Line 80: Line 80:
  
   * An IKEA lamp can be reset by turning its power on/off rapidly six times in a row. It will then blink briefly to indicate it has been reset.     * An IKEA lamp can be reset by turning its power on/off rapidly six times in a row. It will then blink briefly to indicate it has been reset.  
-  * A Philips HUE light can be reset by pressing the ON and OFF button on a hue remote for about 15 seconds, as shown in [[https://youtu.be/qvlEAELiJKs|this video]].+  * A Philips HUE light can be reset by pressing the ON and OFF button on a hue remote for about 15 seconds, as shown in [[https://youtu.be/qvlEAELiJKs|this video]]. Do the reset cycle while searching for new Lights in Phoscon for easy adoption
   * Most plugs have a small button that can be used to manually turn the plug on and off. Keeping this button pressed for several seconds performs a reset. A flashing light on the plug indicates it's ready to be adopted into a new network.   * Most plugs have a small button that can be used to manually turn the plug on and off. Keeping this button pressed for several seconds performs a reset. A flashing light on the plug indicates it's ready to be adopted into a new network.
  
 :!: Even if the lamp is factory reset, you may still need to power it up while the search is running. If the above doesn't work for your device, search the manufacturers website for the term "reset" or "factory reset". :!: Even if the lamp is factory reset, you may still need to power it up while the search is running. If the above doesn't work for your device, search the manufacturers website for the term "reset" or "factory reset".
 +
  
 Give the lamp a meaningful name, which will later be used to program it from Blocks. Give the lamp a meaningful name, which will later be used to program it from Blocks.
Line 102: 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 187: 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> 
 +