Platform error: camera - Requirements for ezviz not found: ['pyezviz==0.1.5']

Any update on the camera IP issue?

I encounter the same problem, and it appeared since the change to Ezviz Cloud integration in Home Assistant, before that it was working fine.

I have the following in the logs:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 236, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File “/usr/src/homeassistant/homeassistant/components/camera/init.py”, line 319, in async_setup_entry
return await hass.data[DOMAIN].async_setup_entry(entry)
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 155, in async_setup_entry
raise ValueError(“Config entry has already been setup!”)
ValueError: Config entry has already been setup!

and the inevitable :

Error opening stream rtsp://admin:XXXXXXX@:554

Connection to tcp://:554?timeout=5000000 failed: Connection refused

Also, the local IP is correct as an attribute for the camera.

Works

alias: test
description: ''
trigger:
  - platform: state
    entity_id: camera.husky_air_d53127471
    attribute: Last alarm triggered
    for: '00:00:05'
condition: []
action:
  - type: toggle
    device_id: 087c485cd27f340c85f760c1559f1f05
    entity_id: light.licht_buiten
    domain: light
mode: single

Anyone have an idea how to trigger when there is nog change in state ?

The last update issued this evening has resolved the blank IP issues

Thanks!

Hi,
Version 24 did not work with my C6T. It will not log into the cloud. Version 23 works ok.

does it work if the camera is in a different vlan?
In my case it doesnt work and I dont know if it is because of the vlan.

I don´t know what i am missing.
I use the ha-ezviz version from RenierM so far everything works except one camera doesn´t wanna display live image…
If i click on the lovelace card it extends and just shows a still frame from my C6CN.
Every other cam works flawless. did i miss anything here or is the C6CN just not supported properly?

I think it shouldn´t make a difference i have 12 camers and ever 4 cameras they are in a different vlan and it is working except one camera that won´t display the stream and gives me just a still frame in HA.


‘Интеграция ezviz_cloud прошла в HACS, в объектах пусто и выходит такая ошибка’

Did you manage find a solution ?

The code i wrote above works when an alarm is triggered. But more pir function not. Testing true an ifttt webhook now. Need the code if it works ?

Didn’t work for me, only ran the automation on the second trigger of the alarm field being updated.

I did try IFTTT but took like 15-20 seconds to run !

I was wondering if needed to set up something like this:

Essentially Boolean if the alarm last triggered time stamp is less than 5 minutes from the current date / time and sets to true else false. I think in theory this logic will be reliable but need to look into it.

Hello,

I have noticed an issue with the C6N

Whenever I put the device on Sleep, it isn’t detected as is by the integration.

The “sleep” attribute stays False
Also, if I reboot HA when the device in on Sleep mode, it won’t connect to the Ezviz cloud account…

RESOLVED in the last update, thanks!

Hmmm maybe it does work. Just sometimes slow pushing the update up ezviz cloud > HA before it runs.

Hi,

UPDATE BELOW:

UPDATE 2 : Resolved by downgrading to 0.0.23

Just got the model C6T.

Set up according to instructions, made sure TFA are disabled.
Logged out and in of the app.

Keep getting this in the log:

raise PyEzvizError("Login error: Incorrect Captcha code")

Anybody had this?

UPDATE:
Logged into the cloud service online, after this my error log received new entries that just repeats iteself forever:

2021-01-22 01:57:51 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 5 seconds
2021-01-22 01:57:53 ERROR (MainThread) [custom_components.ezviz_cloud.coordinator] Unexpected error fetching ezviz_cloud data: 32
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 144, in async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/ezviz_cloud/coordinator.py", line 39, in _async_update_data
    return await self.hass.async_add_executor_job(self._update_data)
  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/ezviz_cloud/coordinator.py", line 31, in _update_data
    cameras = self.EzvizClient.load_cameras()
  File "/usr/local/lib/python3.8/site-packages/pyezviz/client.py", line 266, in load_cameras
    camera.load()
  File "/usr/local/lib/python3.8/site-packages/pyezviz/camera.py", line 34, in load
    if self._switch[DeviceSwitchType.AUTO_SLEEP.value] != True:
KeyError: 32
2021-01-22 01:57:53 WARNING (MainThread) [homeassistant.config_entries] Config entry for ezviz_cloud not ready yet. Retrying in 5 seconds

1 Like

Hi TheStigh,
i solved it by updating the component to the latest release (0.0.2.5).
However, now all the services called through the lovelace card do not work well

Hi @Lucariello78

yeap, I did. Downgraded to version 0.0.23, then all was OK :slight_smile:
Downgrade by going into the git, choose the releases and version, download the folder for ‘custom components’ and replace the files in your local folder. Voila :slight_smile: !

I am using image processing ai true amazon now. Works great and can activate if only a person is detected or a dog or …

1 Like

Can you provide some details on what is involved with this? how quick does the automation trigger turning your light compared to original solution ?

Hi,
Thanks @RenierM for making this custom integration working again.
Just figured out that region for Singapore, Indonesia and perhaps other South East Asia (including Malaysia, Thailand, etc) you may need to use “sgp” for your region.