Setting scene with schedule controlled by remote

Hello everyone!

I am new to Z-Wave and Vera and I would really appreciate your input in a small problem I just can’t figure out.

I have a Vera 2 with UI5, 4 Duwi switches and one Minimote remote

What I would like to do is:

Pressing a button on minimote to activate a scene that would switch on and off the lights (I’ve already set the delays) when the time is 17:00 or later.

I have created a scene that switched on and off the lights and I can activate it with minimote. But I can’t get the whole schedule thing to work…

Any ideas?

Regards

John

I was trying to write a reply but what you’re asking isn’t entirely clear. Can you define what you want to do, a bit more carefully?

i.e. (perhaps)

If the on button is pressed between 17:00 and 23:59 the lights come on (stay on) until 23:59
If the on button is pressed between 00:00 and 16:59 the lights come on at the next 17:00 until 23:59

Is there an ‘off’ button involved here as well? You mention switching the lights off. What are the timings on that?

Thanks for the reply!

Yeah I guess I spent so much time on UI5 trying to make it work that I just skipped on some info :stuck_out_tongue:

I am using only 2 buttons of minimote: top left as “start scene”, top right as “stop scene and all lights off”

I want to be able able to press the “start scene button” and a scene would start that turns on all lights at 17:00 and then starts switchinf on and off the lights at different intervals and order

ex:

17:00 - scene starts, all lights on
17:10 - light1 off
17:15 - light2 off
17:25 - light3 off, light 1 on
17:45 - light 4 off, light 3 on, light 2 on
etc etc until 07:00 in the morning or for (xx)hours

Then by pressing the “stop scene” the scene stops and all lights switch off

What I have done so far:

I press the “start scene button” and the aforementioned routine starts but it does not follow the schedule rule. Meaning that whenever I press the “start” button the lights switch on and off regardless of what time it is. I want to limit it so that the whole routine would start at 17:00 and finish (xx) hours later.

I hope I made it a little clearer…

Regards

John

Here’s how my first attempt would go. I’d have a virtual switch which I’d call “ready to go at 5 o’clock” which would be switched by the remote.
My scene to set the lights on and off in sequence would have some lua code attached to the 17:00 schedule to return “false” if that virtual switch isn’t set to ‘on’. That would prevent the scene triggering if the button hadn’t been pressed.

Do you need help setting that up?

That presumes that you’re not expecting to hit the button after 17:00 and expect the lights to start right away.

I’m not sure how you stop a scene though. More research needed there.

See http://forum.micasaverde.com/index.php/topic,8965.0.html to stop the scene. It may help.

Perhaps you could write a scene for every moment in time that you need something to occur (i.e. one for 17:00, one for 17:10, etc.) and use the state of a virtual switch to not run the commands in the scene (i.e. return false), if the switch is not on. Per @autoronto’s / @Brientim’s suggestion. The virtual switch would be controlled by the remote, and you’d have a separate scene, triggered by the remote, to turn all lights off.