Call a piston within a piston


#1

This seems like it should be simple, and I’m sure I’m missing something obvious, but I have searched for 20 minutes and can’t find an answer. I cannot get my piston to execute another piston.
I have 2 locations and I want to lock a door on one location when the mode is set to Away on the other location (or I run a scene).

I’ve tested the piston to lock the door. It works fine. This is in the location Garage.
execute
with
Garage Side Door
do
Lock;
end with;
end execute;

But when I call it from another piston on the other location, nothing happens.
execute
if
{$locationMode} changes to ‘Away’
then
Execute piston “Garage \ webCoRE1 \ GarageGoodnight”;
end if;
end execute;

Even if I strip out the condition and just run the execute piston statement, it doesn’t work.
execute
Execute piston “Garage \ webCoRE1 \ GarageGoodnight”;
end execute;

No logs are being generated. Do I need to set a variable or something? Appreciate the help.


#2

What happens if you execute the garage piston by clicking TEST
and pls post a screen shot of both pistons…


#3

One hub cannot directly control another hub.

but…

You can copy the “External URL” of the lock piston,
temp
and “Make a web request” to that URL from the other location.


#4

Yes! That worked. Thanks!