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.
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.
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