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?