Can't get more than one IP Mjpeg Camera to work

I’m trying to add a second IP camera to an already working one however I get the following error:

Invalid config for [camera.mjpeg]: required key not provided @ data['mjpeg_url']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/camera.mjpeg/

I currently have the following setup in a cameras.yaml:

- platform: mjpeg
  mjpeg_url: http://url
  name: Office Camera

- platform: mjpeg
  mpjeg_url: http://url2
  name: Living Room Camera

but this doesn’t work. I’ve tried indenting it in the root configuration.yaml:

camera:
  - platform: mjpeg
    mjpeg_url: http://url
    name: Office Camera
  - platform: mjpeg
    mpjeg_url: http://url2
    name: Living Room Camera

along with trying the following:

camera:
  - platform: mjpeg
    mjpeg_url: http://url
    name: Office Camera

camera 2:
  platform: mjpeg
  mpjeg_url: http://url2
  name: Living Room Camera

But I still get the above error. If I remove the 2nd camera the error goes so it’s definitely here. Any ideas?

Does it work with one camera for url2?

Looks like HA can’t get the stream.
" required key not provided @ data['mjpeg_url']. Got None."

Just tried, no it doesn’t same error. That’s weird because the urls are identical besides the source id (camera). I’m using netcam studio so the urls are like this:

camera 1: http://ip:8100/Mjpeg/0?authToken=blah
camera 2: http://ip:8100/Mjpeg/1?authToken=blah

so the only difference is the id after mjpeg. Both urls work in a browser.

The ID should be the same if they are two different cameras.

I managed to solve this, seems it didn’t like the fact I was using a “custom url” in netcam studio for my android device. I changed it to have the model “Android” and both work now!