I’ve got a Vera controller that I configure using the built-in web UI. It seems to do more advanced things (in my case, I want to ensure a scene is only triggered during a specific time window), that I need to edit Luup code directly.
But I don’t see where to get at the code for a scene. I can see where I can add some additional code that runs, but not code that executes when triggered.
Details: I have an electric water heater that is kept off unless the overhead lights are on (this is in my shop, and I don’t come here every day). During the most expensive time of day for electricity, I want to prevent it from turning on, and turn it off if it’s already on when that period starts. For that matter I kinda just want to turn it off at some hour of the day even if the lights are still on (a couple days ago I forgot to kill the lights when leaving, and the water heater was on for two days wasting money).