In general, while I can’t keep people from doing this, I do not recommend attempting to use this addon as a way to avoid paying for services from Ring and I do not provide specific support for use cases attempting to do this as not paying for Ring services is definitely not the intended purpose of this project. I can’t stress enough that buying an expensive camera and then depending on some random persons addon that they wrote in their spare time, that itself depends on a different random persons API and reverse engineering efforts, just isn’t the best approach.
That being said, as a generic statement, if it’s taking 12 minutes, then “something” is keeping the stream up for that time until Ring times out the stream. The logs should be really clear about what that is. Also, you don’t need to manually start and stop the stream, the record service will start an on-demand stream and the stream will stop 10 seconds after recording stops. My guess is that might be a source the problem because you have no delays between your actions so you are basically calling on/record/off, in the span of a few milliseconds. You could add delays, but really, just remove the manual on/off and let the record function do it’s thing. Again the logs show every connection and exactly what is happening.
This will be all of the advice I will offer.