zigpy-znp icon indicating copy to clipboard operation
zigpy-znp copied to clipboard

Unable to form network - No module named form_network

Open kallisti5 opened this issue 2 years ago • 2 comments
trafficstars

$ 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

:-\

kallisti5 avatar Aug 23 '23 14:08 kallisti5

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 avatar Aug 23 '23 14:08 puddly

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

puddly avatar Aug 23 '23 14:08 puddly