Eufy Cam RTSP trouble and API question

Hi, RTSP is unstable - sometimes it works and sometimes it doesn’t. I don’t get a picture. Always with the same settings! Any idea?

Can i activate / deactivate camera via API? I would like to integrate this into my home automation.

Thanks in advance for your help