What might worth a mention is that I have a javascript rule (only this one). Can someone confirm that it does not contain any errors? I’ve got experience of a beginner only with javascript. Here’s the code:
var int cam = 0
if ((ZMServer_VideoMonitorId.state === UNDEF) || (ZMServer_VideoMonitorId.state === NULL) || (ZMServer_VideoMonitorId.state == "4")) {
cam = 1
} else {
cam = Integer::parseInt(ZMServer_VideoMonitorId.state.toString) + 1
}
var String id = String::format("%d", cam)
ZMServer_VideoMonitorId.sendCommand(id)
It basically rotates four zoneminder cameras running this every 10 seconds. I disabled this as it has my suspicions. But I have to keep it disabled for at least a day to confirm this. It is based on zoneminder help page examples so the logic should not cause the binding to fail.