I figured this out. I am using the @JoeC Web based rules engine to make this work with Power Allowance to only turn off when the Closet Door Sensor is tripped.
- Created a Simulated Switch.
- Set the door sensor to turn on the light.
- Tied a Light Turn On Open/Close smart app to the Simulated Switch that when the closet opens it turns on the Simulated Switch. (Note: I confused the hell out of myself with the Light Turn On Open/Close smart app because after you create smart app then go back into it to view from the device tile you really cannot tell that it is switching on the Simulated Switch.)
- Using @JoeC Web based rules engine I created a rule to turn on the light using the Simulated Switch as the trigger for AutoOn. I am using the AutoOn to validate that the light is turn off before turning it on. I did this in the event that if someone had manually turned the light on or if the light was turn on my another smartapp if was not turned off in step 5.
- Using @JoeC Web based rules engine I created a rule to turn off the light using the Simulated Switch as the trigger for AutoOff.
- Then I applied the Power Allowance smart app to the Simulated Switch so that after 2 minutes it turns the light off by engaging the AutoOff from @JoeC Web based rules engine.
Using this method does not force me to accept that the Power Allowance smart app will turn the light off after 2 minutes for all activities for the light switch, only for the simulated switch.
I am sure this is nothing new to the great minds in this community but I wanted to document for others and myself later on. I will still be scratching my head when I look at this a week from now. LOL. Also, if anyone has a more efficient way of performing this task please let me know.
-Pat