kardia-as / zigpy-zboss

GNU General Public License v3.0
40 stars 4 forks source link

Add device path attribute to the factory reset script #25

Closed DamKast closed 1 year ago

DamKast commented 1 year ago

When factory resetting the module, it is automatically detecting the path when the dongle is used. But when used with another nRF52840 based module, it is not necessary detected. This will add the possibility to specify the device path when calling python -m zigpy_zboss.tools.factory_reset_ncp <path>

puddly commented 1 year ago

If you implement this functionality as ControllerApplication.reset_network_info, you can use the zigpy-cli interface directly (ZHA also uses this when migrating adapters):

$ zigpy radio zboss <path> reset