Hello, your he-ezviz integration work good.
But it doesn’t create the “camera.ezviz_ptz” service.
I want to use this service for controle up, down, right, left and other…
Do you know a mean for create it?
Hello, your he-ezviz integration work good.
But it doesn’t create the “camera.ezviz_ptz” service.
I want to use this service for controle up, down, right, left and other…
Do you know a mean for create it?
ok re read it. given that ffmeg can play the stream outside of the ezviz integration I think the 64bit “Buster” OS must include the needed binaries. Reading a bit further, while it is not in Jessie, it seems to have been re included since Stretch.
I have exactly the same error with my Doorbell DP1 camera and HassOS 5.9, HA version 2020.12.7, rinning on Raspberry Pi4.
ffmpeg is installed in configuration.yaml
I think the Doorbell doesn’t support RSPT streaming… That could be the problem…
Hi RenierM, i tried the new version of your integration, installed with HACS. The integration works, i can see the camera and the stream, but no service is created for controlling the camera and also no binary sensor for the movement detection. Maybe i’m doing something wrong?
HACS is a community store, needs to be installed separetly. You can find it here: https://hacs.xyz/
Or just copy the repo ha-ezviz to your config/custom_components directory.
Hi There, I’ve started adding services. Will do ptz soon.
Had to fix a few issues on pyezviz first but this is next on the list.
Great! Looking forward for it!
Cool! Looking foward to that!
Hello.
I am trying to integrate my camera but the entity is not created…
I have installed ha-ezviz as integration to HACS and restarted HA.
Then in my camera.yaml file I added:
- platform: ha-ezviz
username: !secret ezviz_app_user
password: !secret ezviz_app_pass
cameras:
E12345678: #SN of Camera
username: admin
password: !secret ezviz_verification_code #Code written on camera sticker
and in configuration.yaml I had already ffmpeg.
Restarted HA again and no new camera entity!
What am I missing?
Thank you!
OH! And Merry Christmas everybody!!!
Hello,
Thanks for redoing the EzViz integration.
I installed the add-on successfully, however I do get the following error:
Logger: homeassistant.components.camera
Source: custom_components/ha-ezviz/camera.py:50
Integration: Camera (documentation, issues)
First occurred: 0:11:14 (1 occurrences)
Last logged: 0:11:14Error while setting up ha-ezviz platform for camera
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 199, in _async_setup_platform await asyncio.shield(task) File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “/config/custom_components/ha-ezviz/camera.py”, line 50, in setup_platform ezviz_client.login() File “/usr/local/lib/python3.8/site-packages/pyezviz/client.py”, line 326, in login self._login() File “/usr/local/lib/python3.8/site-packages/pyezviz/client.py”, line 97, in _login self._csrfToken = self._session.cookies[‘AS_SessionID’] File “/usr/local/lib/python3.8/site-packages/requests/cookies.py”, line 328, in getitem return self._find_no_duplicates(name) File “/usr/local/lib/python3.8/site-packages/requests/cookies.py”, line 399, in _find_no_duplicates raise KeyError(‘name=%r, domain=%r, path=%r’ % (name, domain, path)) KeyError: “name=‘AS_SessionID’, domain=None, path=None”
Here’s my config:
camera:
- platform: ha-ezviz
username: [email protected]
password: xxx
cameras:
E56785473:
username: admin
password: xxx
Do you have a workaround?
Okay, found the problem! It seems your integration doesn’t like two factor authentification.
Had to deactivate it from my EzViz account settings, now it’s working fine!
Any means of making it compatible in the future? Thanks!
Hi Tuan_Tran,
You need to use HACS to add the repository and not the native hassio one.
Hi all,
Also remember to add
stream:
camera:
to your configuration.yaml file.
Hi Mxbssn,
It’s difficult to add MFA to automated systems. It would cause auth problems when the auth cookie expires after 12 hours.
Hi RenierM, the screenshot is the repo search in HACS, not the native. BTW, do you have git link that I can do manually?
@mxbssn, thank you so much, I had give up on the error, turned off 2FA and it starts straight up now.
Hi @RenierM
After turning off 2FA the integration in now loading and showing the camera, however I didn’t have stream: in my config. I just added it but it caused the integration to fail again with the startup errors below, is it needed for the integration to work and am I doing something wrong please?
Config:
ffmpeg:
stream:
camera:
- platform: ha-ezviz
username: [email protected]
password: !secret ezviz_app
cameras:
E23690947:
username: admin
password: !secret ezviz_cam1
Error 1:
Logger: homeassistant.components.camera
Source: custom_components/ha-ezviz/camera.py:256
Integration: Camera (documentation, issues)
First occurred: 8:51:42 (1 occurrences)
Last logged: 8:51:42
Error adding entities for domain camera with platform ha-ezviz
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/ha-ezviz/camera.py", line 256, in async_added_to_hass
self._ffmpeg = self.hass.data[DATA_FFMPEG]
KeyError: 'ffmpeg'
Error 2:
Logger: homeassistant
Source: custom_components/ha-ezviz/camera.py:256
First occurred: 8:52:12 (1 occurrences)
Last logged: 8:52:12
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/ha-ezviz/camera.py", line 256, in async_added_to_hass
self._ffmpeg = self.hass.data[DATA_FFMPEG]
KeyError: 'ffmpeg'
If I remove stream: it starts up cleanly again.
Thanks for you help and work on this.