maciej-or / hikvision_next

Home Assistant integration for Hikvision NVRs and IP cameras
115 stars 23 forks source link

I can't add camera device to HA #231

Closed szczukot closed 3 weeks ago

szczukot commented 4 weeks ago

logs from HA:

This error originated from a custom integration.

Logger: custom_components.hikvision_next.config_flow
Source: custom_components/hikvision_next/config_flow.py:84
integration: Hikvision NVR / IP Camera (documentation, issues)
First occurred: 9:10:45 AM (9 occurrences)
Last logged: 9:21:39 AM

ISAPI error Redirect response '302 Moved Temporarily' for url 'http://192.168.1.77/ISAPI/System/deviceInfo' Redirect location: 'https://192.168.1.77/ISAPI/System/deviceInfo?randnum=969264636618' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302
ISAPI error Redirect response '302 Moved Temporarily' for url 'http://192.168.1.77/ISAPI/System/deviceInfo' Redirect location: 'https://192.168.1.77/ISAPI/System/deviceInfo?randnum=297963023569' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302
ISAPI error Redirect response '302 Moved Temporarily' for url 'http://192.168.1.77/ISAPI/System/deviceInfo' Redirect location: 'https://192.168.1.77/ISAPI/System/deviceInfo?randnum=152487611264' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302

When I send http://192.168.1.77/ISAPI/System/deviceInfo from postman, I get propper xml from camera.

szczukot commented 3 weeks ago

@maciej-or any help?

maciej-or commented 3 weeks ago

checked Enable HTTPs Browsing might do redirections

image
szczukot commented 3 weeks ago

Thanks. Now it is working. You can add to tested models: DS-2CD2047G2H-LIU