Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set up Integration #181

Open
Prythi opened this issue Jun 9, 2024 · 14 comments
Open

Unable to set up Integration #181

Prythi opened this issue Jun 9, 2024 · 14 comments

Comments

@Prythi
Copy link

Prythi commented Jun 9, 2024

Hi,

Fresh to HA overall and getting stuck on trying to get this integration working... logs aren't giving any information to run with:

Screenshot 2024-06-10 071147

Screenshot 2024-06-10 071622

Screenshot 2024-06-10 071646

HA System: Windows 11 - Hyper-V (HA OS)
Hikvision NVR: DS-7616NI-I2/16P

I have followed the installation instructions including the alarm server details.

Really wanting to try and get this integration running.

@maciej-or
Copy link
Owner

Hi, I wonder why there is no exception details. Cloud you please catch all logs as described here https://github.com/maciej-or/hikvision_next?tab=readme-ov-file#reporting-issues

@Prythi
Copy link
Author

Prythi commented Jun 10, 2024

home-assistant_2024-06-10T07-12-30.618Z.log

Hoping that didn't include important info... tried to look over it and didn't see anything vital

Can't get diagnostic logs since the integration itself doesn't start up

@Prythi
Copy link
Author

Prythi commented Jun 11, 2024

I've played around a bit more and tried HA on virtualbox and docker but still get the exact same error and log... which makes me think there might be a firewall issue on my router or even the NVR itself??? but I can't isolate it.

And just to confirm... I can access the NVR through the web ui

@maciej-or
Copy link
Owner

This integration requires the NVR and HA to be on the same network.

@Prythi
Copy link
Author

Prythi commented Jun 11, 2024

As in physically connected to each other? I have them connected by ethernet via router...

HAOS unit ---- router ---- NVR

@maciej-or
Copy link
Owner

ofc via router, your connection seems fine, I meant
HA: 192.168.0.x
NVR: 192.168.0.y
I just wanna to make sure, did you enable integration logs:

logger:
  logs:
    custom_components.hikvision_next: debug

then in the main log you should have entries like:
2024-06-11 14:29:55.289 DEBUG (MainThread) [custom_components.hikvision_next.isapi] --- [GET] ...
if I had that I could help more

@Prythi
Copy link
Author

Prythi commented Jun 11, 2024

image

Yeah i've put it into the config yaml.

image

Put in the wrong account details to test.
So it definitely gets to the URL... but when trying to log in, it just gets "stuck"???

@maciej-or
Copy link
Owner

Thanks for the efforts but I have no clue what causes that exception. Is you HA up to date? Let's say version from this year?

@Prythi
Copy link
Author

Prythi commented Jun 11, 2024

image

damn...
might try an older version of HA - have played through the various settings in my NVR but nothing made a difference

@maciej-or
Copy link
Owner

maciej-or commented Jun 11, 2024

no, the new one works for me, was afraid you had older

@Prythi
Copy link
Author

Prythi commented Jun 12, 2024

Was there a record of the firmware that was used for the following NVR? Have also tried updating to the latest with no luck

7616NI-I2/16P

@Prythi
Copy link
Author

Prythi commented Jun 12, 2024

Interesting... I can directly access the cameras, through the NVR bypass... i guess I'll just have to set up each camera individually

@maciej-or
Copy link
Owner

It is hard to find the bug if error description is empty. Maybe at least exception type would point the culprit. If you could replace line 82 in hikvision_next/config_flow.py with:
errors["base"] = f"Unexpected {type(ex).__name__}: {ex}"
restart HA and try setup your NVR
then red alert in config window should display exception type

@Prythi
Copy link
Author

Prythi commented Jun 18, 2024

Still doesn't fill...

image

And now there's no error listed in the log file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants