After upgrading to .49 I get config errors and my Amcrest cameras aren’t available.
The following components and platforms could not be set up:
camera.amcrest
amcrest
log:
2017-07-20 18:43:38 ERROR (MainThread) [homeassistant.setup] Error during setup of component amcrest
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py”, line 190, in _async_setup_component
component.setup, hass, processed_config)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/amcrest.py”, line 93, in setup
amcrest_cams = config[DOMAIN]
KeyError: ‘amcrest’
2017-07-20 18:43:38 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2017-07-20 18:43:38 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
2017-07-20 18:43:38 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2017-07-20 18:43:38 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
I’d have to see your code and how you have it set up, but I would think the camera portion could be moved to camera.yaml. I only have the one camera so I left mine in configuration.yaml
Sheesh, I forgot to add the non-working part. The first one passes the checker, but errors in the front end.
2017-07-21 12:10:34 ERROR (MainThread) [homeassistant.setup] Error during setup of component amcrest
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 190, in _async_setup_component
component.setup, hass, processed_config)
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/amcrest.py", line 93, in setup
amcrest_cams = config[DOMAIN]
KeyError: 'amcrest'
2017-07-21 12:10:34 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.amcrest. Setup failed for dependencies: amcrest
- platform: amcrest
host: 192.168.1.22
username: admin
password: !secret camera
name: Kitchen
port: 8022
- platform: amcrest
- host: 192.168.1.22
username: admin
password: !secret camera
name: Kitchen
port: 8022
2017-08-13 08:13:22 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of camera.amcrest. Setup failed for dependencies: amcrest
2017-08-13 08:13:22 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform camera.amcrest: Could not setup all dependencies.
Can you post your final config for both configuration.yaml and camera.yaml? I had this working in 48 but i reinstalled everything and have your exact same errors. The duplication between config and camera.yaml is confusing.