I made this piston through WebCoRE and tested everything before I left to run some errands and everything, to my surprise, was working perfectly. I came back, and my lights didn’t turn on in the garage, so it was a nice dark walk to my light switch. Below is my piston and also the “Recent” tab from my “Garage” dimmer bulb from the SmartThings app. Can someone help me determine why the piston and the Recent tab both say the light was on, but it clearly wasn’t?
Only thing I can think of is when I left to run errands, I told Alexa to set guard to away, which also sets the location mode to away.
The highlighted portion in the image below is the moment I got home and it said the switch was on but it did not actually illuminate my room. I noticed it was using 31% memory which is a lot for a piston, but that’s because it’s constantly checking if there’s motion or not once the piston starts. Is there a more efficient way to do this? Thanks ahead of time.
Garage Motion's motion is active then with Garage do Turn on; Set level to 100%; end with; if Location mode is Away and Location mode stays away from Home for 3 minutes then if Time is not between 10 minutes to sunrise and 10 minutes past sunset then with Lamp do Turn on; end with; end if; end if; Set location mode to Home; Wait 10 seconds; if Garage Motion's motion is active then Execute piston "Home \ webCoRE \ Garage Motion"; end if; else with Garage do Turn off; end with; end if; end execute;