Auto Porch Lights, Am I Overcomplicating it? What am I missing?

Hey guys, I am having too much fun thinking of things to try and automate :slight_smile:

Here is the scenario. I want my porch lights to come on at sunset to 50% brightness and then turn off at sunrise. However, if I (Eric) or my wife (Erica) arrive home, I want them to go to full brightness (100%) for 5 minutes.

The “presence” is set via a virtual switch that is controlled by Trigger (NFC Task Launcher) connecting to the home WiFi network. On = Home, Off = Away.

It seems to work, however the problem results is if one of us is already at home, the scene does not trigger (If either virtual switch is on, and then the other is turned on as well…no action is happening).

Anyone want to see what I am doing? Or am I overcomplicating this PLEG? Thanks!

[center]Porch Lights Sunset to Sunrise
[/center]

Triggers
Name Description
IsNight Day or Night indicates Night time.
IsDay Day or Night indicates Day time.
LightsOff Porch Lights is turned off
EricHome Eric Home is turned on
EricaHome EricaHome is turned on
LightsOn Porch Lights is turned on
EricAway Eric Home is turned off
EricaAway EricaHome is turned off

Conditions

Name Expression
Sunset (IsNight) AND (LightsOff)
Sunrise (IsDay)
ArriveLights LightsOn AND (EricHome OR EricaHome)
AutoDim (LightsOn) AND (ArriveLights; NOW > 5:00)

Actions

Actions for Condition: Sunset

Immediate

Device Action Arguments
Porch Lights SetLoadLevelTarget newLoadlevelTarget=50

Actions for Condition: Sunrise

Immediate

Device Action Arguments
Porch Lights SetLoadLevelTarget newLoadlevelTarget=0

Actions for Condition: ArriveLights

Immediate

Device Action Arguments
Porch Lights SetLoadLevelTarget newLoadlevelTarget=100

Actions for Condition: AutoDim

Immediate

Device Action Arguments
Porch Lights SetLoadLevelTarget newLoadlevelTarget=50

ArriveLights will turn true when the first person gets home. The arrival of the second person does not change its state so the action will not be fired. If you change the name to _ArriveLights it will fire its associated action whenever it evaluates as true.

Awesome, thank you! I will try this tonight :slight_smile: