View usb camera?

so i have a usb camera installed on my raspberry pi inside a robot tank thing (yahboom tank) and am trying to view the usb camera in it and allow viewing from another device (blue iris security software) i cannot figure out how to do this.

Hi, does that same RPi run your HA?

Ok, that ‘robot tank thing’ is a RC controlled tank.
Do you know whether the camera streams it’s image?

At the same time: what does this have to do with Home automation and Home Assistant?

If you use motioneye, it can be viewed on the HA dashboard, but I don’t know about blue iris.

its just a raspberry pi unit with a usb camera hooked to some dc motors with pwm used for speed control. it has the home assistant os installed. the camera is just a usb camera. i think i added it to the home assistant but im not sure.
camera:

  • platform: ffmpeg
    name: Webcam
    input: /dev/input/video0

i used that in my config.
it made an entity that just displays white instead of the video.

Did you do this on your HA?

ya. i added it in config.

Subsystem:
video4linux
Device path:
/dev/video0
ID:
/dev/v4l/by-id/usb-lihappe8_Corp._USB_2.0_Camera-video-index0
Attributes:
DEVLINKS: >-
/dev/v4l/by-id/usb-lihappe8_Corp._USB_2.0_Camera-video-index0
/dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0-video-index0
/dev/v4l/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usbv2-0:1.2:1.0-video-index0
DEVNAME: /dev/video0
DEVPATH: >-
/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/video4linux/video0
ID_BUS: usb
ID_MODEL: USB_2.0_Camera
ID_MODEL_ENC: USB\x202.0\x20Camera
ID_MODEL_ID: ‘6001’
ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2:1.0
ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_2_1_0
ID_PATH_WITH_USB_REVISION: platform-fd500000.pcie-pci-0000:01:00.0-usbv2-0:1.2:1.0
ID_REVISION: ‘0538’
ID_SERIAL: lihappe8_Corp._USB_2.0_Camera
ID_TYPE: video
ID_USB_DRIVER: uvcvideo
ID_USB_INTERFACES: ‘:0e0100:0e0200:’
ID_USB_INTERFACE_NUM: ‘00’
ID_USB_MODEL: USB_2.0_Camera
ID_USB_MODEL_ENC: USB\x202.0\x20Camera
ID_USB_MODEL_ID: ‘6001’
ID_USB_REVISION: ‘0538’
ID_USB_SERIAL: lihappe8_Corp._USB_2.0_Camera
ID_USB_TYPE: video
ID_USB_VENDOR: lihappe8_Corp.
ID_USB_VENDOR_ENC: lihappe8\x20Corp.
ID_USB_VENDOR_ID: 038f
ID_V4L_CAPABILITIES: ‘:capture:’
ID_V4L_PRODUCT: ‘USB 2.0 Camera: USB 2.0 Camera’
ID_V4L_VERSION: ‘2’
ID_VENDOR: lihappe8_Corp.
ID_VENDOR_ENC: lihappe8\x20Corp.
ID_VENDOR_ID: 038f
MAJOR: ‘81’
MINOR: ‘14’
SUBSYSTEM: video4linux
USEC_INITIALIZED: ‘5427720’

i thought that was the right way to go about it based on this.

This cannot work.
Your camera is hooked to another system so how can your HA use that through /dev anyhow!?

You have to find out if that camera publishes a stream (and in what form) to be able to add it to HA.

no its directly hooked to the raspberry pi running home assistant in the robot. like its a usb camera…

So you are actually running HA on the same RPi that is hooked to the robot, or at least to the USB cam?!

1 Like

yes… i need to also figure out how to use the gpio thing to control the pins that control the motors. my other home assistant is on a different machines but this needs to be able to run independantly.

but right now… why isnt this working?

Which kind of HA install type/method runs on this robot?

1 Like

Have a look at these:

1 Like

To be honest there’s so many things wrong with the install can’t even begin to tell you. I mean they stopped supporting direct gpio a while ago and the USB camera on box?

You’re running into issues because before you put wheels on it (weird but cool) you were already waaaaay into unsupported territory.

Is there a reason you’re not transmitting to HA and NEED ha on this bot?

1 Like

I hava a HA instance with an USB camera attached. The motioneye add-on works perfect.

1 Like

You don’t need a second HA.

There is a custom remote GPIO integration for HA.

For the camera, setup video4linux and connect to it remotely with HA — to the RTSP stream.

1 Like

Hey so I just set up the gpio integration but the pins aren’t doing anything when it turns the switch on. I used switch when setting it up in the configuration with the custom integration. I’ll look into what is going on I just used the pin numbers it said in the source code from the original operating system image it had on there.
It’s pins 20 21 19 and 26

switch:
  - platform: rpi_gpio
    switches:
      - port: 20
        name: "gpioin1"
      - port: 21
        name: "gpioin2"
      - port: 19
        name: "gpioin3"
      - port: 26
        name: "gpioin4"

Wait what? The camera is on the same system is that an addon? Or integration?