Help with checking a sensor in a timed scene

Hi-

I have a window sensor tied to a float sensor so I can tell if the water in our outdoor pond is low. If the sensor trips it sets the pump to off. So far so good.

Now I have a timed scene that turns on the fountain pump every morning. How do I get the time scene to see if the sensor is tripped and not turn on the pump if the water is low?

Thanks in advance,
Bill

ps: I have a new vera3 with UI5.

Add the following code to the LUUP tab of your scene that turns on the pump…

if (luup.variable_get(“urn:micasaverde-com:serviceId:SecuritySensor1”, “Tripped”, xx) == “0” ) then
return true
else
return false
end

Replace xx with the DEVICE NUMBER of your window sensor. If tripped is 0, i.e. not tripped, the pump will run. If the sensor is tripped, the code returns false and the scene aborts so the pump doesn’t run.