Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for Conbee II adaptor in addition to Texas Instruments #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/bin/bash

function detect_zigbee_device {
if usb_dev=$(lsusb -d 0451:); then
if [[ $(lsusb -d 0451:) || $(lsusb -d 1cf1:) ]]; then
usb_dev_count=$(ls -1 /dev/ttyACM* 2>/dev/null | wc -l)
if [ "$usb_dev_count" -gt 1 ]; then
>&2 echo "There are multiple devices connected, that could be Zigbee USB adaptors. Please check data/zigbee/configuration.yml, if the device is wrong. /dev/ttyACM0 is used as the default."

echo "/dev/ttyACM0"
fi

if [ -c /dev/ttyACM0 ]; then
Expand All @@ -15,7 +13,7 @@ function detect_zigbee_device {
>&2 echo "I could not find /dev/ttyACM0. Please check your hardware."
fi
else
>&2 echo No Texas Instruments USB device found.
>&2 echo No Texas Instruments or Dresden Elektronik USB device found.

echo "False"
fi
Expand Down