I (think) I am trying to do something simple… I have a Schlage door lock on my garage. I want to create a scene where when activated it unlocks the door and IF it is night (return not (luup.is_night())) turn on some lights. I can see where I would put the Luup code that would fire for the entire scene but not if a portion of it (the lights) should be conditional. I am sure I missing something simple… ???
I’m just learning to use LUUP, too. I think this is where you’d use something like:
if luup is night then call action your switch to set target blah blah…end obviously you’ll need to use Lua syntax on all this.
I think it will just do this conditional thing along with whatever you have selected in the devices section (your garage door opener).
You could also just do two scenes - one for the light (with the luup.is night code) and one for the door and use the same trigger for both.
[quote=“CMRancho, post:2, topic:170224”]I’m just learning to use LUUP, too. I think this is where you’d use something like:
if luup is night then call action your switch to set target blah blah…end obviously you’ll need to use Lua syntax on all this.
I think it will just do this conditional thing along with whatever you have selected in the devices section (your garage door opener).
You could also just do two scenes - one for the light (with the luup.is night code) and one for the door and use the same trigger for both.[/quote]
@CMRancho
Ahh.l. I was trying to avoid doing the first (having to actually write lua code) (ATM at least).
I will do two scenes then set the trigger for when a scene is activated… Thanks!
BTW You have a CA3750 right? Mine is so flaky on the zwave side. Is there a way to hack in a better antenna or something?
The
Mine, too. It was good and reliable for quite a while, but then I installed a big transformer nearby for my landscape lighting and it stopped working. But about that same time I did made some other changes - upgraded s/w, went from a V2 to a V3, etc, etc. So it’s tough to know which thing caused my problem. I’m going to try moving the transformer this weekend to see if that fixes it. I also bought another outdoor module that just arrived, so I’m gonna make sure we have plenty of neighbors out there.
I don’t know of a way to upgrade the antenna, but that would be wonderful.