hassio-addons / addon-nut

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

list_usb_devices also displays NUT addon configuration #335

Closed aquette closed 9 months ago

aquette commented 9 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 9 months ago

Additional notes:

aquette commented 9 months ago

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

aquette commented 9 months ago

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