Triggering when two conditions are true

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]

Goto the Advanced Tab of the device with the “Tripped” variable. Hover your mouse over the Label of the “Tripped” variable in the listing, it will show you the real serviceId string to use, as the one you’re using is incorrect.

A little more detail … your SES_SID is set for a DEVICE identifier NOT a service identifier. They are DIFFERENT … they just look similar!