# Want to use alarm to switch on a light

**URL:** <https://forum.aotu.ai/t/want-to-use-alarm-to-switch-on-a-light/311>\
**Category:** Questions\
**Created:** [June 5, 2022, 9:54pm UTC](https://forum.aotu.ai/t/want-to-use-alarm-to-switch-on-a-light/311 "2022-06-05T21:54:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shams3049](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@Shams3049](https://forum.aotu.ai/u/Shams3049)\
**Post date:** [June 5, 2022, 9:54pm UTC](https://forum.aotu.ai/t/want-to-use-alarm-to-switch-on-a-light/311/1 "2022-06-05T21:54:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@stephen](https://forum.aotu.ai/u/stephen)\
**Post date:** [March 31, 2023, 7:01am UTC](https://forum.aotu.ai/t/want-to-use-alarm-to-switch-on-a-light/311/2 "2023-03-31T07:01:21Z")

</div>

You can connect a camera to BrainFrame and configure an alarm using the BrainFrame client user interface. When the alarm is triggered, BrainFrame will send a message to your application through REST API. You can then develop your own application to listen to the alarm message and take appropriate actions, such as turning on a light.
