#Switch for connecting/disconnecting USB *data*, not only power. Does such a thing exist?
15 messages · Page 1 of 1 (latest)
How about combining an AC powered hub with a smart plug?
Or one of those hubs that has individual power switches and a switchbot
Can you give us more info on what you are trying to achieve i.e. why this needs to happen?
If I just switch the power off (even with the machine's own switch - all that does it cut power too), then the control board continues getting a little power through the USB serial connection from my server, and weakly running the screen. In the past I've had strange behaviour when I've then powered it up again to print; so now I always manually remove the USB wire before I power down, and wait for the board to finish booting before plugging back in again.
I'm not certain that powered hubs fully disconnect the device when powered off. In fact, I know that at least one of my hubs has optional power, but still works without power connected.
Does the printer need the power from the USB cable I wonder. If you went the other way and created a data only USB cable without 5v lines 🤔
Don't do this unless you know it's safe 🙂
I have seen that as a suggestion somewhere before; but when I tried it back then it didn't seem to work. I don't really remember why.
Check out the hubs listed here: https://github.com/mvp/uhubctl
These hubs actually turn the ports completely off when used with the tool. You may even have a compatible one already.
Those look promising, thanks!
Puddly's suggestion is cool. I hadn't heard of that. Here's what I was thinking about when combined with a switchbot (though software direct control is likely better) https://a.co/d/8xYUAuV
As an update to this, uhubctl is great and doing exactly what I need. I found one of the listed hubs on eBay, and with the right permissions I can fire the command through SSH from within the container on the HAOS VM.
Just working on getting the automation going with shell commands.