我最近购买了一个“Sonoff Zigbee 3.0 USB Dongle Plus”(型号“ZBDongle-E”)和一个Lixee ZLinky_TIC。
我想将它们配对并使用简单的命令行获取由 ZLinky_TIC 测量的数据。此外,我想避免安装家庭自动化框架,如家庭助理、MQTT 等,因为我认为这是一种矫枉过正...... 在 Ubuntu (22.04) 上,我使用
zigpy
安装了
bellows
(https://github.com/zigpy/zigpy) 和 pip
(https://github.com/zigpy/bellows) .首先,我想扫描可用的组件(类似于我们可以使用 Wifi 或蓝牙进行的操作)。
bellows
命令提供了
scan
命令,但需要指定“device
”。有谁知道如何使用这个命令并可以告诉我如何指定设备参数吗?主要问题
--device
选项需要
TEXT
但 应该说明什么? 附录:
bellows
~$ bellows --help
Usage: bellows [OPTIONS] COMMAND [ARGS]...
Options:
-v, --verbosity LVL Either CRITICAL, ERROR, WARNING, INFO or
DEBUG
-d, --device TEXT [required]
-b, --baudrate INTEGER
--flow-control [software|hardware]
use hardware flow control
--help Show this message and exit.
Commands:
backup Backup NCP config to stdio.
bootloader Start bootloader
config Get/set configuration on the NCP
devices Show device database
dump Capture frames on CHANNEL and write to FILE in tcpdump...
form Form a new ZigBee network
info Get NCP information
join Join an existing ZigBee network as an end device
leave Leave the ZigBee network
permit Allow devices to join this ZigBee network
permit-with-key Allow devices to join this ZigBee network using an...
restore Backup NCP config to stdio.
scan Scan for networks or radio interference
stream Transmit random stream of characters on CHANNEL with...
tone Transmit continuous unmodulated tone on CHANNEL with...
zcl Perform ZCL operations against a device
zdo Perform ZDO operations against a device
Zigbee 更适合 wifi 而不是蓝牙。为了嗅探流量(再次使用传统工具),您必须创建网络,加入设备,以嗅探器模式添加 EZSP,使用
https://github.com/zsmartsystems/com.zsmartsystems.zigbee.snifferbellows -d /dev/ttyACM0 --flow-control hardware -b 115200 info
[MAC GOES HERE]
[0xAAAA]
[<EmberNetworkStatus.JOINED_NETWORK: 2>]
[<EmberStatus.SUCCESS: 0>, <EmberNodeType.ROUTER: 2>,
......
-d 指定设备