New EZVIZ integration has error

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’

Any help is greatly appreciated.

Cheers, Brad.

1 Like

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
1 Like

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 ).

1 Like

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).

Thanks,

Omer

same problem!

same problem!

"follow_move': self._switch[TYPE_FOLLOW_MOVE]['enable']"

Having the same traceback.
It seems a bit scuffed.

my 2 cameras didn’t show up

camera:

  • 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’

Has anyone been able to get this to work?

Thanks for your assistance so far.

Also I have some problems implementing ezviz,
here how I implemented the code:

- platform: ezviz
  username: [Username or Email]
  password: [Password]
  cameras:
    salotto:
        username: admin
        password: XXXXXX
    DS2xxxxxx7:
        username: admin
        password: XXXXXX

And this is what the log report:

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'

Thanks in advance

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

Is the S1 action camera available for this integration? I cannot find where to create my credentials…

I have the same issue - here my log:

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

Anyone understand how to solve it?

Ale

I’m also struggling to get this integration to work.

I’ve used the following config but my camera isn’t showing up as an entity.

  • platform: ezviz
    username: [email]
    password: [password]
    cameras:
    Dxxxx:
    username: admin
    password: xxxx

I get an error like the picture, please help me to fix it. I use the camera model: Ezviz CS-C6N

Try to disable the Access Configuration option as I said in this answer.

I think this change will help you. The pypi package did not support other APIs than the EU one. It should work smoothly now.
The PR: https://github.com/home-assistant/core/pull/33261

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

I use ubuntu server and docker can you help me with the commands to fix this error?

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!