zigpy / zigpy-znp

TI CC2531, CC13x2, CC26x2 radio support for Zigpy and ZHA
GNU General Public License v3.0
149 stars 40 forks source link

Unable to form network - No module named form_network #223

Open kallisti5 opened 1 year ago

kallisti5 commented 1 year ago
$ python -m zigpy_znp.tools.energy_scan /dev/ttyUSB0 
2023-08-23 09:02:34.211 freeframe __main__ INFO Starting up zigpy-znp
2023-08-23 09:02:36.796 freeframe __main__ ERROR Could not start application: 
2023-08-23 09:02:36.797 freeframe __main__ ERROR Form a network with `python -m zigpy_znp.tools.form_network`
$ python -m zigpy_znp.tools.form_network /dev/ttyUSB0 
/usr/bin/python: No module named zigpy_znp.tools.form_network

:-\

puddly commented 1 year ago

The zigpy-znp network formation tools are deprecated (though this is unfortunately undocumented, sorry!), use zigpy-cli instead: https://github.com/zigpy/zigpy-cli

puddly commented 1 year ago

Also, if you are just trying to perform an energy scan and use ZHA, this information will be in the diagnostic JSON for the integration under an energy_scan key:

image