Hi,
the signal script fires ANYTIME the signal changes state, and so it will trigger on activation, but also on deactivation.
I would guess that your BoB/motion controller has active pull-ups, and therefore the signal script will trigger on the negative going transition
not the more normal positive going transition.
Craig