After a couple of days, the RTSP stream most likely will fail. This is happening on both cameras and at no specific times. When this does occur, my app or another app like iSpy fails to get the RTSP stream.
I can use the Wyse App and see the proprietary stream. But in order to get the RTSP stream functioning again, I need to restart the device. Very rarely will I need to power cycle the device. I could programmatically live with this if there was a way to restart the device with some type of API (not the Wyze cell-phone App). Only solution I know is to buy a smarplug which defeats the purpose of buying an inexpensive camera. I’m looking for something like Wake-On-LAN or web command to restart it.
Not aware of any way other than the app or possibly the API to reboot the cam. Smart plugs are fairly cheap and often have deals around black friday, but perhaps the repeated connect/disconnect of RTSP just overwhelms it after a certain point. This probably isn’t a use case they tested. Depending what setup you have, it may make more sense to keep the stream constantly active and just grab a frame from the receiving device?
Another option is to just use an automation to reboot the cam every day at like 3AM which may clear out a memory leak (which would help if it is an issue the builds up over time, but if it is just a random glitch with the connect or disconnect, probably wouldn’t help). Suppose you could have it reboot every hour so even if it freezes, it will come back after a while, but that may cause excessive wear and tear on the cam.
@vaguy For the API part, there is an unofficial route that might fit your app. The wyze-sdk Python library (shauntarves on GitHub) logs in with your Wyze account and has a cameras.restart(device_mac=…, device_model=…) call, so your script could try the snapshot and, only if ffmpeg fails, restart that one camera and retry a few minutes later. The login needs a key ID and API key that you create in the Wyze developer console, and the V3 model string is WYZE_CAKP2JFUS. It goes through the cloud, so it is not as instant as Wake-On-LAN, but it saves buying a smart plug for every camera.