I am trying to configure an alert when both my foscams go down (They share a GFI circuit with the freezer). I have two ping virtual devices to monitor the cameras. I created a scene with the trigger for the ping on the outdoor camera and inserted the below code into the luup for the trigger. However, even with the other camera’s ping not triggered, the event still fires.
I deleted the first part of the urn because the forum software didn’t like that block…
[code]local GaragePing = 15
local OutdoorPing = 14
local Delay = 0
local SES_SID = “urn:schemas-micasaverde-com:device:MotionSensor:1”
luup.call_delay( “CheckGaragePing”, Delay)
function CheckGaragePing()
local GaragePingStatus = luup.variable_get( SES_SID, "Tripped", GaragePing)
local OutdoorPingStatus = luup.variable_get( SES_SID, "Tripped", OutdoorPing)
if (GaragePingStatus ~= "1" or OutdoorPingStatus ~= "1") then
return false
end
end
[/code]