New EZVIZ integration has error

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!

i think the best way is to wait until a new release fix it, instead of using custom things.
Until then, just configure your ezviz camera with rtsp:

camera:  
  - platform: ffmpeg
    name: Ezviz Camera
    input: -rtsp_transport tcp -i rtsp://admin:Verification_Code@IP_Addr/h264_stream:554

3 Likes

Thanks.
I already implemented my camera via ffmpeg with:

ffmpeg:
camera:  
  - platform: ffmpeg
    name: Ezviz Camera
    input: rtsp://admin: verification_code@local_ip:rtsp_port

And it works great in Lovelace card.
But when i tried to use it as custom component an image is transmitted only one frame every 3-4 seconds.
And I can’t use PTZ as discribed at https://www.home-assistant.io/integrations/ezviz/

Good evening everyone.
I had the error message: does not support play stream service and therefore no image.
I added ffmpeg: before camera: in my configuration file and now I have the image.
On the other hand, I do not have access to the various services: ezviz_ptz, ezviz_switch_follow_move_on, ezviz_switch_follow_move_off, ezviz_switch_privacy_off, …
These do not appear in the service options of Home assistant.
How can we get this service?

I provided link in the message above.
But with this solution i only get video stream with 1 frame per 3-4 second and nothing else…
It would be great if someone will clarify this issue…

This is so sad… finally we can get ezviz… and that’s not working.
weird that u couldnt know if something goes wrong retriving the camera or with the login process… that’s just sad… anyway its NOT restricted to out-europe users, i am italian and still have same errors…

Dettagli registro (ERROR)
Logger: homeassistant.components.camera
Source: components/ezviz/camera.py:50
Integration: Telecamera (documentation, issues)
First occurred: 21:00:05 (1 occurrences)
Last logged: 21:00:05

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