rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
399 stars 81 forks source link

IMOU LOOC V.2 (IPC-C26E-V2) is supported #82

Open TheBisk opened 3 years ago

TheBisk commented 3 years ago

Version of the custom_component 0.9.22

Hello rroller, first of all I want to thank you for the excellent work you have done!

it seems my cam is supported, there is just a few small things to fix.

I'm available to help the comunity to fix it.

Thanks.

image

rroller commented 3 years ago

Thanks. Those cams are a little bit different. I'm surprised it is working at all, but I'm glad it does.

Playing the video never really works great with Home Assistant. There's a WebRTC that's better for viewing cams in HA but I still recommend using real viewing software outside of HA. https://github.com/AlexxIT/WebRTC

When you enable motion detection in the cam it might take up to 30 seconds for the integration to update. Does it work if you wait?

TheBisk commented 3 years ago

The motion detection is set to be "on" everyday from 1am to 6am in the cam app but this setting is not syncronized with home assistant. And if i switch to "on" in HA i did not see it on the cam app.

I cannot understand why on mobile phone i see the live stream of the cam while on desktop pc i cannot see it?! With the desktop pc i see only the still image refreshing every 10 seconds. If i click on the image i see a blank image, it seems to not load the stream.

The switch for the infrared light is not working - if the switch is activated, the light does not turn on

The switch for the illuminator light is not present. I tried to listen for events but no event is reported if i switch the illuminator on/off by the app of the cam, unfortunately.

alesurli commented 2 years ago

Hi, i discovered the following command:

http://IPADDRESS/cgi-bin/coaxialControlIO.cgi?action=getStatus&channel=1 -> get the illuminator and speaker status http:/IPADDRESS/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=1&info[0].IO=1 -> light on http://IPADDRESS/cgi-bin/coaxialControlIO.cgi?action=control&channel=1&info[0].Type=1&info[0].IO=0 -> light off

i don't know if it's possible to integrate it.

rroller commented 2 years ago

It's possible to integrate but because I don't have one of these cameras it's a little hard for me to add in since I can't test it. These cams work a little different from the regular dahua cams :-(