Timer and Event

Vera allows both a timer and an event to be setup on a scene. So which triggers the scene or do both?
I have a scene “Forgot Door”. It has a timer to run at 8:30. But it also has an event which says if door is open, alert me.
I would like it to run at 8:30 to email or SMS me that I’m a space cadet and left the door open. But instead, it alerts me ANY time the door is open.
Is this the way it SHOULD work?
Any ideas how to make it do what I want to do??
I tried luup devices to fail if the “Tripped” variable is “0” but they don’t work, they never return false.
Many thanks.

As far as I know that’s the way it should work.

When I got you right then you just want to be informed when it is between 8.30 and sometimes in the afternoon.

To solve this you may use two different scenes or one more complex with some LUA code.

Very close. I just want to know, at 8:30pm, if the door is open or closed.
I’ve tried luup events and/or scenes. For some reason, they aren’t able to read those Hawking Door sensors. The sensors work fine in that if you look at the dashboard, they show whether they are opened or not (red dot and the field “Tripped” is set to 1). But yet, the luup code doesn’t seem to read those variables on that device.
I guess I can just arm the sensor between 8 and 9pm and look for a tripped, armed sensor and call it a day.

I finally got it. Sheesh. Here is the correct luup code. I’ve tried a variety of “MotionSensor” and “upnp-org” but apparently never hit on this one.

local lul_tmp = luup.variable_get(“urn:micasaverde-com:serviceId:SecuritySensor1”,“Tripped”,28)
if( lul_tmp==“0” ) then
return false
end

This is as a scene, the scene is trigger by a timer (or I can hit a button on a remote) and if the door is closed, the scene ends.

:slight_smile: