I know that a “LUUP event” can be added to a trigger, when you are defining your trigger. However, you can’t add “Luup events” to a schedule. Even the diagram shows that. http://wiki.micasaverde.com/index.php/Luup_Scenes_Events#Adding_Lua_code_to_scenes_and_events
Is anyone besides me interested in the possibility of doing this to schedules too? I know it can all be done via the LUUP tab, but it might make things cleaner?
I have a scene that turns the outside front lights out.
Right now, it has following triggers/schedules:
1 - someone turns of either light (the other goes out too then)
2 - 11:30 PM rolls around
3 - 6 AM rolls around
I have LUUP code that will halt the scene if my “home” switch is off, but allow it if my “vacation” switch is on, and it’s not near 6 AM.
This is one particular scenario I am imagining would change it to:
1 - someone turns of either light (the other goes out too then)
2 - 11:30 PM rolls around AND I am home
3 - it’s 6 AM
The additional schedule is just to catch the lights in the rare instance I forgot to set vacation mode when I went out of town, etc. I could break it out into a new scene, but that’s annoying!
The old way, the LUUP would have to check the time, do some calculations, etc. It would be MUCH easier if schedules ran LUUP as well, as least in my scenario. I didn’t realize they didn’t until I went to add it tonight!!
I didn’t want to file a feature request if I was the only one that thought this would be a good idea.