home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.71k stars 28.87k forks source link

RTSP credentials for EZVIZ camera #86204

Open Nas-au opened 1 year ago

Nas-au commented 1 year ago

The problem

i,m trying to use the ezviz integrations and i get this error

Screenshot 2023-01-19 at 4 38 53 AM

MY Camera: ezviz CB8

Can you help plz

Thanks

What version of Home Assistant Core has the issue?

core-2023.1.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ezviz

Link to integration documentation on our website

https://www.home-assistant.io/integrations/ezviz

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.stream.stream.camera.garagecam
Source: components/stream/__init__.py:434
Integration: Stream (documentation, issues)
First occurred: 3:52:22 AM (9 occurrences)
Last logged: 4:33:43 AM

Error from stream worker: Error opening stream (ERRORTYPE_111, Connection refused) rtsp://****:****@10.10.10.159:554
Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://****:****@10.10.10.159:554

Logger: libav.tcp
Source: components/stream/worker.py:497
First occurred: 3:52:22 AM (9 occurrences)
Last logged: 4:33:42 AM

Connection to tcp://10.10.10.159:554?timeout=5000000 failed: Connection refused
Connection to tcp://10.10.10.159:554?timeout=5000000 failed: Operation timed out

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @renierm26, @baqs, mind taking a look at this issue as it has been labeled with an integration (ezviz) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `ezviz` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign ezviz` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


ezviz documentation ezviz source (message by IssueLinks)

mdima commented 1 year ago

Hi, I get the same error with my CP4...

Thanks, Michele

mdima commented 1 year ago

ps: my Ezviz user name is my email address... maybe this could be the issue

Nas-au commented 1 year ago

@mdima i don't think so, i passed the integration my issue is with the RTSP.

mdima commented 1 year ago

@Nas-au yes, the same for me. It seems also other people (read here) has the same issue, probably RTSP is not enabled on all the models of the Ezviz devices.

Nas-au commented 1 year ago

Yes i think its not enabled, however i tried adding the camera to ivms-4200 on pc and it worked with hikvision protocol port 8000 but i dont think home assistant supports hikvision integration

danielh83 commented 1 year ago

I had the same issue and it seems with the latest firmware update 230113 the RTSP port was disabled. After some Google Foo I have found this article -> https://www.effe1.info/come-abilitare-modalita-avanzata-ezviz-studio/ which worked for me. It seems accessing the "advanced function" through the EZVIZ PC Studio software is enabling the RTSP port again.

Nas-au commented 1 year ago

I had the same issue and it seems with the latest firmware update 230113 the RTSP port was disabled. After some Google Foo I have found this article -> https://www.effe1.info/come-abilitare-modalita-avanzata-ezviz-studio/ which worked for me. It seems accessing the "advanced function" through the EZVIZ PC Studio software is enabling the RTSP port again.

Thanks Danielh83 I tried it but did not work i think my CB8 dose not support RTSP at all.

danielh83 commented 1 year ago

I had the same issue and it seems with the latest firmware update 230113 the RTSP port was disabled. After some Google Foo I have found this article -> https://www.effe1.info/come-abilitare-modalita-avanzata-ezviz-studio/ which worked for me. It seems accessing the "advanced function" through the EZVIZ PC Studio software is enabling the RTSP port again.

Thanks Danielh83 I tried it but did not work i think my CB8 dose not support RTSP at all.

Well if the camera does not RTSP at all, this tweak will not help. Did RTSP is supported for your camera? You can check the config and open ports also with the EZVIZ PC Studio under "Advanced" with the walkthrough of my link I have posted. You should see also port 554 been open.

Are you sure you are using the correct RTSP credentials and URL For my C3W the url is like this: rtsp://admin:PASSWORD@192.168.1.110/H.264 The password is either the initial one which is labeled on the camera or whatever you set the password after setup

cybreedx commented 1 year ago

Also trying to integrate my EZVIZ camera to HA. Also stuck at RTSP credentials window as the OP.

My hardware setup is different as I have, 2x c3w 2x c6cn 1x x5c (NVR)

Tried to configure RTSP credentials for camera or nvr both failed.

Going thru the posts and suggestions here I noticed below on the EZVIS studio desktop application. image Try as I may I could not append any changes on the desktop.

So I went into the NVR and UPNP was disabled. which I promptly enabled. but saw the port # is very different from desktop app.

image

While the NVR interface shows the ports are active, the desktop app still showed in active.

image

At a total loss here. Any ideas or suggestions appreciated.

Update: Digging into the router shows the UPnP ports were properly directed. image

netbios404 commented 1 year ago

Hi, i have same issues with C6N (firmware 5.3.2 build 230113) and C3W (firmware 5.2.7 build 230113) while it’s working with C1T (firmware 5.3.0 build 220829).

danielh83 commented 1 year ago

@cybreedx I am bit confused why you need uPnP for RTSP? The RTSP port is configured under the Menü "Network" and than "General" not NAT. NAT you will, IMHO only need if you want to route or access your camera stream from internet.

Can you check whether in EZVIZ Studio in the network general menü the RTSP port is enabled and you are using the correct RTSP credentials and URL (you can check here https://www.ispyconnect.com/camera/ezviz)

cybreedx commented 1 year ago

@cybreedx I am bit confused why you need uPnP for RTSP? The RTSP port is configured under the Menü "Network" and than "General" not NAT. NAT you will, IMHO only need if you want to route or access your camera stream from internet.

I only dig into UPnP because saw it was inactive on the desktop app (EZVIZ studio). As your prev post said something about RTSP port being disabled. so just went down the rabbit hole :D

Can you check whether in EZVIZ Studio in the network general menü the RTSP port is enabled and you are using the correct RTSP credentials and URL (you can check here https://www.ispyconnect.com/camera/ezviz)

Yesterday I tried to run RTSP stream on VLC no luck. Now I just tested the Agent from ispyconnect. The wizard only found the stream if I try global IP, if I use local IP it does not work.

I am wondering if using the X5C is just adding another layer of complexity. as the cameras all connect to it directly and is on another sub-net (192.168.7.XXX) instead of my main network (192.168.0.XXX) So confused.

netbios404 commented 1 year ago

I confirm that installing Ezviz Studio PC and accessing C6N and C3W cameras through "advanced mode" is solving the issue with firmware 230113.

cybreedx commented 1 year ago

I confirm that installing Ezviz Studio PC and accessing C6N and C3W cameras through "advanced mode" is solving the issue with firmware 230113.

the only thing I have advance option to is the X5C NVR :( image

cybreedx commented 1 year ago

After much troubleshooting. I found a "working" solution. I deleted 1 camera from the account, and hardware re-set it. Shut down the X5C (as it will auto populate into the NVR network). Added the camera via mobile app. Turn on the X5C. Tested RTSP, works.

Deleted the integration, re-integrate, going thru all the steps and it just works without additional settings.

image

My problem as far as I can tell was that all the cameras were hidden in a different subnet. Once the camera was on the main network, the integration works fine.

So for now I have reverted everything back, I like the idea of the NVR + IPCam on separate network.

gabka913 commented 1 year ago

I had the same issue and it seems with the latest firmware update 230113 the RTSP port was disabled. After some Google Foo I have found this article -> https://www.effe1.info/come-abilitare-modalita-avanzata-ezviz-studio/ which worked for me. It seems accessing the "advanced function" through the EZVIZ PC Studio software is enabling the RTSP port again.

In my case it gets enabled just for the time while PC Studio app is running. RTSP port gets closed after closing the app. I have DP2C camera. Any ideas to get the RTSP port open permanently?

pgdeto commented 1 year ago

Hi all. I got it to work by enabling rtsp in each camera. Go to ezviz mobile app, profile, then settings, direct view. Explore each camera and go to settings (top right corner). Finally select local services and enable rtsp. Hope it works.

lsgabreu commented 1 year ago

robigombek commented yesterday I wrote to EZVIZ support, and got the answer. How to enable RTSP Step 1: Ensure the camera and your phone are under the same network Step 2: Open EZVIZ app, tap the profile icon on the top left > Settings > LAN Live View > Start Scanning Step 3: Tap the camera you need to use, input the password, which usually is the 6-digit capital letters code on the white sticker of your camera Step 4: Tap the gear-like icon on the top right > Local Server Settings > enable RTSP

lsgabreu commented 1 year ago

Comigo Funcionou!!! RTSP ativo

crackerchest commented 1 year ago

Just gonna comment this so next time it won't take me a day to figure out what I broke with my EZVIZ: I was getting an invalid ip error from the addon,

I had my ezviz camera set to a static ip and i changed the host name it on my dhcp server. That was my problem, either setting it static or more than likely changing the host namel. After I put it back on DHCP it worked.

RenHoekNL commented 1 year ago

I've got a Husky Air, model CS-CS310-A0-1B2WFR. Suddenly couldn't stream over RTSP anymore.

This is the URL I used: rtsp://admin:xxxxxx@192.168.x.x/h264_stream

Port scans show port 554 (RTSP) has disappeared. The camera seems to have update it's firmware. It's now V5.3.0 build 230221

Neither the 'Ezviz Studio' desktop program or the Android phone app give me any 'advanced' configuration options to turn RTSP back on.

franck-outl4w commented 1 year ago

robigombek commented yesterday I wrote to EZVIZ support, and got the answer. How to enable RTSP Step 1: Ensure the camera and your phone are under the same network Step 2: Open EZVIZ app, tap the profile icon on the top left > Settings > LAN Live View > Start Scanning Step 3: Tap the camera you need to use, input the password, which usually is the 6-digit capital letters code on the white sticker of your camera Step 4: Tap the gear-like icon on the top right > Local Server Settings > enable RTSP

This worked for me ! Thx

dfpr commented 1 year ago

robigombek commented yesterday I wrote to EZVIZ support, and got the answer. How to enable RTSP Step 1: Ensure the camera and your phone are under the same network Step 2: Open EZVIZ app, tap the profile icon on the top left > Settings > LAN Live View > Start Scanning Step 3: Tap the camera you need to use, input the password, which usually is the 6-digit capital letters code on the white sticker of your camera Step 4: Tap the gear-like icon on the top right > Local Server Settings > enable RTSP

I had a power outage and suddenly RTSP didn't work, I guess camera auto-updated FW or something. This saved my life, thanks!

NitinBhattacharyya commented 1 year ago

I had the same issue and it seems with the latest firmware update 230113 the RTSP port was disabled. After some Google Foo I have found this article -> https://www.effe1.info/come-abilitare-modalita-avanzata-ezviz-studio/ which worked for me. It seems accessing the "advanced function" through the EZVIZ PC Studio software is enabling the RTSP port again.

Hey Thanks a lot,I noticed that my cameras were not recording for two days and then found out that the rtsp stream was not working. Your solution worked.

jefft4 commented 1 year ago

robigombek commented yesterday I wrote to EZVIZ support, and got the answer. How to enable RTSP Step 1: Ensure the camera and your phone are under the same network Step 2: Open EZVIZ app, tap the profile icon on the top left > Settings > LAN Live View > Start Scanning Step 3: Tap the camera you need to use, input the password, which usually is the 6-digit capital letters code on the white sticker of your camera Step 4: Tap the gear-like icon on the top right > Local Server Settings > enable RTSP

Thank you! Just noticed that my three EzViz cameras dropped off the CCTV and HA a couple of weeks back, although the DB-1 is still behaving properly. This process got RTSP back. Bit well-hidden, though, like they don't really want it used!
Note, it only works in the mobile app; PC version of EzViz Studio doesn't have the same options.

Looks like they've closed down the ONVIF service from these cameras too; I can't get a response on ports 80, 8999 or the HikVision control port 8000. Dumb move by EzViz/Hik IMO; pushes their cameras towards being consumer toys and away from being useful as proper CCTV. I have one in a 'real CCTV' role, that I'll now look to replace in case they go further down this road.

schumi7604 commented 1 year ago

@ Jefft4 and Robigombek
Thanks for helping out and solving this RTSP issue. Costed me a week!

jefft4 commented 1 year ago

I just had the same response from EzViz support as @robigombek, which we know works. However, when I suggested that they shouldn't disable features without telling customers first, the response wasn't something I can believe:

_"Sorry to hear that, we did not turn off anything, we would report it to all customers in advance. It could have been a network issue.

If you have any other issues or questions, please let us know."_

'Network issue', my eye. Far too much of a coincidence for many users on different dates to experience the same obscure problem with the only common factor being... a firmware update which includes a new control for that feature. Clearly, they defaulted the new RTSP switch to 'off' and didn't think to tell anyone about it in advance.

I have responded, telling them that they should make automatic updates optional (give us an 'off' switch) and that I didn't believe them about the update not causing the RTSP issues.

albertoxamin commented 1 year ago

Same here port 554 disappeared

robigombek commented 1 year ago

Hello! Unfortunately, EZVIZ support treats us users at least like little children. I've been pushing with them via e-mail for some time, they avoid answers like the plague on how to start the RTSP stream in the DP2C viewfinder - here in the phone and windows application you cannot enable this option. Still only "sorry", "use our cloud", "use android applications", they don't care about the needs of the consumer. They also completely ignore requests for old firmware. Embarrassing... But I won't let it go, I'll torment them, I'll give them a little "shawshank" :)

jefft4 commented 1 year ago

The support guy I conversed with was okay, showed me that there is an option in the Android app settings page to disable automatic updates. He says that will apply to all devices on the account. I've disabled it, so we shall see...!

kitof91 commented 1 year ago

I had the same issue and it seems with the latest firmware update 230113 the RTSP port was disabled. After some Google Foo I have found this article -> https://www.effe1.info/come-abilitare-modalita-avanzata-ezviz-studio/ which worked for me. It seems accessing the "advanced function" through the EZVIZ PC Studio software is enabling the RTSP port again.

It works for me using EZVIZ PC Studio advanced setting. The RTSP port was already set to 554 but it did not work since last Software update. So I have changed the RTSP port to 553 in "Network" -> "General" menu and do "Apply" but not reboot the camera, and change it again to 554 and reboot this time. RTSP works again.

thetnaing84 commented 1 year ago

I had the same issue and it seems with the latest firmware update 230113 the RTSP port was disabled. After some Google Foo I have found this article -> https://www.effe1.info/come-abilitare-modalita-avanzata-ezviz-studio/ which worked for me. It seems accessing the "advanced function" through the EZVIZ PC Studio software is enabling the RTSP port again.

It worked for me too. Thanks.

spygibas commented 1 year ago

robigombek commented yesterday I wrote to EZVIZ support, and got the answer. How to enable RTSP Step 1: Ensure the camera and your phone are under the same network Step 2: Open EZVIZ app, tap the profile icon on the top left > Settings > LAN Live View > Start Scanning Step 3: Tap the camera you need to use, input the password, which usually is the 6-digit capital letters code on the white sticker of your camera Step 4: Tap the gear-like icon on the top right > Local Server Settings > enable RTSP

Thanks These solve my problem.

dimadusk commented 1 year ago

IMG_20230602_175501 Maybe this will help someone to get rtsp on some models or get access to firmwre there is a way to connect to ezviz cam directly using it's AP, that works even if camera deleted from account:

  1. Remove canera from Ezviz App
  2. Reset camera
  3. When you ll hear promt "connect to wifi using Ezviz application" go to wi-fi settigs on your phone (but better on pc for Advanced menu in pc app), choose Wi-Fi ssid: EZVIZ_YourCamSerialNumber and password should be EZVIZ_YourVerificationCode .
  4. Then you go to Ezviz App on PC connect to camera's AP (PC must have other internet connecting parallel to Ezviz AP in order to open Ezviz App), search for local network cameras Note if nothing's found and you are connected to EZviz AP you need to chane your ipv4 ip address for wi-fi adapter and gateway with dns to 192.168.8. is because canera is using 192.168.8.1 by default.
  5. Find your cam in local lan and change settings. Save, Restart, add camera with mobile app, Done. Hope it helps.

This is useful if camera no longer has Advanced settings mode in pc app while connected to Wi-Fi or if camera doesnt ping and not detected in LAN Live View.

alvingalangcitaka commented 1 year ago

I had the same issue and it seems with the latest firmware update 230113 the RTSP port was disabled. After some Google Foo I have found this article -> https://www.effe1.info/come-abilitare-modalita-avanzata-ezviz-studio/ which worked for me. It seems accessing the "advanced function" through the EZVIZ PC Studio software is enabling the RTSP port again.

It works for me using EZVIZ PC Studio advanced setting. The RTSP port was already set to 554 but it did not work since last Software update. So I have changed the RTSP port to 553 in "Network" -> "General" menu and do "Apply" but not reboot the camera, and change it again to 554 and reboot this time. RTSP works again.

I have a C3W Pro. In my case, I have to open image -> sub stream, then change encoding to h265 or h264 (doesn't matter, just change it to the other) and then click apply. The same issue here when I reboot the device, then I have to PC Studio again and do those steps again.

I guess it's more like a defect. One thing for sure is that the ezviz dev messed this up.

Is there any way to downgrade the firmware instead?

dimadusk commented 1 year ago

Yes there is if you tell me a full device model I can generate link for old firmware. You can look device model in About in mobile Ezviz settings IMG_20230612_185601

Or just edit following link with your device model: https://usdownload.ezvizlife.com/device/device model/2.0/device model.dav

For my camera C6N firmware link will be:

https://usdownload.ezvizlife.com/device/CS-C6N-A0-1C2WFR-KJDS/2.0/CS-C6N-A0-1C2WFR-KJDS.dav

Then just update firmware in Ezviz PC app and rtsp will be enabled.

Its not defect its EZviz doing on purpose they don't want us to use 3rd party software with their cameras. All camera models new firmware disables rtsp.

alvingalangcitaka commented 1 year ago

Yes there is if you tell me a full device model I can generate link for firmware. You can look device model in About in mobile Ezviz settings IMG_20230612_185601

Or just use link: https://usdownload.ezvizlife.com/device/device model/2.0/device model.dav

For my camera C6N firmware link will be:

https://usdownload.ezvizlife.com/device/CS-C6N-A0-1C2WFR-KJDS/2.0/CS-C6N-A0-1C2WFR-KJDS.dav

Then just update firmware in Ezviz PC app and rtsp will be enabled. Its not defect its EZviz doing or purpose they don't want us to use 3rd party software with their cameras. All camera models new firmware disables rtsp.

here is my device model : CS-C3W-A0-1F4WFL

But I'm not sure about the firmware version. my current firmware version is V5.3.4 build 230419

dimadusk commented 1 year ago

Here you go:

https://usdownload.ezvizlife.com/device/CS-C3W-A0-1F4WFL/2.0/CS-C3W-A0-1F4WFL.dav

alvingalangcitaka commented 1 year ago

Thank you. Is there any chance to download a specific version? I tried 5.2 doesn't work.

dimadusk commented 1 year ago

Don't update yet, check if its for c6w first it copied old link by mistake I already fixed it

dimadusk commented 1 year ago

CS-C3W-A0-1F4WFL.dav (6.70MB)

If its the same file name and size you can update firmware. And it will be older firmware with rtsp support

dimadusk commented 1 year ago

Thank you. Is there any chance to download a specific version? I tried 5.2 doesn't work.

Well unfortunately you can't choose specific firmware but this link has older firmware with rtsp support for all EZviz cameras (if they supported rtsp before) just replace device model 2 times for the specific camera.

P.S. you can check if RTSP is enabled by using Network scanner to see if port 554 is open for camera's IP address if its open and you don't see live video from camera it means firmware is good but your URL is wrong for rtsp stream.

alvingalangcitaka commented 1 year ago

My camera does support rtsp, it was working fine before. Just the last upgrade made it not working anymore.

if downgrade to 2.0, can I still use the ezviz app and upgrade the version later on?

dimadusk commented 1 year ago

My camera does support rtsp, it was working fine before. Just the last upgrade made it not working anymore.

if downgrade to 2.0, can I still use the ezviz app and upgrade the version later on?

Correct, if you downgrade firmware with this:

https://usdownload.ezvizlife.com/device/CS-C3W-A0-1F4WFL/2.0/CS-C3W-A0-1F4WFL.dav

You can use rtsp again and use ezviz app to upgrade to newer version again if you ll want to. Its not modified firmware its official older firmware from official ezviz website, so nothing will affect functionality in anyway.

alvingalangcitaka commented 1 year ago

It seems that I failed installing the firmware. The pc studio shows it’s successful and ask for reboot. I rebooted it and still not changed I reinstall and hold the reset button on the camera still not downgraded. The rtsp remains inaccessible.

dimadusk commented 1 year ago

It seems that I failed installing the firmware. The pc studio shows it’s successful and ask for reboot. I rebooted it and still not changed I reinstall and hold the reset button on the camera still not downgraded. The rtsp remains inaccessible.

Did you scan ip of the cam with network scanner? And wait a little bit it will update version, its some sort of delay with that, but rtsp 554 port should be enabled right away after full reset. If you have android you can get RoboShadow - Network scanner, just select Port scan, enter ip of the camera and it should show all open ports. Also how do you know that rtsp is disabled? Did you try VLC player for tests or BlueIris/Synology, if you just saw Networking settings in Ezviz Studio for PC dont mind that it will always show that its disabled, try on VLC player

rtsp://admin:VerificationCode@192.168.1.20/11 Or rtsp://admin:VerificationCode@192.168.1.20/

Just change to your camera IP and replace Verification Code with actual code.

xpyctumo commented 1 year ago

@dimadusk CS-BC2 works with rtsp?

Nas-au commented 1 year ago

downgrade firmware with this:

https://usdownload.ezvizlife.com/device/CS-C3W-A0-1F4WFL/2.0/CS-C3W-A0-1F4WFL.dav

You can use rtsp again and use ezviz app to upgrade to newer version again if you ll want to. Its not modified firmware its official older firmware from official ezviz website, so nothing will affect functionality in anyway.

dose this method works with CB8?

CS-CB8-R100-2C3WFL

I tried the link but i get 404 page

dimadusk commented 1 year ago

If its recent model they could make first firmware without rtsp support, for example BC2 doesnt have rtsp in main firmware and it wont work url not found as well. So its possible that there is no old firmware exist with rtsp.