EliasKotlyar / Xiaomi-Dafang-Hacks

4.16k stars 1k forks source link

IR LEDs off but Night Mode on #1852

Closed TheCableGuy99 closed 1 year ago

TheCableGuy99 commented 1 year ago

Description

My camera is positioned on the inside of a Window pointing outwards. I've modified the Wyze Cam v3 Windows Adapter for my Wyze Cam v2. Problem is that when night mode comes on so do the LEDs and they reflect back so you cannot see anything (this is just related to the v2, the v3 does this as well). I already have outside IR lighting so need to the camera still to switch to night mode but not turn on the LEDs. I've turned them off from the "Home page > settings" button in the bottom right corner of the live view screen and can see perfectly well when it's off, but it just comes back on by default when the camera is rebooted.

Can you assist please?

What did you do to debug the issue

Nothing much I can do to debug it, I think it's just coded this way as I can't see any way of stopping it / working the way I need it to.

Evidence

Please add snippets from the logfiles in: Not sure these are relevant as it's not an error situation.

TheCableGuy99 commented 1 year ago

Funny how I found the answer right after posting....

For anyone else needing to do this, SSH into it and go to edit: /system/sdcard/config/autonight.conf

Change: ir_led_off=false to ir_led_off=true

Reboot!