Hi. I’ve just downloaded version 0.107 and I’ve just tried to setup my EZVIZ cameras. I’ve tried to add one camera but I’m receiving an error and I’m not sure if my setup is correct.
camera:
platform: ezviz
username: my username
password: My password
cameras:
xxxx (I’ve put in both the serial number and name I’ve given the device):
username: xxxx(I’ve put in the serial number)
password: xxxx (verification on back of device)
This is the error I’m receiving.
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/ezviz/camera.py”, line 49, in setup_platform
ezviz_client.login()
File “/usr/local/lib/python3.7/site-packages/pyezviz/client.py”, line 240, in login
return self._login()
File “/usr/local/lib/python3.7/site-packages/pyezviz/client.py”, line 87, in _login
sessionId = str(response_json[“loginSession”][“sessionId”])
KeyError: ‘loginSession’
Same error using my phone number as username, now using the username I have this error:
Error while setting up ezviz platform for camera
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/ezviz/camera.py", line 50, in setup_platform
cameras = ezviz_client.load_cameras()
File "/usr/local/lib/python3.7/site-packages/pyezviz/client.py", line 197, in load_cameras
cameras.append(camera.status())
File "/usr/local/lib/python3.7/site-packages/pyezviz/camera.py", line 97, in status
'follow_move': self._switch[TYPE_FOLLOW_MOVE]['enable'],
KeyError: 25
you must use admin as user, give it a try.
i have an ezviz camera, will try the integration, before i was using platform: ffmpeg and then switched to wize cameras ( just for a way better IR night light ).
I have the same issue as @Plumwhat , i’ve tried what you suggested here but issue persist.
Only question i have, i’m using EzViz intercom , is it supposed to work? (i can get the video stream on VLC).
platform: ezviz
username: MyEmail (working with the mobile APP)
password: Password (working with the mobile APP)
cameras:
D180xxxxx:
username: admin
password: XXXXXX
D180xxxxx:
username: admin
password: XXXXXX
## Logboekdetails ( ERROR )
Logger: homeassistant.components.camera
Source: components/ezviz/camera.py:49
Integration: Camera ([documentation](https://www.home-assistant.io/integrations/camera), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+camera%22))
First occurred: 19:22:51 (1 occurrences)
Last logged: 19:22:51
Error while setting up ezviz platform for camera
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/ezviz/camera.py", line 49, in setup_platform ezviz_client.login() File "/usr/local/lib/python3.7/site-packages/pyezviz/client.py", line 240, in login return self._login() File "/usr/local/lib/python3.7/site-packages/pyezviz/client.py", line 87, in _login sessionId = str(response_json["loginSession"]["sessionId"]) KeyError: 'loginSession'
I tried to use admin as my username but i’m getting the same issue.
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/ezviz/camera.py”, line 49, in setup_platform
ezviz_client.login()
File “/usr/local/lib/python3.7/site-packages/pyezviz/client.py”, line 240, in login
return self._login()
File “/usr/local/lib/python3.7/site-packages/pyezviz/client.py”, line 87, in _login
sessionId = str(response_json[“loginSession”][“sessionId”])
KeyError: ‘loginSession’
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/ezviz/camera.py", line 49, in setup_platform
ezviz_client.login()
File "/usr/local/lib/python3.7/site-packages/pyezviz/client.py", line 240, in login
return self._login()
File "/usr/local/lib/python3.7/site-packages/pyezviz/client.py", line 87, in _login
sessionId = str(response_json["loginSession"]["sessionId"])
KeyError: 'loginSession'
I’ve some news, if the error is in the line 49 (loginSession) the issue could be the option “Access Configuration” in the ezviz account.
You can try to disable it on the ezviz website under “System Management > Access Configuraiton > Disable”
After this change my log change in:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/ezviz/camera.py", line 50, in setup_platform
cameras = ezviz_client.load_cameras()
File "/usr/local/lib/python3.7/site-packages/pyezviz/client.py", line 197, in load_cameras
cameras.append(camera.status())
File "/usr/local/lib/python3.7/site-packages/pyezviz/camera.py", line 97, in status
'follow_move': self._switch[TYPE_FOLLOW_MOVE]['enable'],
KeyError: 25
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/ezviz/camera.py", line 50, in setup_platform
cameras = ezviz_client.load_cameras()
File "/usr/local/lib/python3.7/site-packages/pyezviz/client.py", line 197, in load_cameras
cameras.append(camera.status())
File "/usr/local/lib/python3.7/site-packages/pyezviz/camera.py", line 97, in status
'follow_move': self._switch[TYPE_FOLLOW_MOVE]['enable'],
KeyError: 25
HI, even with the latest change I have this error. Do you think my cameras are not supported?
Logger: homeassistant.components.camera
Source: custom_components/ezviz/camera.py:50
Integration: Telecamera ([documentation](https://www.home-assistant.io/integrations/camera), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+camera%22))
First occurred: 23:31:45 (1 occurrences)
Last logged: 23:31:45
Error while setting up ezviz platform for camera
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ezviz/camera.py", line 50, in setup_platform
cameras = ezviz_client.load_cameras()
File "/usr/local/lib/python3.7/site-packages/pyezviz/client.py", line 208, in load_cameras
cameras.append(camera.status())
File "/usr/local/lib/python3.7/site-packages/pyezviz/camera.py", line 97, in status
'follow_move': self._switch.get(TYPE_FOLLOW_MOVE)['enable'],
TypeError: 'NoneType' object is not subscriptable
Hi guys,
Just found this thread.
Could you please help as i am total nub in HA?
I have C6T camera.
Should i firstly download init.py, camera.py and manifest.json and put them to config/custom_componets/ezviz folder?
Should i change something in them?
Thank you in advance!