Newbie needs help with porch light


#1

1) Give a description of the problem
trying to get my porch light to come on for 5 minutes when i open the front door, then shut off.

2) What is the expected behavior?
i want the light to come on with door opening then shut off 5 minutes later.

3) What is happening/not happening?
can get the light to come on but will not shut off.

**4) Post a Green Snapshot of the piston!

5) Attach any logs (From ST IDE and by turning logging level to Full)
`Clear
44298087-c37d-47a1-adf4-66c48e8458dc 11:50:02 PM: info ╔ Event processed successfully (68ms)
44298087-c37d-47a1-adf4-66c48e8458dc 11:50:02 PM: trace ║╔ Execution stage complete. (15ms)
44298087-c37d-47a1-adf4-66c48e8458dc 11:50:02 PM: debug ║║ Condition group #1 evaluated false (state did not change) (9ms)
44298087-c37d-47a1-adf4-66c48e8458dc 11:50:02 PM: debug ║║ Condition #6 evaluated false (8ms)
44298087-c37d-47a1-adf4-66c48e8458dc 11:50:02 PM: trace ║╚ Execution stage started
44298087-c37d-47a1-adf4-66c48e8458dc 11:50:02 PM: trace ║ Runtime (36938 bytes) successfully initialized in 21ms (v0.2.100.20171211) (49ms)
44298087-c37d-47a1-adf4-66c48e8458dc 11:50:02 PM: debug ║ RunTime Analysis CS > 13ms > PS > 21ms > PE > 15ms > CE
44298087-c37d-47a1-adf4-66c48e8458dc 11:50:02 PM: info ╚ Received event [Home].test = 1513399802781 with a delay of 0ms
11:50:17 PM: info Waiting on events…
11:50:17 PM: info For past logs for individual things go to the My Devices section, find the device and click on the Events link on the device information page.
11:50:17 PM: info This console provides live logging of your SmartThings.


#2

click on the with. in the popup window click on the gear icon at the bottom. find task cancellation policy in the shown options and set to never. save everything. done.


#4

Thanks! You gave me an idea!! I just wrote it for myself so that when we take the dog out at night it’ll kick our porch light on. I added that if they are already on to do nothing because we have our Christmas lights hooked up to that switch as well and we grill out there too so I don’t want to have them turn off if I’ve already turned them on. I just tested it here by changing the time to any and it works as you want with the added “do nothing” if already on portion.


#5

thanks for your help, now that ive been playing with it i want to change it a little bit. i want my porch lights on @ 40% from sunset to 11:30 pm but i want the to go to 100% if the front door opens or if my wife or my self comes home. i want the light to go to 100% for XX minutes then back to the original state IE 40% from sunset to 1130 or off from 1130- sunrise.

Im so new to this and its so confusing for me, i appreciate any help!!!


#6

Sorry a bit late but I just saw this. Did you get it figured out?


#7

No I didn’t get it. Kinda just gave up… didn’t have the time to play with it.


#8

Post an import code of what you have now. With what you think is working how you want it and what isn’t. I can take a look. Getting the 40 to 100 then back to 40 isn’t going to be difficult. You do have a dimmer bulb or switch on that one right?


#9

sorry took so long to get back to you, i just got my computer back for getting repaired, i guess i had deleted the piston. so im back to square one. any tips?


#10

You can import your first attempt with the code in your first post. We can go from there. Play with it a few days and try to add the functionality you are looking for then see what works and what doesn’t. Then I can take a look and see if we can work it out for you. Without going back and reading the whole post I recall you were trying to do some things that I already do. It’d be a matter of having a copy of your piston to import, tweaking it then you importing it back to your hub. The reason I’d import your piston is so that when you get it back you have the right number of items in the line etc… You’d have to just plugin which items in your system need to be there.


#11

Would you be able to send me your piston so I can take a look at it?