There are a few ways to do this… but be aware that most of the time, the “Good night” piston will have to be modified to allow for a new input.
(unless it already has this up top)
What I usually do instead is duplicate my current “Good Night” piston,

and then edit and tweak the new version to trigger
from the new device.
This way, your current method, AND the new method will both work.
The easiest way is simply add a trigger
to the top of the duplicated piston:
If button is pressed, then do Good Night stuff.
If (for some reason) you only want one Good Night piston, then I would have to see it before making other recommendations.