# Security alarm turn on light and buzzer

**URL:** <https://discourse.nodered.org/t/security-alarm-turn-on-light-and-buzzer/8134>\
**Category:** General\
**Created:** [19 February 2019 08:00 UTC](https://discourse.nodered.org/t/security-alarm-turn-on-light-and-buzzer/8134 "2019-02-19T08:00:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon4382222](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@anon4382222](https://discourse.nodered.org/u/anon4382222)\
**Post date:** [19 February 2019 08:01 UTC](https://discourse.nodered.org/t/security-alarm-turn-on-light-and-buzzer/8134/1 "2019-02-19T08:01:00Z")

</div>

Hello,  
As a school project I am making a home security alarm.  
Im new to Node-red and dont understand everything yet.  
I am using a PIR sensor and when it detects motion, the lights and buzzer should turn on.  
However I want them to turn on for 5 minutes and I have to be able to turn them off earlier on my dashboard.

Can anyone help me with this?  
Kind regards,  
ZenoV

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [19 February 2019 08:08 UTC](https://discourse.nodered.org/t/security-alarm-turn-on-light-and-buzzer/8134/2 "2019-02-19T08:08:25Z")

</div>

You can use the `[delay]` node to turn something off after a set time and it's fairly easy to do a dashboard with a button. What have you tried? Where are you stuck?

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [19 February 2019 08:12 UTC](https://discourse.nodered.org/t/security-alarm-turn-on-light-and-buzzer/8134/3 "2019-02-19T08:12:09Z")

</div>

This sounds very similar to the question that was posed a few days ago by @ZenoVD - any relation to you??

I suggest you read that thread as it covers a number of the issues/questions/decisions you will need to consider/answer.

> [@Home Security Alarm](https://discourse.nodered.org/t/home-security-alarm/7936):
>
> Hello, I am trying to make a home security alarm but I am new to Node-Red. When the PIR has detected something i want it to send me a text on my mobile phone and a small led and siren should jump on when movement is detected. Now I am stuck at the part where i want the siren and led to jump on untill I turn it back off. Can someone please help me figure this out? Kind regards, Zeno

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 February 2019 08:50 UTC](https://discourse.nodered.org/t/security-alarm-turn-on-light-and-buzzer/8134/6 "2019-02-19T08:50:19Z")

</div>

> [@anon4382222](#):
>
> This was also my post, but I didnt understand most of the commands

Better to carry on the original thread and ask specific questions about the points you did not understand. Otherwise you will just get the same answers again and still not understand.
