Newbie brain freeze. As an engineer (not a CE unfortunately for me here!) I am struggling with the Vera terminology and/or logic in the terms:
Scene
Event
Command
In my mind:
Scene=scenario, here’s the thing I want to do, the “holder” of actions
Event=trigger, these things will activate the scenario
Timer=trigger, no external inputs needed
Command= actions, these are the things that will happen when triggered
I have read here that scenes and events are similar… this causes me to ponder the meaning of life, contemplate my navel and question reality in general.
Let me try to illustrate my question:
I create a SCENE called Turn on Light
Scene is activated by an EVENT like Detect Motion or TIMER like sunset
the COMMAND is set to switch on the desired light in the right room.
Since the EVENT is included in the SCENE and multiple EVENTS or TIMERS are allowed in the SCENE, is it possible to call the same scene with another EVENT in the same SCENE? Or do I need a different SCENE for similar COMMANDS triggered by different EVENTS? ie. one SCENE for turning on the lights at sunset, one for motion detection etc.
I would like to believe that I could create a SCENE and call from multiple EVENTS and TIMERS for consistent actions. For example:
SCENE: Turn on light
EVENT1: Motion in room
EVENT 2: other condition etc…
TIMER: Sunset
COMMAND: Turn on Light
Does the creation of multiple events and timers create a logical OR condition?
This is really confusing. Am I overthinking this or just missing a fundamental point (which probably should be documented somewhere by MCV and is missing in action but don’t get me started on that thread)?
Thanks for any help and insight. I am dabbling with LuuP now and it gets even more confusing how that fits into this picture.
You have it correct. Every time an event or trigger in a scene occurs, the commands in the scene are potentially (read below) executed.
A Luup Scene would probably better be called a Luup command. A Luup scene (Lua code) can be included in a scene and will potentially (read below) be execute every time the scene’s events or triggers fire.
A Luup Event is again Lua code in a scene. It is executed every time the scenes events or tiggers fire. The difference here is this code executes before the Luup Scene code and other commands and if the code returns false, the Luup Scene code and other commands in the scene are not executed.
Thanks Mike for that clarification. So if the LuuP event returns “false”, then it acts as a filter of sorts? So regardless of what event/timer triggered the event, it has to pass the LuuP test before it executes the commands?
I read this and I’m afraid I’m still confused. I want to do something simple: turn a light on at 6 PM and off at 9 PM.
Can I create one scene with two timers in it (one on, one off) or do I have to create two scenes, a “light on” scene with an “on timer” and a “llight off” scene with an “off timer”?
Can I create one scene with two timers in it (one on, one off) or do I have to create two scenes, a "light on" scene with an "on timer" and a "llight off" scene with an "off timer"?
You can accomplish this simple task by creating a scene with your start timer of 6pm, select the device you want to control in the commands tab and choose On, then there is another drop down box to the right, select after 3hrs, another drop down box to the right of that, select Off.
Now your device [i]should[/i] turn on at 6pm and after 3 hours it [i]should[/i] turn off.
Word of caution. Any time you use these built in delays if the Mios engine is restarted while it is counting down (ie, clicking save) that delay period will act as though it was never running and your light will not turn off unitl the next day when that scene runs again.
Thanks for the speedy reply and the warning. Since I’m pretty new to this and still doing a lot of tinkering with my network, I’d rather specify a separate timer for turning the light off.
So I guess the question is, can one scene contain two timers? I know it can, because I have both an on-timer and an off-timer in the Timers section of my timed-light scene. Both are checked as “Enabled”. However, only the off timer seems to work. Once the light is off, it doesn’t come back on.
I know my former Hawking HRGZ01 gateway only allowed one action (either on or off) per scene, so I was wondering if Vera works the same way.
So I guess the question is, can one scene contain two timers? I know it can, because I have both an on-timer and an off-timer in the Timers section of my timed-light scene. Both are checked as "Enabled". However, only the off timer seems to work. Once the light is off, it doesn't come back on.
One scene can contain two timers, or many.....but the timers only specify to do something at that time, the timer does not dictate On or Off, the actions under the commands tab does.
What you are trying to do would require two seperate scenes.