Zigbee2mqtt Installation Help
Posted: Sun Mar 05, 2023 8:27 am
Please post requests for help and questions about the installation of Zigbee2mqtt in this thread where knowledgeable forum users can offer help and guidance.
Software Support and Home Automation Forum
https://forums.indigodomo.com/
error gathering device information while adding custom device "./dev/tty.usbmodem202303241146591": no such file or directory
system_profiler SPUSBDataType
USB:
USB 3.0 Bus:
...
SONOFF Zigbee 3.0 USB Dongle Plus V2:
Product ID: 0x55d4
Vendor ID: 0x1a86
Version: 4.42
Serial Number: 20230324114659
Speed: Up to 12 Mb/s
Manufacturer: ITEAD
Location ID: 0x14100000 / 15
Current Available (mA): 500
Current Required (mA): 132
Extra Operating Current (mA): 0
ls -l /dev/tty.*
crw-rw-rw- 1 root wheel 0x16000006 2 May 13:05 /dev/tty.Bluetooth-Incoming-Port
crw-rw-rw- 1 root wheel 0x16000002 2 May 13:04 /dev/tty.usbmodem14601
crw-rw-rw- 1 root wheel 0x16000008 6 May 17:32 /dev/tty.usbmodem147101
crw-rw-rw- 1 root wheel 0x16000004 6 May 17:32 /dev/tty.usbmodem202303241146591
crw-rw-rw- 1 root wheel 0x16000000 2 May 13:04 /dev/tty.usbserial-A118WGTK
ls -l /dev/tty.usbmodem202303241146591
crw-rw-rw- 1 root wheel 0x16000004 6 May 17:32 /dev/tty.usbmodem202303241146591
test -w /dev/tty.usbmodem202303241146591 && echo success || echo failure
success
USB connected adapter with external antenna.
Note before buying that ITead slightly confusingly now sells both the "ZBDongle-E" (based on EFR32MG21) and "ZBDongle-P" (based on CC2652P).
This section is about the "ZBDongle-E
If Zigbee2MQTT fails to start, try adding the following to your configuration.yaml
serial:
adapter: ezsp
version: '3.8'
services:
mqtt:
image: eclipse-mosquitto:2.0
restart: unless-stopped
volumes:
- "./mosquitto-data:/mosquitto"
ports:
- "1883:1883"
- "9001:9001"
command: "mosquitto -c /mosquitto-no-auth.conf"
zigbee2mqtt:
container_name: zigbee2mqtt
restart: unless-stopped
image: koenkk/zigbee2mqtt
volumes:
- ./zigbee2mqtt-data:/app/data
- /run/udev:/run/udev:ro
ports:
- 8080:8080
environment:
- TZ=Europe/Berlin
devices:
# using the device name results in 'no such file or directory' - I'm just listing all ttys here which seems to work?
- /dev/tty:ttywf
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://mqtt
serial:
port: /dev/tty.wchusbserial202303241146591
adapter: ezsp
frontend:
port: 8080
advanced:
# Optional: ZigBee pan ID (default: shown below)
# Setting pan_id: GENERATE will make Zigbee2MQTT generate a new panID on next startup
pan_id: GENERATE
# Optional: Zigbee extended pan ID (default: shown below)
# ext_pan_id: [0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD]
# Optional: ZigBee channel, changing requires re-pairing of all devices. (Note: use a ZLL channel: 11, 15, 20, or 25 to avoid Problems)
# (default: 11)
channel: 11
# Optional: network encryption key, will improve security
# Note: changing requires repairing of all devices (default: shown below)
network_key: GENERATE
server: mqtt://<ip address of mqtt server>:1883
sudo chown -R pi:pi /opt/zigbee2mqtt
sudo chown -R ${USER}: /opt/zigbee2mqtt
Zigbee2mqtt Bridge Error MQTT topic 'zigbee2mqtt/0x282c02bfffe87858' is missing 'device' and|or 'ieeAddr' keys in JSON payload:
Zigbee2mqtt Bridge Warning {"battery":100,"battery_low":false,"contact":true,"linkquality":171,"tamper":false,"voltage":3100}
mundmc wrote:NEVER MIND!
This rocks!