File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ options:
29
29
schema :
30
30
log_level : list(trace|debug|info|notice|warning|error|fatal)?
31
31
autoconf_usb_devices : bool?
32
+ list_usb_devices : bool?
32
33
autoconf_remote_nut_devices : bool?
33
34
manually_edit_devices : bool?
34
35
devices :
Original file line number Diff line number Diff line change @@ -22,6 +22,17 @@ find /etc/nut -not -perm 0660 -type d -exec chmod 0660 {} \;
22
22
rm -f " ${UPS_CONF} "
23
23
touch " ${UPS_CONF} "
24
24
25
+ # Adapt driver log level to the system one
26
+ if bashio::debug; then
27
+ echo " debug_min 5" >> " ${UPS_CONF} "
28
+ fi
29
+
30
+ # USB Debugging
31
+ if bashio::config.true ' list_usb_devices' ; then
32
+ bashio::log.info " Connected USB devices:"
33
+ lsusb
34
+ fi
35
+
25
36
# Check for USB devices first
26
37
if bashio::config.true ' autoconf_usb_devices' ; then
27
38
You can’t perform that action at this time.
0 commit comments