Error during setup of component camera

Any tips on how I can identify the problem:

2019-09-30 08:45:54 ERROR (MainThread) [homeassistant.setup] Error during setup of component camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 168, in _async_setup_component
    hass, processed_config
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 234, in async_setup
    await prefs.async_initialize()
  File "/usr/src/homeassistant/homeassistant/components/camera/prefs.py", line 40, in async_initialize
    prefs = await self._store.async_load()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 98, in async_load
    return await self._load_task
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 117, in _async_load
    stored = data["data"]
KeyError: 'data'

Any tips on how I can identify the problem:

Post your camera config.

file: configuration.yaml
camera: !include cameras.yaml

file: cameras.yaml

  • platform: ffmpeg
    input: rtsp://192.168.0.182:554/user=admin&password=********&channel=1&stream=0.sdp
    name: Rua (subida)

  • platform: ffmpeg
    input: rtsp://192.168.0.182:554/user=admin&password=********&channel=2&stream=0.sdp
    name: Frente

  • platform: ffmpeg
    input: rtsp://192.168.0.182:554/user=admin&password=********&channel=3&stream=0.sdp
    name: Fundos

  • platform: ffmpeg
    input: rtsp://192.168.0.182:554/user=admin&password=********&channel=4&stream=0.sdp
    name: Corredor

Correctly formatted would help.

1 Like

Sory.

this helps? thanks.

camera:
  - platform: ffmpeg
    input: rtsp://192.168.0.182:554/user=admin&password=****&channel=2&stream=0.sdp
    name: Frente

  - platform: ffmpeg
    input: rtsp://192.168.0.182:554/user=admin&password=****&channel=3&stream=0.sdp
    name: Fundos

  - platform: ffmpeg
    input: rtsp://192.168.0.182:554/user=admin&password=****&channel=4&stream=0.sdp
    name: Corredor

Try adding this to your inputs:

input: -rtsp_transport tcp -i rtsp://etc...

Hi Tom, thanks for all help, but still the same problem.

Do you have this in your configuration.yaml file?:

ffmpeg:

Yes.

It was working, and after an update it stoped.

I am using a linux ubuntu.

I’m thinking of backing up and reinstalling HASSIO.

Thanks again for your help.