Restart USB camera

Hi,
I have a camera powered by raspberry’usb that needs to be restarted. Is it possible to do it thru SSH?

Is this a USB camera, or is it just powered by the USB port?

It’s Xiaomi Dafang camera

I don’t think you can turn the usb power off and on programmatically. However you do have options:

  1. Get a home assistant capable smart plug, put in a usb charger, connect to camera and use the smart plug to turn it off and on.

  2. Use the web interface on the dafang camera to reboot.

1 Like