Dahua stuck when switching from day and night and vice versa

Gigabyte2

n3wb
Feb 8, 2021
12
4
Italy
Hello, I have a Dahua starlight camera that sends snapshot every 2 minutes to an FTP server.
Camera is set always in Day mode because I want to have coloured pictures during the night.
When the camera switching the exposure to "night" it stops to send snapshots to FTP. If I reboot it during the night then it stucks when the exposure back to day..
How can I fix this?