I have my home CCTV camera’s linked into HomeAssistant using their RTSP protocol. After many hours of uptime, the camera unit’s themselves give up and I only receive a blank output.
I’ve gone through many steps of troubleshooting, and found that it is not an issue with the DVR, or the power supply, but it is the actual cameras themselves. The work around I currently have in place is to restart the power supply for the camera’s whenever they go down, using a smart power plug.
QUESTION: How can I create an automation that will detect that the RTSP stream has gone black, and then trigger a restart of the smart power plug from HomeAssistant.