I just upgraded from 0.61.1 to 0.63, but after this the ZoneMinder Component stopped working with the error shown below. I am running ZoneMinder 1.31.1 on Ubuntu 17 Server. I can still access ZM using Curl and ZMNinja, and it worked fine before the upgrade to .63. It seems like a login issue, but nothing in username/password changed since yesterday.
Error from HA Log:
Error while setting up platform zoneminder
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 84, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
raise self._exception
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 212, in coro
res = func(*args, **kw)
File "/usr/src/app/homeassistant/components/camera/zoneminder.py", line 56, in async_setup_platform
monitors = zoneminder.get_state('api/monitors.json')
File "/usr/src/app/homeassistant/components/zoneminder.py", line 124, in get_state
return _zm_request('get', api_url)
File "/usr/src/app/homeassistant/components/zoneminder.py", line 104, in _zm_request
cookies=ZM['cookies'], timeout=DEFAULT_TIMEOUT)
KeyError: 'cookies'
Hi, I have the same issue with ZoneMinder with exactly the same error
Sun Feb 11 2018 12:09:37 GMT+0000 (GMT)
Error while setting up platform zoneminder
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 84, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 245, in result
raise self._exception
File “/usr/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/lib/python3.6/asyncio/coroutines.py”, line 210, in coro
res = func(*args, **kw)
File “/usr/lib/python3.6/site-packages/homeassistant/components/camera/zoneminder.py”, line 56, in async_setup_platform
monitors = zoneminder.get_state(‘api/monitors.json’)
File “/usr/lib/python3.6/site-packages/homeassistant/components/zoneminder.py”, line 124, in get_state
return _zm_request(‘get’, api_url)
File “/usr/lib/python3.6/site-packages/homeassistant/components/zoneminder.py”, line 104, in _zm_request
cookies=ZM[‘cookies’], timeout=DEFAULT_TIMEOUT)
KeyError: ‘cookies’