Is there a way to determine which piston triggered a piston? Example, if piston "A" turns on a switch that triggers piston "B", can I log to console which piston triggered piston "B"?
You can pass $args for this if you are calling the piston directly.
@gopher.ny is there a way for an app to see in the event "Produced by" or "Triggered apps"
Otherwise in the device, there are events of the commands that were run against the device
Here is the sender
Here is the receiver
Does it pass the calling piston name. I don't do an Execute Piston, it only changes a switch from off to on and that triggers another piston? I want to see the piston name that changed the switch.
It only passes the arg you initialize in the Execute Piston function.
I have set my arg to the name of the calling piston.
I don't use the Execute piston command. I just change the state of a switch, and that triggers piston "B". I have a few pistons that change the state of that switch and I was hoping that I could log which piston changed the state of that switch.
you can add you own log commands to those pistons.
You can just create a global str var and load it with the calling piston and log info the var on the called piston end?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.




