Remember DI state right before going to power down to not miss any "button press" (if a button is connected to a digital input).
Don't send other message (e.g. temperature) on pin wake-up. Send either DigitalPort message (if trigger fired as configured) or no message.