Skip to content

Commit b80b21e

Browse files
authored
create deCONZ device config
1 parent c584129 commit b80b21e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.templates/deconz/build.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
#deCONZ device configuration
4+
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 \
7+
"ConBeeII" "ConBee II " "ON" \
8+
"ConBee" "ConBee " "OFF" \
9+
"RaspBee" "RaspBee " "OFF" \
10+
3>&1 1>&2 2>&3)
11+
12+
case $device_selection in
13+
14+
"ConBeeII")
15+
echo "...copied ConBee II config from template"
16+
echo "" >>docker-compose.yml
17+
cat .templates/deconz/service_conbee_II.yml >>docker-compose.yml
18+
;;
19+
"ConBee")
20+
echo "...copied ConBee config from template"
21+
echo "" >>docker-compose.yml
22+
cat .templates/deconz/service_conbee.yml >>docker-compose.yml
23+
;;
24+
"RaspBee")
25+
echo "...copied RaspBee config from template"
26+
echo "" >>docker-compose.yml
27+
cat .templates/deconz/service_raspbee.yml >>docker-compose.yml
28+
;;
29+
esac

0 commit comments

Comments
 (0)