Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blocks:zigbee [2019-03-18 19:53] admin created |
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 62: | Line 62: | ||
- Log in using the password specified during the controller installation. | - Log in using the password specified during the controller installation. | ||
- If requested, configure the ConBee USB transceiver. Make sure it uses the latest firmware version. If not, an option will appear allowing you to update it (requires an internet connection). | - If requested, configure the ConBee USB transceiver. Make sure it uses the latest firmware version. If not, an option will appear allowing you to update it (requires an internet connection). | ||
+ | |||
+ | :!: In some cases, logging in using // | ||
{{ : | {{ : | ||
- Click the " | - Click the " | ||
- | - Connect and turn on a lamp. | ||
- Click "Add new lights" | - Click "Add new lights" | ||
+ | - Connect or turn on on a lamp. | ||
{{ : | {{ : | ||
- | The controller will now search for the new light, adding it to the list, as shown below. In some cases. you may need to move the light close to the ConBee | + | The controller will now search for the new light, adding it to the list, as shown below. In some cases. you may need to move the light close to the transceiver for it to be found. |
- | {{ : | + | {{ : |
If the lamp or plug has been used with another gateway before, or was bought with a preconfigured remote control, it is already locked to that controller, and needs to be reset in order to add it the new network. The procedure for resetting a zigbee device varies, but here are some common methods: | If the lamp or plug has been used with another gateway before, or was bought with a preconfigured remote control, it is already locked to that controller, and needs to be reset in order to add it the new network. The procedure for resetting a zigbee device varies, but here are some common methods: | ||
* 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. | ||
- | :!: If the above doesn' | + | :!: Even if the lamp is factory reset, you may still need to power it up while the search is running. |
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. | ||
{{ : | {{ : | ||
- | |||
==== Arranging Devices into Groups ==== | ==== Arranging Devices into Groups ==== | ||
Line 101: | 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 114: | 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 186: | 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 | ||
+ | </ | ||
+ |