Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:zigbee [2019-04-11 17:21] admin [Adding Lights and Other Devices] |
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, | + | Many manufacturers tends to have their own controllers, |
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' | 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' | ||
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:// | + | * 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:// |
* 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' | :!: Even if the lamp is factory reset, you may still need to power it up while the search is running. If the above doesn' | ||
+ | |||
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:// | + | Download the DeConz driver from the [[https:// |
- | If your server isn't set up to [[https:// | + | If your server isn't set up to [[blocks:drivers:troubleshooting# |
==== Configuring the DeConz Device ==== | ==== Configuring the DeConz Device ==== | ||
Line 115: | Line 116: | ||
As an additional security measure, the driver needs to be authorized to communicate with the DeConz controller program. Until this is done, no commands will be accepted. Proper authentication is indicated by the // | As an additional security measure, the driver needs to be authorized to communicate with the DeConz controller program. Until this is done, no commands will be accepted. Proper authentication is indicated by the // | ||
- | To authorize the driver, do as follows: | + | To authorize the driver, do as follows |
- In PhosCon web UI, click the hamburger menu in the top left hand corner and choose Gateway. | - In PhosCon web UI, click the hamburger menu in the top left hand corner and choose Gateway. | ||
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 // | + | 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 // |
+ | |||
+ | Alternatively, | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=deCONZ: | ||
+ | Wants=deconz-init.service deconz-update.service | ||
+ | After=default.target | ||
+ | |||
+ | [Service] | ||
+ | Environment=" | ||
+ | ExecStart=/ | ||
+ | Restart=on-failure | ||
+ | StartLimitIntervalSec=0 | ||
+ | RestartSec=30 | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=default.target | ||
+ | </ | ||
+ | |||
+ | Then start the service with the following terminal command under the pixi-server user: | ||
+ | < | ||
+ | systemctl --user enable --now deconz-gui | ||
+ | </ | ||
+ |