Trying to add camera functionality to my Hassio install under version 2.11. When I run Check from CLI, I get the following error:
Error: Testing configuration at /config
ERROR:homeassistant.util.yaml:YAML file /config/configuration.yaml contains duplicate key "camera". Check lines 39 and 56.
No duplication of key “camera” exists and line numbers don’t make sense. Configuration.yaml file looks like:
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: ############
longitude: ############
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: imperial
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/New_York
# Customization file
customize: !include customize.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
# Discover some devices automatically
discovery:
# Support for Z-wave via Nortek
zwave:
usb_path: /dev/ttyAMA1
# ZigBee Support via Nortek (HUSBZB-1)
zha:
usb_path: /dev/ttyAMA1
database_path: /config/zigbee.db
# Sensors
sensor:
# Weather prediction
- platform: yr
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
camera: !include cameras.yaml
zone: !include zones.yaml
My cameras.yaml contains the following:
stream:
platform: mjpeg
name: Steps
mjpeg_url: http://192.168.29.112:8668/videostream.cgi?user=user1&pwd=secret_pwd
#ffmpeg:
# ffmpeg_bin: /usr/bin/ffmpeg
Any ideas on how to resolve this?