Problems with camera config

I have this stream part in configuration.yaml.

Ipcam4, ipcam5 and ipcam6 are the only entities that shows up. The other one does not show.
The server is restarted several times, there is nothing in the error logs

I do not understand why the other cameras not show up. Anyone have any ideas?


stream:

camera ipcam1:
- platform: mjpeg
  name: ipcam1
  mjpeg_url: http://x.x.x.x:81/mjpg/Cam1
  
camera ipcam2:
- platform: mjpeg
  name: ipcam2
  mjpeg_url: http://x.x.x.x:81/mjpg/Cam2
  
camera ipcam3:
- platform: mjpeg
  name: ipcam3
  mjpeg_url: http://x.x.x.x:81/mjpg/Cam3
  
camera ipcam4:
  - platform: mjpeg
    name: ipcam4
    mjpeg_url: http://x.x.x.x:81/mjpg/Doom1
  
camera ipcam5:
  - platform: mjpeg
    name: ipcam5
    mjpeg_url: http://x.x.x.x:81/mjpg/Cam5
  
camera ipcam6:
  - platform: mjpeg
    name: ipcam6
    mjpeg_url: http://x.x.x.x:81/mjpg/Cam6
  
camera ipcam7:
  - platform: mjpeg
    name: ipcam7
    mjpeg_url: http://x.x.x.x:81/mjpg/Cam7
    
camera ipcam8:
  - platform: mjpeg
    name: ipcam8
    mjpeg_url: http://x.x.x.x:81/mjpg/Cam8

There should only be one line that says “camera:” then each “- platform: mjpeg” and the applicable other lines should repeat under that:


camera:
 - platform: mjpeg
   name: ipcam1
   mjpeg_url: http://x.x.x.x:81/mjpg/Cam1
 - platform: mjpeg
   name: ipcam2
   mjpeg_url: http://x.x.x.x:81/mjpg/Cam2
 - platform: mjpeg
   name: ipcam3
   mjpeg_url: http://x.x.x.x:81/mjpg/Cam3

That is how mine used to be but the docs now suggest using the UI to add, so I would suggest doing it that way if you still have issues. I no longer have any cameras listed via yaml.