Is there a way that i can turn off and back on my usb ports on my laptop. That runs my openHAB. I use the ports to run Program units. And want to power cycle them. When they become non responsive. Issue is acces to the laptop. As it runs in a crawl space.
Is there a way to do it remotely?
Most of the USB Hubs (I mean also the internal ones in PC/Laptops) don’t support individually turning ports off.
However if you buy one of the hubs which is presented here, you can use uhubctl to power-cycle or turn on/off each ports on a hub.
You can easily call this command whenever you need from openHAB with the Exec binding