I would like to achieve: When the Virtual Switch Away is on, turnon the light at sunset and turn it off at 0:00
What am I doing wrong? I have created the following:
Triggers
Away Away is turned on
Schedules
Lightson every day at Sunset
Lightsoff every day at 0:00
Conditions
AwayLightsOn: Away and LightsOn
AwayLightsOff: Away and LightsOff
I am having a similar problem as Screamhouse. I am trying a very simple set up in PLEG and it will not work.
Here’s what I would like to accomplish:
Turn on the entry light when I unlock the front door using the Z-wave Kwikset deadbolt only at nighttime. (Entry light has a z-wave switch).
Set up so far:
1.) Both devices are connected to my Vera network and both are working independently.
2.) I have installed both PLEG and PL Core.
3.) Installed Day or Night plugin
Here’s what does work:
When I create an Input > Trigger for the “door_unlock”, a Condition for ONLY the “door_unlock” and an Action to turn on the entry light, it works GREAT! BUT when I add one additional “AND” variable to the condition, it no longer works.
I not only have tried the “Day or Night” plugin, but I have tried a second light status condition, a schedule condition, etc. I have tried 2 other conditions together and they won’t work. When I try 1 condition ONLY it works.
I must be doing something wrong. Please help.
Here is the exact set up in PLEG plugin:
INPUTS
Trigger
Name: Door Description: Door Lock is Opened
Device Properties
Name: Night Description: Day or Night Device Variable: Status Current Status = 1
CONDITIONS
Name: c1 Condition Expression: Door AND Night EQ “1”
ACTIONS
Condition: c1 Number of Actions: 1 Action: “Turn ON Entry Light”
Day or Night Plugin needs to have the Location and Timezone set properly in Setup.
After doing this and saving … I would POWER CYCLE Vera. This will be needed for Vera to respond to the changes correctly. After that Day or Night should work properly. I believe the errors in the log file … should disappear.
[quote=“RichardTSchaefer, post:8, topic:175940”]Day or Night Plugin needs to have the Location and Timezone set properly in Setup.
After doing this and saving … I would POWER CYCLE Vera. This will be needed for Vera to respond to the changes correctly. After that Day or Night should work properly. I believe the errors in the log file … should disappear.[/quote]
I cycled Vera twice. Still no luck. I checked the triggers and it sees that the door was opened, but no action.
Yes the location is set. However, the issue seems to be the syntax for the condition statement. I must be doing something wrong as it won’t work whenever I have 2 conditions.