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

can't login on config page #21

Open
camelcamro opened this issue Nov 2, 2023 · 4 comments
Open

can't login on config page #21

camelcamro opened this issue Nov 2, 2023 · 4 comments

Comments

@camelcamro
Copy link

Hello,
installed the current version and then i tried to add, but if i enter the
name
host ip
user
password
and then press enter to add, then it conly comes "Failed to connect", and in the logs (set to debug), is nothing visible ...
any ideas ?
having cameras whicha re working fine with icsee or xmeye or xmeye for pc, and supporting ONVIF, RTSP, IPC;
cameras are most of them SV3C (xmeye compatible for sure)

is it not needed to give the port ?
are the icsee working via http on 80 or onvif 8080 port ?
or any hints ?
or is it possible toa d dthe cameras manually ?
funny, theoretical was possible to add my NVR on port 34567, and loaded a lot of functions, but also showing that the integration was not sucessfully loaded ...
any idea are welcome

cu camel

@dbuezas
Copy link
Owner

dbuezas commented Nov 3, 2023

You may want to test if you can connect with the xmeye app to confirm the protocol is open and the username and pass are ok.
Just add it as an Ethernet camera and it will ask you for the IP

@camelcamro
Copy link
Author

yes, i know, they are working fine ...
added already via the integrated onvif hass as well ...
and there they are fine working .. all of them (exclusive no events no sensors are recognized, but as almost everyone knows, the ONVIF integration was for a while better as currently it is so full of bugs ,...
so, i guess, i try it via "icsee" if i can get it working, but can'T add them there.
is it possible to add them manually ?

@dbuezas
Copy link
Owner

dbuezas commented Nov 4, 2023

I think in icsee you can't add manually without reconfiguring the camera. Alternatively, you can check if the video stream works on go2rtc

@camelcamro
Copy link
Author

well,
i have no solved my problems ....

not sure, where to post for now ... maybe you want to publish it ...

i will explain:
1.) i wanted to have my cameras - motion detection in home assistant
2.) i want that if a new alarm comes inot, that "holfer (input_boolean will be set to "state: on"
3.) this i can then use to play a audio file, if an alarm or whatever (in hass - autmation), and when alarm handling done, then i set the helper ((input_boolean ) to off, and so on ...
so, i checked on ONVIF, XM / IPC / http cgi what is possible and found that my NVR, can deliver the alarms to another server - typically 15002 or 15003 (not sure)

how i did it:
1.) in HASS:
create all helpers "input_boolean" to have them "read-write" eg: in my case 16 channels
nvr_alarm_motiondetection_ch01 to nvr_alarm_motiondetection_chch16

2.) on my hass server,
there rewrote an other existing "dvr-alarm-server" to my usage: "nvr-alarm-server" ... and install and running it as service
and listening on alarms on port 15003 (standard on xmeye nvr servers compatible (most on (XM IPC) port 34567 and 80 port to configure)
This perl service script is now getting the alarms, and then calling the HASS API to set the status as wanted ..
AND
2a) via curl cmd use the HASS rest api to call the "input_boolean" entities to set it to {"state": "on"} - based on alarm aevent and channel infos...

if an moton detection with "start" comes into .. then i update the entity ....

the rest .... can be done in home assistant to handle this entities on automation ...

thats it and working great ...

if anyone is interrested to get the code and infos ... let me know ...

basically - most of the parts were found on project: "sofiactl" (which is doing "alarm event 2 mqqt" .... but not sure, if that was on github ...
maybe i can send the code to the real code owner to review and adapt it ....

cu camel

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