I’m trying to figure out how to turn on my porch lights when my garage door is opened. Here is the problem I’m running into.
My porch lights turn on at sunset and stay on until 9pm.
From 9pm to sunrise I would like the porch light to turn on when the door is opened. I would like the light to stay on for 5 minutes after the door is closed.
I have tried setting up a scene to turn on the porch light for 5 minutes that is triggered by the garage door sensor. The problem I’m running into is it happens during the day, which I don’t want.
How do I exclude times from a scene? Another way to ask is. Is there a way to do a from, to time when talking about scenes?
You are getting into an area that is too complex for a regular scene. You would need to use your own custom LUUP code, but this will be difficult if you are not familiar with programming in LUA. A simpler alternative to custom LUUP code is to use the [url=http://rts-services.com/Vera/Plugin/PLEG/]Program Logic Event Generator/url plugin which allows more complex conditional logic than a basic scene to control a device.
Just set up a PLEG with a few VariableSwitch devices - or a MultiSwitch - and try a few simple conditions. Once you get the feel for how it works you’ll be amazed what you can get it to do for you.
Is there a step by step setup explanation? I’m not looking for exactly what I want to do but something that explains a little better what the different options are.
Not that I’m aware of although I believe there is one being written for a French HA forum. The RTS documentation on PLEG and PLC explains the principles of how it works and what options are available. Searching the forum will almost certainly get you examples of how others used PLEG to implement whatever function you are looking to do.
Best Home Automation shopping experience. Shop at Ezlo!