Skip to content

Commit 576c88f

Browse files
authored
Merge pull request #57 from DIYtechie/deconz
Added troubleshooting text, new menu text and minor code cleanup
2 parents 993e358 + 1cc95db commit 576c88f

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

.templates/deconz/build.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#deCONZ device configuration
44

5-
device_selection=$(whiptail --radiolist --title "deCONZ device configuration" --notags \
6-
"Use the [SPACEBAR] to select your Zigbee device from the list below and make sure it is plugged in (if not, press [ESC])." 20 78 12 \
5+
device_selection=$(whiptail --radiolist --title "Select deCONZ gateway" --notags \
6+
"Use the [SPACEBAR] to select your deCONZ gateway from the list below AND MAKE SURE IT IS PLUGGED IN (if not, press [ESC])." 20 78 12 \
77
"ConBeeII" "ConBee II " "ON" \
88
"ConBee" "ConBee " "OFF" \
99
"RaspBee" "RaspBee " "OFF" \
@@ -12,18 +12,15 @@ device_selection=$(whiptail --radiolist --title "deCONZ device configuration" --
1212
case $device_selection in
1313

1414
"ConBeeII")
15-
echo "...copied ConBee II config from template"
16-
echo "" >>docker-compose.yml
1715
cat .templates/deconz/service_conbee_II.yml >>docker-compose.yml
16+
echo "...copied ConBee II config from template"
1817
;;
1918
"ConBee")
20-
echo "...copied ConBee config from template"
21-
echo "" >>docker-compose.yml
2219
cat .templates/deconz/service_conbee.yml >>docker-compose.yml
20+
echo "...copied ConBee config from template"
2321
;;
2422
"RaspBee")
25-
echo "...copied RaspBee config from template"
26-
echo "" >>docker-compose.yml
2723
cat .templates/deconz/service_raspbee.yml >>docker-compose.yml
24+
echo "...copied RaspBee config from template"
2825
;;
2926
esac

docs/deconz.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,29 @@
33
- [Docker](https://hub.docker.com/r/marthoc/deconz)
44
- [Website](https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/README.md)
55

6-
## Pre-installation
7-
Before running the command that creates the deconz Docker container (`docker-compose up -d`), you may need to add your Linux user to the dialout group, which allows the user access to serial devices (i.e. Conbee/Conbee II/RaspBee):
6+
## Troubleshooting
7+
Make sure your Conbee/Conbee II/RaspBee gateway is connected. If your gateway is not detected, or no lights can be paired, try moving the device to another usb port, reboot your computer and build the stack from the menu again `cd ~/IOTstack && bash ./menu.sh` (select "Pull full service from template" if prompted). The gateway must be plugged in when the deCONZ Docker container is being built.
88

9-
`sudo usermod -a -G dialout pi` (pi user being used as an example)
9+
Before running `docker-compose up -d`, make sure your Linux user is part of the dialout group, which allows the user access to serial devices (i.e. Conbee/Conbee II/RaspBee). If you are not certain, simply add your user to the dialout group by running the following command (username "pi" being used as an example): `sudo usermod -a -G dialout pi`
10+
11+
Now run `docker-compose up -d` to build the stack.
12+
13+
If you are still experiencing issues, run `docker-compose down` to remove all containers from the stack and then `docker-compose up -d` to build them again.
14+
15+
Use a 0.5-1m usb extension cable with ConBee (II) to avoid wifi and bluetooth noise/interference from your Raspberry Pi (recommended by the manufacturer and often the solution to poor performance).
1016

1117
## Accessing the Phoscon UI
1218
The Phoscon UI is available using port 8090 (http://your.local.ip.address:8090/)
1319

1420
## Viewing the deCONZ Zigbee mesh
15-
The Zigbee mesh can be viewed using VNC (port 5901). The default VNC password is "changeme".
21+
The Zigbee mesh can be viewed using VNC on port 5901. The default VNC password is "changeme".
1622

1723
## Connecting deCONZ and Node-RED
18-
Install [node-red-contrib-deconz](https://flows.nodered.org/node/node-red-contrib-deconz) via the "Manage palette" menu in Node-RED (if it is not already pre-installed) and follow the 2 simple steps in the video below:
24+
Install [node-red-contrib-deconz](https://flows.nodered.org/node/node-red-contrib-deconz) via the "Manage palette" menu in Node-RED (if not already installed) and follow these 2 simple steps (also shown in the video below):
25+
26+
Step 1: In the Phoscon UI, Go to Settings > Gateway > Advanced and click "Authenticate app".
27+
28+
Step 2: In Node-RED, open a deCONZ node, select "Add new deonz-server", insert your ip adress and port 8090 and click "Get settings". Click "Add", "Done" and "Deploy". Your device list will not be updated before deploying.
29+
1930

2031
![installing deCONZ](https://github.com/DIYtechie/resources/blob/master/images/Setup%20deCONZ%20in%20Node-RED.gif?raw=true)

0 commit comments

Comments
 (0)