EliasKotlyar / Xiaomi-Dafang-Hacks

4.16k stars 1k forks source link

Ability to disable IR lighting for "night mode" - feature required for night viewing through windows #1875

Open Tectract opened 9 months ago

Tectract commented 9 months ago

I'm working with the Wyze V2 cams right now, but this issue affects all cams with IR illuminating LEDs facing windows.

I would like the option to disable the IR illumination feature for night vision mode. I will provide IR illumination via an external IR illumination system which is night-mode activated outside the house, these are commonly available on Amazon and eBay now. This will allow the camera to remain inside the window but still get night-mode vision.

What did you do to debug the issue

So I took my Wyze2 camera apart and wiggled the IR illuminating LEDS off of the PCB, and the camera seemed fine and did not complain or fail to boot. This window-facing camera is no longer is able to do IR illumination, because the IR LEDs are physically removed. It seems the normal APP interface is now updated to allow you to turn off these IR illuminating LEDS. However I do not want to install or use the APP, for network security reasons.

Can we get an update to the webserver app which allows you to disable the IR illuminator LEDS, please? I can make a PR if someone explains to me, how to do it.

jmtatsch commented 9 months ago

There exists already an undocumented feature for that via an entry in a config file. Search the repo for ir disable you should find something.

Tectract commented 9 months ago

Thank you for this info, jmtatsch. I did the search for "ir disable" but it didn't immediately reveal itself. Can you point me to that config?

Tectract commented 9 months ago

Ok I found the setting, in firmware_mod/config/autonight.conf.dist

So, I guess this is a feature request to make this variable settable within the webserver UI rather than just hidden in a config, or at least to get it mentioned in the README...

jmtatsch commented 9 months ago

Pull requests are always welcome 😉