How to log what piston called another piston


#1

I have a piston that plays messages on an Echo. Many other pistons call this piston to have a messages played on one of my Echos. There is something calling this piston without passing a message so I get the default “Simon Says” message from Alexa. How do I log in the piston that plays the message, which piston called it? I already log the message played and on what Echo but I am not logging what piston requested the message to be played and in this case it would help me fix this annoying issue.


#2

Maybe pass the $name as payload to the receiving piston.


#3

Thanks! I will try that. Another mitigation I am implementing is a piston restriction checking whether the string passed to it to be played is empty but that doesn’t solve the issue so I will implement what you suggest to figure out what is going on.