Bouton bluetooth vers GPO

Bonjour,
Je cherche à voir si je peux appairer un bouton bluetooth du commerce type bouton pour perche à selfie ex : bouton à un raspberry pi3.
Dans un deuxième temps, à chaque appui, transformer le signal du bouton bluetooth pour sortir un GPO (contact sec) du pi. Dès que l’on relache, le GPO se désactive.

Merci par avance pour vos réponses.