Webcore Phone Sensor Not working


#1

I want my piston to check if my phone is home and then turn my lights on while I’m sitting here so I can test it.

This piston does not subscribe to any events. Unless executed by other means, it will never run on its own.


#2

That’s because ‘only when’ can never trigger anything. You need an actual if statement with a condition to trigger a piston. Avoid using ‘only when’ as you will likely not get the results you expect. Change to:

if presence sensor's currentPlace changes to 'Home'         <-- trigger
then
 ...
end if

#3

ahh ok got it, its the delta that makes the trigger

thank you alot!