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.
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.
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.
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
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
yeap, I did. Downgraded to version 0.0.23, then all was OK
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 !
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.