Amcrest integration with Dahua camera: login/logout on camera several times per second

Hello,
I am playing with my first Dahua camera (pretty basic bullet model PC-HFW2439S-SA-LED-S2) with its latest firmware. And I am using the amcrest integration on the HA side since it seems to work with many Dahua cameras. I am using HA regularly for a year or two only for basic stuffs so I am a naive user.

On HA side I have the following config for it:

amcrest:
    - host: 192.168.10.2
      username: ha
      password: < password alphanumeric since I read other chars may create problems >
      name: cam-hi
      stream_source: rtsp
      resolution: high

I can get the video to show up in the HA web UI.

But on the camera’s log, I see the ‘ha’ user (only used by HA) doing several login and logout per seconds all the time (regardless of the camera view being displayed in the HA interface). The HA logs have nothing out of the ordinary. I played with the ‘scan_interval’ value and it has no effect on this behavior.

Is that behavior expected? Why would the integration need to talk so often to the camera when there is no streaming going? And even if it needs to talk to the camera several times per seconds, is a login/logout expected for each interaction?

Thanks

I’d also like to know this?
My camera also seems to log a login & logout event for every frame that HA grabs, as much as about ten times per second.
I’d like to know if that’s normal for fetching security camara frames, as it seems wasteful on bandwidth at the least. I guess it’s a security thing, but a timeout that’s longer than the frame update period would seem more sensible.

Hi! I am seeing the same behavior of multiple login/logout entries in the cameras log. I suspect that that is also the reason, why I get login errors for the camera in home assistant, as it reaches the max. connections limit of 20 and can’t login again.
Did you ever figure this out?

Thanks!