hassio-addons / addon-nut

Network UPS Tools - Home Assistant Community Add-ons
https://addons.community
MIT License
188 stars 36 forks source link

list_usb_devices also displays NUT addon configuration #335

Closed aquette closed 10 months ago

aquette commented 11 months ago

Proposed Changes

When enabling list_usb_devices option, also call nut-scanner -U, beside from lsusb, to detect supported USB devices and output the expected configuration. This should improve NUT addon usability and supportability

Related Issues

([Github link][autolink-references] to related issues or pull requests)

[autolink-references]: #333 #322

aquette commented 11 months ago

Additional notes:

aquette commented 11 months ago

Reference: https://github.com/networkupstools/nut/pull/2220

aquette commented 10 months ago

closing in favor of the new SmartNUT Add-on: https://github.com/aquette/addon-smartnut/blob/main/smartnut/DOCS.md