Want to use alarm to switch on a light

Hi all,

I am just getting stsrted and could use a little help. I want to use the alarm to activate a light connected to a raspberry pi.

Any ideas on where i should start? Do i use the API endpoint or is there a way for the brainframe client app to extend to switch on a light when an alarm is triggered.