Why is supervisor.hardware.monitor removing and adding USB devices

It appears that Supervisor suddenly decided to remove my Bluetooth USB device - or did it detect it appeared to have been removed and Supervisor reacted to that?

21-02-24 04:53:44 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/103

A quick look through the syslog and it seems this happens fairly regularly! On the last occasion though, it did not add it back in. Looking at the incrementing numbers this seems to be happening a lot.

The final ‘ADD’ is me manually removing and reinserting the dongle.

/var/log/syslog:Feb 24 04:53:44 hassio hassio-supervisor[7409]: #033[32m21-02-24 04:53:44 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/103#033[0m
/var/log/syslog:Feb 24 06:53:57 hassio hassio-supervisor[7409]: #033[32m21-02-24 06:53:57 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD usb hardware /dev/bus/usb/001/104#033[0m
/var/log/syslog.1:Feb 23 06:21:51 hassio hassio-supervisor[7409]: #033[32m21-02-23 06:21:51 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/096#033[0m
/var/log/syslog.1:Feb 23 06:21:54 hassio hassio-supervisor[7409]: #033[32m21-02-23 06:21:54 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD usb hardware /dev/bus/usb/001/097#033[0m
/var/log/syslog.1:Feb 23 09:13:26 hassio hassio-supervisor[7409]: #033[32m21-02-23 09:13:26 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/097#033[0m
/var/log/syslog.1:Feb 23 09:13:30 hassio hassio-supervisor[7409]: #033[32m21-02-23 09:13:30 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD usb hardware /dev/bus/usb/001/099#033[0m
/var/log/syslog.1:Feb 23 10:36:10 hassio hassio-supervisor[7409]: #033[32m21-02-23 10:36:10 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/099#033[0m
/var/log/syslog.1:Feb 23 10:36:13 hassio hassio-supervisor[7409]: #033[32m21-02-23 10:36:13 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD usb hardware /dev/bus/usb/001/100#033[0m
/var/log/syslog.1:Feb 23 18:17:46 hassio hassio-supervisor[7409]: #033[32m21-02-23 18:17:46 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/100#033[0m
/var/log/syslog.1:Feb 23 18:17:48 hassio hassio-supervisor[7409]: #033[32m21-02-23 18:17:48 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD usb hardware /dev/bus/usb/001/101#033[0m
/var/log/syslog.1:Feb 23 18:33:22 hassio hassio-supervisor[7409]: #033[32m21-02-23 18:33:22 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/101#033[0m
/var/log/syslog.1:Feb 23 18:33:25 hassio hassio-supervisor[7409]: #033[32m21-02-23 18:33:25 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD usb hardware /dev/bus/usb/001/102#033[0m
/var/log/syslog.1:Feb 23 18:43:51 hassio hassio-supervisor[7409]: #033[32m21-02-23 18:43:51 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/102#033[0m
/var/log/syslog.1:Feb 23 18:43:54 hassio hassio-supervisor[7409]: #033[32m21-02-23 18:43:54 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.ADD usb hardware /dev/bus/usb/001/103#033[0m

Before I discovered what was happening, I tried a hciconfig -a but got a bluetooth busy response.

Having removed and reinserted the dongle, hciconfig responds as expected.

I’ve got a similar issue with a USB SSD drive.

21-02-24 22:53:17 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/001/002
21-02-24 22:53:17 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/002/003
21-02-24 22:53:17 INFO (MainThread) [supervisor.hardware.monitor] Detecting HardwareAction.REMOVE usb hardware /dev/bus/usb/002/004
1 Like

Turns out my was an issue with USB mSATA adapter. It was either eating too much power or the driver is buggy. Swapped it for another and it’s all good now, so far.

Happened to me again.

Is there any way to force Supervisor to scan for hardware? A services call?

1 Like

Same here with USB and Serial devices

1 Like

Just happened to me, too (Conbee II, USB SSD). It started to happen after a restart of HA and it stopped after a second restart.

1 Like

The same problem with ODROID C2 and Teensy-LC with installed firmata.

Same here with Conbee II and RPi3…