Unable to add Multiple IP Cameras

Guys, im trying to add 2 Wyze Pan Cams via RTSP as direct entities in the config yaml. But no matter what format i use I can only see one camera come up in states. Any idea.

# Camera Support
ffmpeg:
camera:
  platform: ffmpeg
  name: LivingRoomCamera
  stream_source: rtsp://user:[email protected]/live
  still_image_url: https://user:[email protected]/live
  input: -rtsp_transport tcp -i rtsp://user:[email protected]/live
  verify_ssl: False

camera:

  platform: ffmpeg
  name: NWOutsideCamera
  stream_source: rtsp://user:[email protected]/live
  still_image_url: https://user:[email protected]/live
  input: -rtsp_transport tcp -i rtsp://user:[email protected]/live
  verify_ssl: False

I am guessing your indentation is off in this snipit (but not in your system - just the copy paste messed up) but after ffmpeg it should be indented for the first camera.
After that, you do not repeat “camera” (unless you are using a certain configuration.yaml design).

So try removing the second “camera” before your second “platform: ffmpeg”.
I think there are some “-” missing too (one for each camera at the start of each camera) but my current system is offline due to a SSD failure, so I can’t confirm my setup.

So it should look something like this:

# Camera Support
ffmpeg:
  camera:
  - platform: ffmpeg
    name: LivingRoomCamera
    stream_source: rtsp://user:[email protected]/live
    still_image_url: https://user:[email protected]/live
    input: -rtsp_transport tcp -i rtsp://user:[email protected]/live
    verify_ssl: False

  - platform: ffmpeg
    name: NWOutsideCamera
    stream_source: rtsp://user:[email protected]/live
    still_image_url: https://user:[email protected]/live
    input: -rtsp_transport tcp -i rtsp://user:[email protected]/live
    verify_ssl: False

Thanks for the reply. I tried the following but get this when I goto check my config. I never know when to insert “-” or not in alot of devices but I think i have them placed right.

Invalid config for [ffmpeg]: [camera] is an invalid option for [ffmpeg]. Check: ffmpeg->ffmpeg->camera. (See /config/configuration.yaml, line 165). Please check the docs at FFmpeg - Home Assistant

Camera Support

ffmpeg:
  camera:
  - platform: ffmpeg
    name: LivingRoomCamera
    stream_source: rtsp://camera:[email protected]/live
    still_image_url: https://camera:[email protected]/live
    input: -rtsp_transport tcp -i rtsp://camera:[email protected]/live
    verify_ssl: False

  - platform: ffmpeg
    name: NWOutsideCamera
    stream_source: rtsp://camera:[email protected]/live
    still_image_url: https://camera:[email protected]/live
    input: -rtsp_transport tcp -i rtsp://camera:[email protected]/live
    verify_ssl: False

It doesn’t have to be ffmpg, just seems that is the only one I can get to come up and stream. technically these are just rstp ip cameras. Ive tried using the generic component but again I can only get one camera at a time to show up.

Well i was able to get both added as generic by taking out the ffmpeg but i now lost the still image support on the front end. Guess its just trial and error. Anyone know the url for wyze rtsp still images?

What is on line 165?

Currently
# Camera Support

From 164 to 180

ffmpeg:
# Camera Support

camera:
- platform: generic
  name: LivingRoomCamera
  stream_source: rtsp://camera:[email protected]/live
  still_image_url: http://camera:[email protected]/image.jpg
  input: -rtsp_transport tcp -i rtsp://camera:[email protected]/live
  verify_ssl: False

- platform: generic
  name: NWOutsideCamera
  stream_source: rtsp://camera:[email protected]/live
  still_image_url: http://camera:[email protected]/image.jpg
  input: -rtsp_transport tcp -i rtsp://camera:[email protected]/live
  verify_ssl: False

They both show up now and I can add them to lovelace, but the still image that rotates every 10 seconds stopped. Although i can click on the area where it was and get the stream fine

on my system I fixed the still image by adding the auth: basic to mine.

Im doing mine inline in the url path. Do you suggest separating the authorization out to separate field entries?

By auth, I don’t mean user and pass.
There is basic vs digest - I don’t know much about it, but I had to set mine to get the still image to work.
I had to add this:

authentication: digest

Well so far ive been able to get both cameras up without the still images at least with the below config. Can see them in montioneye as well. Just cant get the static images so its almost there.

# Camera Support
camera:
- platform: generic
  name: LivingRoomCamera
  stream_source: rtsp://camera:[email protected]/live
  still_image_url: https://camera:pass@@192.168.1.xx/live
  input: -rtsp_transport tcp -i rtsp://camera:pass@@192.168.1.xx/live
  authentication: digest
  username: camera
  password: pass
  verify_ssl: False
- platform: generic
  name: NWOutsideCamera
  stream_source: rtsp://camera:pass@@192.168.1.xx/live
  still_image_url: https://camera:pass@@192.168.1.xx/live
  input: -rtsp_transport tcp -i rtsp://camera:pass@@192.168.1.xx/live
  authentication: digest
  username: camera
  password: pass
  verify_ssl: False

Wow finally found it with this latest update. Edit the card in lovelace and put this below the entity. Works beautifully. Testing it now as im wondering if its going to be a huge hit on bandwidth or not.

camera_view: live

I haven’t been able to use this yet since my system is still waiting for a new hard drive - but doesn’t that just remove the still image and use the live feed all the time?

It could be that your authentication is not digest… could be basic.
You’d have to check your camera setup.

Yea I noticed that. I ended up separating my config yaml and making a separate cameras.yaml. I then went and remade the ffmpeg entities I had before except with authentication set. Once I did that and recreated the UI cards they seemed to start showing up properly without the live tag. I think a lot of my issue is just the proper formatting of yaml but what rules are listed here is somewhat limited. Such as when to add a “-“ to a line.

Anyway I think I have it working now, it’s running 2 ffmpeg cameras instead of generic as the current WyzeBeta firmware doesn’t seem to support static images over RTSP but ffmpeg does and seems to be available in that same stream. I really hope Wyze keeps up with the RTSP protocol or otherwise gets a component integration to Home Assistant as I could see this and the HA community being a huge boon to the Wyze company if they properly support us. The price point and ability in my opinion are in rivaled currently in the market.

The next feature I would like to see would be a MQTT client built in so that the PTZ features could be accessed via MQTT topics and then controlled via the front end. I originally tried the Defangs Hack firmware with very mixed results. But I seriously doubt Wyze will do this. Again I really hope they see how many people would probably by their cameras in the Home Assistant Community and continue support around that goal. If they keep working to make it more compatible with what in my opinion is quickly becoming the standard in home automation software, I could see it being a staple product in the design, build, and overall execution of many HA project builders. Time will tell.

I cannot add “input” command to the configuration. It seems not to be supported by generic platform, only by ffmpeg
Am I wrong?

Try to use the following, I have managed to add camera!

  - platform: generic
    name: doorbell1
    stream_source: rtsp://login:[email protected]:554/onvif1
    still_image_url: rtsp://login:[email protected]:554/onvif1
    rtsp_transport: udp
    authentication: digest
    username: login
    password: pass
    verify_ssl: False

in the lovelace:

type: picture-elements
title: Door Bell 2 Camera
camera_image: camera.doorbell1
elements:
  - type: state-icon
    tap_action:
      action: more-info
    entity: camera.doorbell1
    icon: mdi:arrow-expand-all
    style:
      top: 5%
      right: 5%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
camera_view: live

image